cvs: phpweb / bugs.php
| From: | Simon Roberts | Date: | Mon, 23 Oct 2000 02:55:12 +0000 |
| Subject: | cvs: phpweb / bugs.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-2599@lists.php.net to get a copy of this message | ||
lyric Sun Oct 22 19:55:12 2000 EDT
Modified files:
/phpweb bugs.php
Log:
Initial (pre)support for limiting buglist to a certain number of days old
Index: phpweb/bugs.php
diff -u phpweb/bugs.php:1.60 phpweb/bugs.php:1.61
--- phpweb/bugs.php:1.60 Thu Oct 19 16:02:46 2000
+++ phpweb/bugs.php Sun Oct 22 19:55:11 2000
@@ -505,6 +505,10 @@
if(strlen($search_for)) {
$where_clause .= " and (sdesc like '%$search_for%' or ldesc like
'%$search_for%' or comments like '%$search_for%')";
}
+ // not supported by the HTML form yet : use the URL :)
+ if(isset($bug_age) && ($bug_age!="All")) {
+ $where_clause .= " and (TO_DAYS(NOW())-TO_DAYS(ts1))<=$bug_age";
+ }
if (strlen($where_clause)) {
$where_clause .= " and";
}