Diff for Metafox/db.inc.php between version 1.5 and 1.6
| version 1.5, 2005/08/13 23:06:13 |
version 1.6, 2005/10/02 18:34:49 |
|
|
| * http://platon.sk/projects/Metafox/ |
* http://platon.sk/projects/Metafox/ |
| */ |
*/ |
| |
|
| /* $Platon: Metafox/db.inc.php,v 1.4 2005/07/27 15:15:58 nepto Exp $ */ |
/* $Platon: Metafox/db.inc.php,v 1.5 2005/08/13 23:06:13 nepto Exp $ */ |
| |
|
| /* |
/* |
| * updates: 23/5/2001, 29/7/2001, 11/10/2001, 2/11/2001, 11/1/2002, 23/7/2002 |
* updates: 23/5/2001, 29/7/2001, 11/10/2001, 2/11/2001, 11/1/2002, 23/7/2002 |
| Line 330 function ezin_get_section($section_id) / |
|
| Line 330 function ezin_get_section($section_id) / |
|
| } /* }}} */ |
} /* }}} */ |
| |
|
| /* |
/* |
| |
* ezin_get_articles_todo() |
| |
*/ |
| |
function ezin_get_articles_todo() /* {{{ */ |
| |
{ |
| |
global $ezin_sys; |
| |
global $ezin_db_handle; |
| |
$query = sprintf('SELECT COUNT(*) FROM %s WHERE datetime > SYSDATE()', |
| |
$ezin_sys['db']['tables']['articles']); |
| |
$result = @mysql_query($query, $ezin_db_handle) |
| |
or ezin_db_error('ezin_get_author()'); |
| |
if (($row = @mysql_fetch_array($result, MYSQL_NUM)) == false) |
| |
$row = array(); |
| |
@mysql_free_result($result); |
| |
return intval($row[0]); |
| |
} /* }}} */ |
| |
|
| |
/* |
| * ezin_get_article_list() |
* ezin_get_article_list() |
| * TODO: this should probably re-think or re-implement (with database enums too) |
* TODO: this should probably re-think or re-implement (with database enums too) |
| */ |
*/ |
Platon Group <platon@platon.org> http://platon.org/
|
|