cvs: phpweb / bugs.php

From: Date: Thu, 07 Sep 2000 02:31:00 +0000
Subject: cvs: phpweb / bugs.php
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-2007@lists.php.net to get a copy of this message
zak Wed Sep 6 19:31:00 2000 EDT Modified files: /phpweb bugs.php Log: Added 4 comment limit to mailed out bugs reports. This *should* be the last small hack on the existing interface. Other changes will need to be incorporated into the rewrite or be done by someone else. Index: phpweb/bugs.php diff -u phpweb/bugs.php:1.41 phpweb/bugs.php:1.42 --- phpweb/bugs.php:1.41 Wed Sep 6 13:16:48 2000 +++ phpweb/bugs.php Wed Sep 6 19:31:00 2000 @@ -523,16 +523,17 @@ unset ($comments[0]); # Ditch the most recent comment #fetch original bug description - $query = "SELECT ts1, email, ldesc from bugdb where id=$bug_id"; + $query = "SELECT ts1, email, ldesc FROM bugdb WHERE id=$bug_id LIMIT 5"; $result = mysql_query ($query); $comments[] = mysql_fetch_row ($result); + $counter = 0; foreach ($comments as $value) { $output .= "[$value[0]] $value[1]\n$value[2]\n\n$divider\n\n"; - if (strlen ($output) > $max_message_length) + if (strlen ($output) > $max_message_length || ++$counter > 4 ) { - $output .= "The remainder of the comments for this report are over the " . round ($max_message_length/1024) . "k message limit. To view the remainder of the comments, please review the bug report online."; + $output .= "The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online.\n"; break; } }

« previous php.mirrors (#2007) next »