cvs: phpweb / bugs.php bugstats.php

From: 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&amp;bug_type=$bug_type&amp;status=$status&amp;search_for=".htmlspecialchars(stripslashes($search_for))."&amp;bug_age=$bug_age&amp;by=$by&amp;order_by=$order_by&amp;direction=$direction"; + $link = "$PHP_SELF?cmd=display&amp;bug_type=$bug_type&amp;status=$status&amp;search_for=".htmlspecialchars(stripslashes($search_for))."&amp;bug_age=$bug_age&amp;by=$by&amp;order_by=$order_by&amp;direction=$direction&amp;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&amp;status=' . ucfirst($status) . '&amp;bug_type=' . ($type == 'all' ? 'Any' : urlencode($type)) . '&amp;by=Any">' . $bug_type[$status][$type] . "</a>\n"; + return '<a href="bugs.php?cmd=display&amp;status=' . ucfirst($status) . "&amp;phpver=" . $phpver . '&amp;bug_type=' . ($type == 'all' ? 'Any' : urlencode($type)) . '&amp;by=Any">' . $bug_type[$status][$type] . "</a>\n"; } }

« previous php.mirrors (#5390) next »