cvs: phpweb / bugs.php mod_bugs.php

From: Date: Sun, 03 Sep 2000 07:13:01 +0000
Subject: cvs: phpweb / bugs.php mod_bugs.php
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-1941@lists.php.net to get a copy of this message
zak Sun Sep 3 00:13:01 2000 EDT Removed files: /phpweb mod_bugs.php Modified files: /phpweb bugs.php Log: Changed bugs.php to include complete list of comments when mailing out bug reports. Removing testing version of bugs.php Index: phpweb/bugs.php diff -u phpweb/bugs.php:1.35 phpweb/bugs.php:1.36 --- phpweb/bugs.php:1.35 Sat Sep 2 22:45:52 2000 +++ phpweb/bugs.php Sun Sep 3 00:13:01 2000 @@ -27,7 +27,7 @@ commonHeader("Bug Reporting"); echo "<font size=-1>\n"; $destination = "php-dev@lists.php.net"; -#$destination = "rasmus@lerdorf.on.ca"; +#$destination = "zak@php.net"; function indent($string, $prefix) { $string = ereg_replace(13, "", $string); /* get rid of Ctrl-M */ @@ -420,7 +420,19 @@ 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/03 + + $query = "SELECT ts, email, comment from bugdb_comments where bug=$id order by ts desc"; + $result = mysql_query($query); + + 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); @@ -455,13 +467,24 @@ echo "<b>Database updated!</b><br>\n"; + ### Changes made by j.a.greant 00/09/03 + + $query = "SELECT ts, email, comment from bugdb_comments where bug=$id order by ts desc"; + $result = mysql_query($query); + + 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\nUser Update by: $eemail\n"; if($estatus!=$row[0]) $text .= "Old-Status: ".$row[0]."\n"; $text .= "Status: $estatus\n"; if($ebug_type != $row[1]) $text .= "Old-Bug Type: ".$row[1]."\n"; $text .= "Bug Type: $ebug_type\n"; - $text .= "Description: $esdesc\n\n$ncomment\n"; - $text .= "\nFull Bug description available at: http://bugs.php.net/?id=$id\n"; + $text .= "Description: $esdesc\n\n$ncomment\n\n"; + $text .= "Previous Comments:\n\n$prev_comments"; + $text .= "Full Bug description available at: http://bugs.php.net/?id=$id\n"; $text = stripslashes($text); $esdesc = stripslashes($esdesc); Mail($eemail, "PHP 4.0 Bug #$id Updated: $esdesc", $text, "From: Bug Database <$destination>");

« previous php.mirrors (#1941) next »