<?php require_once 'inc/core.php'; //ядро $old = mktime(0, 0, 0, strftime('%m'), strftime('%d'), strftime('%Y')); $hours = strftime('%H'); $minute = strftime('%M'); //if ($hours == 00 && ($minute == 00) && (($realtime - $set['lastUpdate']) > (24*60*60))) if ($hours == 00 && $minute <= 01) { mysql_query("UPDATE `site` SET `hosts` = '0', `hits` = '0',`in` = '0', `out` = '0';"); mysql_query("UPDATE `set` SET `value` = '$old' WHERE `key` = 'lastUpdate';"); } /* if (($realtime - $set['lastUpdate']) > (24*60*60)) { mysql_query("UPDATE `site` SET `hosts` = '0', `hits` = '0',`in` = '0', `out` = '0';"); mysql_query("UPDATE `set` SET `value` = '$realtime' WHERE `key` = 'lastUpdate';"); }echo dates($set['lastUpdate']);*/ ?>