cvs: phpweb / bugs.php
| From: | Zak Greant | Date: | Sun, 03 Sep 2000 05:29:37 +0000 |
| Subject: | cvs: phpweb / bugs.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-1932@lists.php.net to get a copy of this message | ||
zak Sat Sep 2 22:29:37 2000 EDT
Modified files:
/phpweb bugs.php
Log:
Bug report emails to the dev list should now contain the
entire history of the bug report - as per Zeev's wishes.
Index: phpweb/bugs.php
diff -u phpweb/bugs.php:1.33 phpweb/bugs.php:1.34
--- phpweb/bugs.php:1.33 Tue Aug 29 21:37:44 2000
+++ phpweb/bugs.php Sat Sep 2 22:29:37 2000
@@ -420,7 +420,17 @@
Mail("rasmus@lerdorf.on.ca", "bugdb auth failure for $user/$pw",
"", "From: bugdb");
} else {
echo "<b>Database updated!</b><br>\n";
- $text = "ID: $id\nUpdated by: $user\nReported By: $eemail\nStatus: $estatus\nBug Type:
$ebug_type\nAssigned To: $eassign\nComments:\n\n$ncomment\n";
+
+ ### Changes made by j.a.greant 00/09/02
+
+ $result = mysql_query("SELECT ts, email, comment from bugdb where id=$id order by
ts");
+ while ($temp = @ mysql_fetch_row ($result)) # $result should always be valid, suppress error
just in case.
+ {
+ $prev_comments .= "[$temp[0]] $temp[1]\n$temp[2]\n\n" . str_repeat ('-',
76) . "\n\n";
+ }
+
+
+ $text = "ID: $id\nUpdated by: $user\nReported By: $eemail\nStatus: $estatus\nBug Type:
$ebug_type\nAssigned To: $eassign\nComments:\n\n$ncomment\n\nPrevious
Comments:\n\n$prev_comments";
$text .= "\nFull Bug description available at: http://bugs.php.net/?id=$id\n";
$text = stripslashes($text);
$esdesc = stripslashes($esdesc);