Exemplo n.º 1
0
<?php

/**
 * 删除日志表
 * @author wanghui@uuzu.com
 * @date 2015-4-27
 */
require dirname(__FILE__) . '/../global.php';
TenYear::getInstance();
ini_set('default_socket_timeout', -1);
Com_AdCache::factory()->set_timeout(0);
$objGameLog = new Com_GameLog();
Com_Timer::register_datetime(array($objGameLog, 'drop_table_name'), "04:00");
if ($argv[1] == 'd') {
    $objGameLog->drop_table_name();
    exit;
}
Com_Timer::start();
Exemplo n.º 2
0
 public static function register($func, $timer = 60)
 {
     self::$timers[$timer][] = $func;
     self::$minTimer = min(self::$minTimer, $timer);
 }