cvs: phpweb / bugs.php

From: Date: Mon, 25 Jun 2001 11:54:38 +0000
Subject: cvs: phpweb / bugs.php
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-5155@lists.php.net to get a copy of this message
goba Mon Jun 25 13:54:38 2001 EDT Modified files: /phpweb bugs.php Log: Applying Jeroen's patch (with some minor corrections) Index: phpweb/bugs.php diff -u phpweb/bugs.php:1.109 phpweb/bugs.php:1.110 --- phpweb/bugs.php:1.109 Mon Jun 25 11:10:16 2001 +++ phpweb/bugs.php Mon Jun 25 13:54:37 2001 @@ -1,3 +1,60 @@ +? distributions/.new.manual_de.chm +Index: bugs.php +=================================================================== +RCS file: /repository/phpweb/bugs.php,v +retrieving revision 1.109 +diff -u -r1.109 bugs.php +--- bugs.php 25 Jun 2001 09:10:16 -0000 1.109 ++++ bugs.php 25 Jun 2001 11:00:13 -0000 +@@ -411,10 +411,13 @@ + echo wrap($html_report); + echo("</pre>\n"); + +- // CC doc bugs to the doc list +- if ($ebug_type == "Documentation problem") { $ccdoc = "\nCc: phpdoc@lists.php.net"; } else { $ccdoc = ""; } +- +- if (Mail($destination, "Bug #$cid: $sdesc", $ascii_report, "From: $email\nX-PHP-Bug: $cid" . $ccdoc)) { ++ // Send doc bugs also to the doc list ++ if ($ebug_type == "Documentation problem") ++ { ++ @mail('phpdoc@lists.php.net', "Bug #$cid: $sdesc", $ascii_report, "From: $email\nX-PHP-Bug: $cid")) ++ } ++ ++ if (Mail($destination, "Bug #$cid: $sdesc", $ascii_report, "From: $email\nX-PHP-Bug: $cid")) { + echo "<p><h2>Mail sent to $destination...</h2>\n"; + echo "Thank you for your help!<P>"; + echo "<i>The password for this report is</i>: <b>".htmlentities($passwd)."</b><br>"; +@@ -642,6 +645,13 @@ + $text = stripslashes($text); + $esdesc = stripslashes($esdesc); + ++ // mail phpdoc if old or new type is documenation (jeroen) ++ if ($ebug_type == 'Documentation problem' ++ || $row[1] == 'Documentation problem') ++ { ++ @mail('phpdoc@lists.php.net',"Bug #$id Updated: $esdesc", $text, "From: $user@php.net\nX-PHP-Bug: $id"); ++ } ++ + /* mail bug originator if status was changed or comment is not empty. */ + if($estatus != $row[0] || $ncomment != "") { + Mail($eemail, "Bug #$id Updated: $esdesc", $text, "From: Bug Database <$destination>"); +@@ -688,6 +698,14 @@ + $text .= "\nFull Bug description available at: http://bugs.php.net/?id=$id\n"; + $text = stripslashes($text); + $esdesc = stripslashes($esdesc); ++ ++ // mail phpdoc if old or new type is documenation (jeroen) ++ if ($ebug_type == 'Documentation problem' ++ || $row[1] == 'Documentation problem') ++ { ++ @mail('phpdoc@lists.php.net',"Bug #$id Updated: $esdesc", $text, "From: $eemail\nX-PHP-Bug: $id"); ++ } ++ + Mail($eemail, "Bug #$id Updated: $esdesc", $text, "From: Bug Database <$destination>"); + Mail($destination, "Bug #$id Updated: $esdesc", $text, "From: $eemail\nX-PHP-Bug: $id"); + mysql_freeresult($result); + + <?php require_once 'prepend.inc'; @@ -411,10 +468,12 @@ echo wrap($html_report); echo("</pre>\n"); - // CC doc bugs to the doc list - if ($ebug_type == "Documentation problem") { $ccdoc = "\nCc: phpdoc@lists.php.net"; } else { $ccdoc = ""; } - - if (Mail($destination, "Bug #$cid: $sdesc", $ascii_report, "From: $email\nX-PHP-Bug: $cid" . $ccdoc)) { + // Send doc bugs also to the doc list (jeroen) + if ($ebug_type == "Documentation problem") { + @mail('phpdoc@lists.php.net', "Bug #$cid: $sdesc", $ascii_report, "From: $email\nX-PHP-Bug: $cid")) + } + + if (Mail($destination, "Bug #$cid: $sdesc", $ascii_report, "From: $email\nX-PHP-Bug: $cid")) { echo "<p><h2>Mail sent to $destination...</h2>\n"; echo "Thank you for your help!<P>"; echo "<i>The password for this report is</i>: <b>".htmlentities($passwd)."</b><br>"; @@ -642,10 +701,15 @@ $text = stripslashes($text); $esdesc = stripslashes($esdesc); + // mail phpdoc if old or new type is documentation (jeroen) + if ($ebug_type == "Documentation problem" || $row[1] == "Documentation problem") { + @mail('phpdoc@lists.php.net',"Bug #$id Updated: $esdesc", $text, "From: $user@php.net\nX-PHP-Bug: $id"); + } + /* mail bug originator if status was changed or comment is not empty. */ if($estatus != $row[0] || $ncomment != "") { - Mail($eemail, "Bug #$id Updated: $esdesc", $text, "From: Bug Database <$destination>"); - Mail($destination, "Bug #$id Updated: $esdesc", $text, "From: $user@php.net\nX-PHP-Bug: $id"); + @mail($eemail, "Bug #$id Updated: $esdesc", $text, "From: Bug Database <$destination>"); + @mail($destination, "Bug #$id Updated: $esdesc", $text, "From: $user@php.net\nX-PHP-Bug: $id"); } } mysql_freeresult($result); @@ -688,8 +752,14 @@ $text .= "\nFull Bug description available at: http://bugs.php.net/?id=$id\n"; $text = stripslashes($text); $esdesc = stripslashes($esdesc); - Mail($eemail, "Bug #$id Updated: $esdesc", $text, "From: Bug Database <$destination>"); - Mail($destination, "Bug #$id Updated: $esdesc", $text, "From: $eemail\nX-PHP-Bug: $id"); + + // mail phpdoc if old or new type is documentation (jeroen) + if ($ebug_type == "Documentation problem" || $row[1] == "Documentation problem") { + @mail('phpdoc@lists.php.net',"Bug #$id Updated: $esdesc", $text, "From: $eemail\nX-PHP-Bug: $id"); + } + + @mail($eemail, "Bug #$id Updated: $esdesc", $text, "From: Bug Database <$destination>"); + @mail($destination, "Bug #$id Updated: $esdesc", $text, "From: $eemail\nX-PHP-Bug: $id"); mysql_freeresult($result); } }

« previous php.mirrors (#5155) next »