mirror of
https://github.com/php/web-php.git
synced 2026-04-30 02:13:21 +02:00
Bring new and old bug database apps in line with each other
This commit is contained in:
@@ -25,6 +25,7 @@ function show_menu($state) {
|
||||
if($state!="Open") { echo "<option>Open\n"; }
|
||||
if($state!="Closed") { echo "<option>Closed\n"; }
|
||||
if($state!="Assigned") { echo "<option>Assigned\n"; }
|
||||
if($state!="Analized") { echo "<option>Analized\n"; }
|
||||
if($state!="All") { echo "<option>All\n"; }
|
||||
echo "</select> bugs of type ";
|
||||
show_types($bug_type,1,"bug_type");
|
||||
@@ -179,6 +180,9 @@ if (isset($cmd) && $cmd == "Send bug report") {
|
||||
case "Assigned":
|
||||
return "#bbaaff";
|
||||
break;
|
||||
case "Analized":
|
||||
return "#99bbaa";
|
||||
break;
|
||||
default:
|
||||
return "#aaaaaa";
|
||||
break;
|
||||
@@ -283,11 +287,13 @@ if (isset($cmd) && $cmd == "Send bug report") {
|
||||
echo "<input type=hidden name=modify value=\"Edit Bug\">\n";
|
||||
echo "<tr><th align=right>Status:</th><td><select name=\"estatus\">\n";
|
||||
if($row[7]=="Open") {
|
||||
echo "<option>Open\n<option>Closed<option>Assigned<option>Delete!\n";
|
||||
echo "<option>Open\n<option>Closed<option>Assigned<option>Analized<option>Delete!\n";
|
||||
} elseif($row[7]=="Closed") {
|
||||
echo "<option>Closed\n<option>Open<option>Assign<option>Delete!\n";
|
||||
echo "<option>Closed\n<option>Open<option>Assigned<option>Analized<option>Delete!\n";
|
||||
} elseif($row[7]=="Analized") {
|
||||
echo "<option>Analized\n<option>Open<option>Closed<option>Assigned<option>Analized<option>Delete!\n";
|
||||
} else {
|
||||
echo "<option>Assigned<option>Closed\n<option>Open<option>Delete!\n";
|
||||
echo "<option>Assigned\n<option>Open<option>Closed<option>Analized<option>Delete!\n";
|
||||
}
|
||||
echo "</select>\n";
|
||||
echo "Assign to: <input type=text name=eassign value=\"$row[12]\">\n";
|
||||
|
||||
+4
-1
@@ -120,6 +120,7 @@ if (isset($cmd) && $cmd == "Send bug report") {
|
||||
$report .= "PHP version: $php_version\n";
|
||||
$report .= "PHP Bug Type: $ebug_type\n";
|
||||
$report .= "Bug description:\n";
|
||||
$ascii_report = indent($report.$ldesc," ");
|
||||
$html_desc = ereg_replace("<", "<", $ldesc);
|
||||
$html_desc = ereg_replace(">", ">", $html_desc);
|
||||
$report .= indent($html_desc, " ");
|
||||
@@ -131,7 +132,7 @@ if (isset($cmd) && $cmd == "Send bug report") {
|
||||
|
||||
echo("</pre>\n");
|
||||
|
||||
if (Mail($destination, "Bug #$cid: $sdesc", $report, "From: $email")) {
|
||||
if (Mail($destination, "Bug #$cid: $sdesc", $ascii_report, "From: $email")) {
|
||||
echo "<p><h2>Mail sent to $destination...</h2>\n";
|
||||
echo "Thank you for your help!<P>If the status of the bug report you submitted\n";
|
||||
echo "changes, you will be notified. You may return here and check on the status\n";
|
||||
@@ -261,12 +262,14 @@ if (isset($cmd) && $cmd == "Send bug report") {
|
||||
} else {
|
||||
echo "<b>Database updated!</b><br>\n";
|
||||
if($estatus=="Delete!") {
|
||||
$comments = stripslashes($comments);
|
||||
$text = "Bug #$id has been deleted from the database by $user\nComments: $comments\n";
|
||||
} else {
|
||||
$text = "ID: $id\nUpdated by: $user\nReported By: $eemail\nStatus: $estatus\nBug Type: $ebug_type\nAssigned To: $eassign\nComments: $comments\n";
|
||||
$text .= "\nFull Bug description available at: http://ca.php.net/bugs.php3?id=$id\n";
|
||||
$text = stripslashes($text);
|
||||
}
|
||||
$esdesc = stripslashes($esdesc);
|
||||
Mail($eemail, "Bug #$id Updated: $esdesc", $text, "From: Bug Database <php-dev@php.iquest.net>");
|
||||
Mail("php-dev@php.iquest.net", "Bug #$id Updated: $esdesc", $text, "From: Bug Database <php-dev@php.iquest.net>");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user