cvs: phpweb / bugs.php bugstats.php
| From: | Jim Winstead | Date: | Mon, 09 Jul 2001 01:43:45 +0000 |
| Subject: | cvs: phpweb / bugs.php bugstats.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-5390@lists.php.net to get a copy of this message | ||
jimw Sun Jul 8 21:43:45 2001 EDT
Modified files:
/phpweb bugs.php bugstats.php
Log:
can now constrain display based on major php version (or not constrain by passing phpver=0), and
use this to create links from bugstats.php
Index: phpweb/bugs.php
diff -u phpweb/bugs.php:1.151 phpweb/bugs.php:1.152
--- phpweb/bugs.php:1.151 Sun Jul 8 21:34:22 2001
+++ phpweb/bugs.php Sun Jul 8 21:43:44 2001
@@ -145,7 +145,8 @@
$where_clause .= " AND ts1 >= DATE_SUB(NOW(), INTERVAL $bug_age DAY)";
}
- $where_clause .= " AND php_version LIKE '4%'";
+ if (!isset($phpver)) $phpver = "4";
+ if ($phpver) $where_clause .= " AND php_version LIKE '$phpver%'";
/* not in the header, but someone can build a query manually with it. */
if(strlen($by) and $by!='Any')
@@ -179,7 +180,7 @@
echo "<h2 class=\"error\">No bugs with the specified criteria were
found.</h2>";
}
else {
- $link =
"$PHP_SELF?cmd=display&bug_type=$bug_type&status=$status&search_for=".htmlspecialchars(stripslashes($search_for))."&bug_age=$bug_age&by=$by&order_by=$order_by&direction=$direction";
+ $link =
"$PHP_SELF?cmd=display&bug_type=$bug_type&status=$status&search_for=".htmlspecialchars(stripslashes($search_for))."&bug_age=$bug_age&by=$by&order_by=$order_by&direction=$direction&phpver=$phpver";
?>
<table align="center" border="0" cellspacing="2"
width="95%">
<?php show_prev_next($begin,$rows,$link);?>
Index: phpweb/bugstats.php
diff -u phpweb/bugstats.php:1.29 phpweb/bugstats.php:1.30
--- phpweb/bugstats.php:1.29 Sun Jul 8 21:08:04 2001
+++ phpweb/bugstats.php Sun Jul 8 21:43:44 2001
@@ -76,13 +76,7 @@
function bugstats($status, $type) {
global $bug_type, $phpver;
if ($bug_type[$status][$type] > 0) {
- if ($phpver == 3) {
- $page = "bugs-php3.php";
- }
- else {
- $page = "bugs.php";
- }
- return '<a href="/' . $page . '?cmd=display&status=' .
ucfirst($status) . '&bug_type=' . ($type == 'all' ? 'Any' :
urlencode($type)) . '&by=Any">' . $bug_type[$status][$type] .
"</a>\n";
+ return '<a href="bugs.php?cmd=display&status=' . ucfirst($status) .
"&phpver=" . $phpver . '&bug_type=' . ($type == 'all'
? 'Any' : urlencode($type)) . '&by=Any">' .
$bug_type[$status][$type] . "</a>\n";
}
}