Update of /cvsroot/php-blog/serendipity
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31180
Modified Files:
comment.php
Log Message:
I am on 4.2.2 and this is how it works.
Index: comment.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/comment.php,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -d -r1.38 -r1.39
--- comment.php 5 Jul 2004 20:38:53 -0000 1.38
+++ comment.php 9 Jul 2004 22:55:25 -0000 1.39
@@ -25,9 +25,15 @@
if ($type == 'trackback') {
if ($tb_logging) {
+ # PHP 4.2.2 way of doing things
+ ob_start();
+ print_r($_REQUEST);
+ $tmp = ob_get_contents();
+ ob_end_clean();
+
$fp = fopen('trackback2.log', 'a');
fwrite($fp, '[' . date('d.m.Y H:i') . '] RECEIVED TRACKBACK' . "\n");
- fwrite($fp, '[' . date('d.m.Y H:i') . '] ' . print_r($_REQUEST, true) . "\n");
+ fwrite($fp, '[' . date('d.m.Y H:i') . '] ' . $tmp . "\n");
}
$uri = $_SERVER['REQUEST_URI'];
|