summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rwxr-xr-xtheme/header.tpl4
-rwxr-xr-xxmlrpc.php18
2 files changed, 15 insertions, 7 deletions
diff --git a/theme/header.tpl b/theme/header.tpl index 36a4d10..c087f67 100755 --- a/theme/header.tpl +++ b/theme/header.tpl
@@ -17,10 +17,6 @@
17 <SCRIPT SRC="/theme/js/round_bubbles.js" TYPE="text/javascript"></SCRIPT> 17 <SCRIPT SRC="/theme/js/round_bubbles.js" TYPE="text/javascript"></SCRIPT>
18 <SCRIPT SRC="/theme/js/thickbox.js" TYPE="text/javascript"></SCRIPT> 18 <SCRIPT SRC="/theme/js/thickbox.js" TYPE="text/javascript"></SCRIPT>
19 19
20 <!--[if lt IE 8]>
21 <script src="http://ie7-js.googlecode.com/svn/version/2.0(beta3)/IE8.js" type="text/javascript"></script>
22 <![endif]-->
23
24 <!--BEGIN SPLASH--> 20 <!--BEGIN SPLASH-->
25 <SCRIPT TYPE="text/javascript"> 21 <SCRIPT TYPE="text/javascript">
26 tb_splash(); 22 tb_splash();
diff --git a/xmlrpc.php b/xmlrpc.php index 2c634d3..69990da 100755 --- a/xmlrpc.php +++ b/xmlrpc.php
@@ -58,9 +58,21 @@ function ping($xmlrpcmsg)
58 $title = $from; 58 $title = $from;
59 } 59 }
60 60
61 $text = substr($page_data,(stripos($page_data,$to)-300),700); 61 preg_match_all('/HREF="([^"]+)">([^>]+)<\/A>/i',$page_data,$matches);
62 $text = strip_tags($text); 62 for ($i=0;$i<count($matches[1]);$i++)
63 $text = str_replace("\n",' ',$text); 63 {
64 if ($matches[1][$i] == $to)
65 {
66 $find = $matches[2][$i];
67 }
68 }
69
70 $text = strip_tags($page_data);
71 $text = substr($text,(stripos($text,$find)-300),700);
72 $text = str_ireplace('<BR>',"\n",$text);
73 $text = str_ireplace('<BR />',"\n",$text);
74 $text = str_replace("\t", ' ', $text);
75 $text = preg_replace('/' . "\n" . '([ ]*)' . "\n" . '/i', '', $text);
64 76
65 $commentText = "[url=" . $from . "]" . $title . "[/url]\n\n[....] " . $text . " [....]"; 77 $commentText = "[url=" . $from . "]" . $title . "[/url]\n\n[....] " . $text . " [....]";
66 78