| version 1.47, 2008/05/01 14:37:50 |
version 1.48, 2008/05/19 09:09:12 |
|
|
| * http://platon.sk/projects/Metafox/ |
* http://platon.sk/projects/Metafox/ |
| */ |
*/ |
| |
|
| /* $Platon: Metafox/db.inc.php,v 1.46 2007-12-03 16:24:58 nepto Exp $ */ |
/* $Platon: Metafox/db.inc.php,v 1.47 2008-05-01 14:37:50 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 941 function ezin_update_counts_temp() /* {{ |
|
| Line 941 function ezin_update_counts_temp() /* {{ |
|
| .' GROUP BY ip' |
.' GROUP BY ip' |
| .' HAVING UNIX_TIMESTAMP(SYSDATE()) - MAX(timestamp) > ' |
.' HAVING UNIX_TIMESTAMP(SYSDATE()) - MAX(timestamp) > ' |
| .intval($ezin_cfg['session_timeout']); |
.intval($ezin_cfg['session_timeout']); |
| $result = @mysql_query($query, $ezin_db_handle) |
$result = @mysql_query($query, $ezin_db_handle); |
| or ezin_db_error('ezin_update_counts_temp() [1]'); |
if ($result == false) { |
| |
if (mysql_errno($ezin_db_handle) == '145') { |
| |
$res2 = mysql_query('REPAIR TABLE '.$ezin_sys['db']['tables']['counts_temp']) |
| |
or ezin_db_error('ezin_update_counts_temp() [1:145:R]'); |
| |
// repeat last query |
| |
$result = mysql_query($query) |
| |
or ezin_db_error('ezin_update_counts_temp() [1:145:N]'); |
| |
} else { |
| |
ezin_db_error('ezin_update_counts_temp() [1]'); |
| |
} |
| |
} |
| $delim = ''; |
$delim = ''; |
| $ips = ''; |
$ips = ''; |
| while ($row = mysql_fetch_array($result, MYSQL_NUM)) { |
while ($row = mysql_fetch_array($result, MYSQL_NUM)) { |