cvs: phpweb / bugs.php
| From: | Zak Greant | Date: | Wed, 06 Sep 2000 03:06:28 +0000 |
| Subject: | cvs: phpweb / bugs.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-1986@lists.php.net to get a copy of this message | ||
zak Tue Sep 5 20:06:28 2000 EDT
Modified files:
/phpweb bugs.php
Log:
Added a more complete list of extentions to the bug type select box.
Added a cutoff to the message length for the emailed bug
reports. Cutoff is currently set to 10k. I chose this arbitrary
length based on the following assumption.
a busy day of bug reports = 100 reports
100 reports x 10k per report = 1 meg for
hapless modem users to download. :)
Index: phpweb/bugs.php
diff -u phpweb/bugs.php:1.37 phpweb/bugs.php:1.38
--- phpweb/bugs.php:1.37 Sun Sep 3 13:15:20 2000
+++ phpweb/bugs.php Tue Sep 5 20:06:28 2000
@@ -128,52 +128,164 @@
echo "<i>Feature/Change requests must be explicitly selected to be
shown</i></form>\n";
}
+### show_types significantly modified by j.a.greant 00/09/05
function show_types($first_item,$show_any,$var_name) {
- $items = array("Any",
- "Documentation problem",
- "Installation problem",
- "Compile Failure",
- "Compile Warning",
- "Scripting Engine problem",
- "Reproduceable crash",
- "Performance problem",
- "cURL related",
- "Dynamic loading related",
- "MySQL related",
- "mSQL related",
- "MSSQL related",
- "PostgreSQL related",
- "ODBC related",
- "Oracle related",
- "Sybase-ct (ctlib) related",
- "Sybase (dblib) related",
- "Solid related",
- "Adabas-D related",
- "Informix related",
- "dBase related",
- "Session related",
- "WDDX related",
- "IMAP related",
- "LDAP related",
- "NIS related",
- "DBM/DBA related",
- "mcrypt related",
- "mhash related",
- "Misbehaving function",
- "FrontPage related",
- "Feature/Change Request",
- "Other");
-
- echo "<select name=\"$var_name\">\n<option>$first_item\n";
- for($i=0;$i<count($items);$i++) {
- if($first_item!=$items[$i]) {
- if($show_any || $items[$i]!="Any") {
- echo "<option>$items[$i]\n";
- }
+ $items = array ("Any" => "Any",
+ "*General Issues" => "General Issues",
+ "Feature/Change Request" =>
" Feature/Change Request",
+ "Documentation problem" =>
" Documentation problem",
+ "Reproduceable crash" =>
" Reproduceable crash",
+ "Scripting Engine problem" =>
" Scripting Engine problem",
+ "Performance problem" =>
" Performance problem",
+ "*Install and Config" => "Install and Config",
+ "Compile Problem" =>
" Compile Problem",
+ "Compile Failure" =>
" Compile
Failure",
+ "Compile Warning" =>
" Compile
Warning",
+
+ "*Web Server problem" =>
" Web Server problem",
+ "Apache related" =>
" Apache
related",
+ "IIS related" =>
" IIS
related",
+ "PWS related" =>
" PWS
related",
+ "Other web server" =>
" Other web
server",
+
+ "*Configuration Issues" =>
" Configuration Issues",
+ "Dynamic loading" =>
" Dynamic
loading",
+ "PHP options/info functions" =>
" PHP
options/info functions",
+
+ "*Function Specific" => "Function Specific",
+ "Calendar problems" =>
" Calendar problems",
+ "Calendar related" =>
" Calendar
related",
+ "ICAP related" =>
" ICAP
related",
+ "MCAL related" =>
" MCAL
related",
+
+ "Date/time related" =>
" Date/time related",
+
+ "*Directory/Filesystem functions" =>
" Directory/Filesystem functions",
+ "Directory function related" =>
" Directory
function related",
+ "Filesystem function related" =>
" Filesystem
function related",
+
+ "*Directory Services problems" =>
" Directory Services problems",
+ "YP/NIS related" =>
" YP/NIS
related",
+ "LDAP related" =>
" LDAP
related",
+
+ "*Database Functions" =>
" Database Functions",
+ "Adabas-D related" =>
" Adabas-D
related",
+ "dBase related" =>
" dBase
related",
+ "DBM/DBA related" =>
" DBM/DBA
related",
+ "filePro related" =>
" filePro
related",
+ "Hyperwave related" =>
" Hyperwave
related",
+ "Informix related" =>
" Informix
related",
+ "InterBase related" =>
" InterBase
related",
+ "Sybase-ct (ctlib) related" =>
" Sybase-ct
(ctlib) related",
+ "Sybase (dblib) related" =>
" Sybase
(dblib) related",
+ "mSQL related" =>
" mSQL
related",
+ "MSSQL related" =>
" MSSQL
related",
+ "MySQL related" =>
" MySQL
related",
+ "OCI8 related" =>
" OCI8
related",
+ "ODBC related" =>
" ODBC
related",
+ "Oracle related" =>
" Oracle
related",
+ "PostgreSQL related" =>
" PostgreSQL
related",
+ "Solid related" =>
" Solid
related",
+
+ "*Data Exchange functions" =>
" Data Exchange functions",
+ "WDDX related" =>
" WDDX
related",
+ "YAZ related" =>
" YAZ
related",
+
+ "*Extensibility Functions" =>
" Extensibility Functions",
+ "COM related" =>
" COM
related",
+ "Program Execution" =>
" Program
Execution",
+ "Semaphore related" =>
" Semaphore
related",
+ "Readline related" =>
" Readline
related",
+
+ "*E-commerce functions" =>
" E-commerce functions",
+ "Cybercash related" =>
" Cybercash
related",
+ "Verisign Payflow Pro related" =>
" Verisign
Payflow Pro related",
+ "CCVS related" =>
" CCVS
related",
+
+ "FrontPage related" =>
" FrontPage related",
+
+ "*Graphics related" =>
" Graphics related",
+ "GD related" =>
" GD
related",
+ "GetImageSize related" =>
" GetImageSize
related",
+
+ "*Languages/Translation" =>
" Languages/Translation",
+ "Gettext related" =>
" Gettext
related",
+ "Recode related" =>
" Recode
related",
+
+ "*Mail Related" =>
" Mail Related",
+ "IMAP related" =>
" IMAP
related",
+ "Mail related" =>
" Mail
related",
+ "Vmailmgr related" =>
" Vmailmgr
related",
+
+ "*Math Functions" =>
" Math Functions",
+ "BC math related" =>
" BC math
related",
+ "Math related" =>
" Math
related",
+
+ "mcrypt related" =>
" mcrypt related",
+
+ "mhash related" =>
" mhash related",
+
+ "*Network Functions" =>
" Network Functions",
+ "Network related" =>
" Network
related",
+ "SNMP related" =>
" SNMP
related",
+ "FTP related" =>
" FTP
related",
+ "HTTP related" =>
" HTTP
related",
+ "Sockets related" =>
" Sockets
related",
+
+ "Output Control" =>
" Output Control",
+
+ "*PDF functions" =>
" PDF functions",
+ "ClibPDF related" =>
" ClibPDF
related",
+ "FDF related" =>
" FDF
related",
+ "PDF related" =>
" PDF
related",
+
+ "POSIX related" =>
" POSIX related",
+
+ "*Programming Data Structures" =>
" Programming Data Structures",
+ "Class/Object related" =>
" Class/Object
related",
+ "Arrays related" =>
" Arrays
related",
+ "Strings related" =>
" Strings
related",
+ "Variables related" =>
" Variables
related",
+
+ "*Regular Expressions" =>
" Regular Expressions",
+ "PCRE related" =>
" PCRE
related",
+ "Regexps related" =>
" Regexps
related",
+
+ "*Session related" =>
" Session related",
+
+ "*Spelling functions" =>
" Spelling functions",
+ "Aspell related" =>
" Aspell
related",
+ "Pspell related" =>
" Pspell
related",
+
+ "SWF related" => " SWF
related",
+
+ "*XML functions" =>
" XML functions",
+ "DOM XML related" =>
" DOM XML
related",
+ "XML related" =>
" XML
related",
+ "Sablotron XSL" =>
" Sablotron
XSL",
+
+ "*URL Functions" =>
" URL Functions",
+ "cURL related" =>
" cURL
related",
+ "URL related" =>
" URL
related",
+
+ "*Zlib related" =>
" Zlib related",
+
+ "Unknown/Other Function" => "Unknown/Other Function"
+ );
+
+ $selected[$first_item] = ' SELECTED';
+
+ print "<select name=\"$var_name\">\n";
+
+ foreach ($items as $key => $value)
+ {
+ if ($show_any || $value != 'Any') {
+ print "<option value=\"$key\"$selected[$key]>$value</option>\n";
}
}
- echo "</select>\n";
+
+ print "</select>\n";
}
function find_password($user) {
@@ -398,6 +510,7 @@
function get_old_comments ($bug_id)
{
$divider =
'---------------------------------------------------------------------------';
+ $max_message_length = 10 * 1024;
#fetch comments
$result = mysql_query ("SELECT ts, email, comment from bugdb_comments where bug = $bug_id
order by ts desc");
@@ -413,7 +526,14 @@
$comments[] = mysql_fetch_row ($result);
foreach ($comments as $value)
+ {
$output .= "[$value[0]] $value[1]\n$value[2]\n\n$divider\n\n";
+ if (strlen ($output) > $max_message_length)
+ {
+ $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.";
+ break;
+ }
+ }
if ($output)
return "\n\nPrevious Comments:\n\n" . $output;