cvs: pearweb /public_html/bugs/rss search.php
| From: | Helgi �ormar �orbj�rnsson | Date: | Sun, 13 Jan 2008 21:46:31 +0000 |
| Subject: | cvs: pearweb /public_html/bugs/rss search.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-cvs+get-50301@lists.php.net to get a copy of this message | ||
dufuz Sun Jan 13 21:46:31 2008 UTC
Modified files:
/pearweb/public_html/bugs/rss search.php
Log:
we are using mysql 4.0 now
http://cvs.php.net/viewvc.cgi/pearweb/public_html/bugs/rss/search.php?r1=1.5&r2=1.6&diff_format=u
Index: pearweb/public_html/bugs/rss/search.php
diff -u pearweb/public_html/bugs/rss/search.php:1.5 pearweb/public_html/bugs/rss/search.php:1.6
--- pearweb/public_html/bugs/rss/search.php:1.5 Sun Jan 13 16:34:32 2008
+++ pearweb/public_html/bugs/rss/search.php Sun Jan 13 21:46:31 2008
@@ -39,23 +39,7 @@
define('BOOLEAN_SEARCH', @intval($_GET['boolean']));
-/*
-* need to move this to DB eventually...
-*/
-$mysql4 = false;
-if ($dbh->phptype == 'mysql') {
- $mysql4 = version_compare(mysql_get_server_info(), '4.0.0', 'ge');
-} else {
- $mysql4 = version_compare(mysqli_get_server_version($dbh->connection), '4.0.0',
'ge');
-
-}
-
-if ($mysql4) {
- $query = 'SELECT SQL_CALC_FOUND_ROWS';
-} else {
- $query = 'SELECT';
-}
-
+$query = 'SELECT SQL_CALC_FOUND_ROWS';
$query .= ' bugdb.*, UNIX_TIMESTAMP(ts1) as ts1a, UNIX_TIMESTAMP(ts2) as ts2a,
TO_DAYS(NOW())-TO_DAYS(bugdb.ts2) AS unchanged'
. ' FROM bugdb';