Diff for Metafox/db.inc.php between version 1.59 and 1.60
| version 1.59, 2011/01/24 16:44:48 |
version 1.60, 2011/05/31 13:04:30 |
|
|
| * http://platon.sk/projects/Metafox/ |
* http://platon.sk/projects/Metafox/ |
| */ |
*/ |
| |
|
| /* $Platon: Metafox/db.inc.php,v 1.58 2011-01-03 07:34:06 igor Exp $ */ |
/* $Platon: Metafox/db.inc.php,v 1.59 2011-01-24 16:44:48 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 831 function ezin_get_author($author_id) /* |
|
| Line 831 function ezin_get_author($author_id) /* |
|
| return $ret_row; |
return $ret_row; |
| } /* }}} */ |
} /* }}} */ |
| |
|
| |
/* |
| |
* ezin_get_authors() |
| |
*/ |
| |
function ezin_get_authors($count = 0) { |
| |
global $ezin_sys; |
| |
global $ezin_cfg; |
| |
global $ezin_db_handle; |
| |
|
| |
$count = intval($count); |
| |
$ret_row = array(); |
| |
|
| |
if ($count == 0) { |
| |
$query = sprintf('SELECT * FROM %s', |
| |
$ezin_sys['db']['tables']['authors']); |
| |
} else { |
| |
$query = sprintf('SELECT * FROM %s LIMIT %d', |
| |
$ezin_sys['db']['tables']['authors'], $count); |
| |
} |
| |
$result = @mysql_query($query, $ezin_db_handle) |
| |
or ezin_db_error('ezin_get_authors() [1]'); |
| |
while (($row = @mysql_fetch_array($result, MYSQL_ASSOC)) != false) { |
| |
$ret_row[] = $row; |
| |
} |
| |
@mysql_free_result($result); |
| |
|
| |
return $ret_row; |
| |
} |
| |
|
| |
|
| function ezin_exists_author($username) /* {{{ */ |
function ezin_exists_author($username) /* {{{ */ |
| { |
{ |
| global $ezin_sys, $ezin_cfg; |
global $ezin_sys, $ezin_cfg; |
Platon Group <platon@platon.org> http://platon.org/
|
|