Diff for Metafox/db.inc.php between version 1.78 and 1.79
| version 1.78, 2013/10/17 16:57:24 |
version 1.79, 2013/11/18 11:04:43 |
|
|
| * http://platon.sk/projects/Metafox/ |
* http://platon.sk/projects/Metafox/ |
| */ |
*/ |
| |
|
| /* $Platon: Metafox/db.inc.php,v 1.77 2013-09-02 16:28:52 igor Exp $ */ |
/* $Platon: Metafox/db.inc.php,v 1.78 2013-10-17 16:57:24 igor 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 1000 function ezin_exists_article($article_id |
|
| Line 1000 function ezin_exists_article($article_id |
|
| } /* }}} */ |
} /* }}} */ |
| |
|
| /* |
/* |
| |
* ezin_get_oldest_dt() |
| |
* - date of oldest article |
| |
*/ |
| |
function ezin_get_oldest_dt() { |
| |
global $ezin_sys; |
| |
global $ezin_db_handle; |
| |
|
| |
$query = sprintf('SELECT created_dt' |
| |
.' FROM %s' |
| |
.' WHERE created_dt > 0' |
| |
.' ORDER BY created_dt ASC' |
| |
.' LIMIT 1', |
| |
$ezin_sys['db']['tables']['articles']); |
| |
|
| |
$result = @mysql_query($query, $ezin_db_handle) |
| |
or ezin_db_error('ezin_exists_article()'); |
| |
|
| |
if (($row = @mysql_fetch_array($result, MYSQL_NUM)) == false) |
| |
$row = array(); |
| |
@mysql_free_result($result); |
| |
|
| |
return $row[0]; |
| |
} |
| |
|
| |
/* |
| * ezin_get_author() |
* ezin_get_author() |
| */ |
*/ |
| function ezin_get_author($author_id) /* {{{ */ |
function ezin_get_author($author_id) /* {{{ */ |
Platon Group <platon@platon.org> http://platon.org/
|
|