20 lines
898 B
PHP
20 lines
898 B
PHP
|
<?php
|
|||
|
|
|||
|
use Core\Db;
|
|||
|
|
|||
|
require_once dirname(__DIR__) . DIRECTORY_SEPARATOR . 'autoload.php';
|
|||
|
|
|||
|
/**
|
|||
|
* <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD>.
|
|||
|
* <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 20 <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>?
|
|||
|
*/
|
|||
|
|
|||
|
Db::sql('delete from battle_end where time < unix_timestamp() - 24 * 60 * 60');
|
|||
|
Db::sql('delete from battle_last where time < unix_timestamp() - 24 * 60 * 60');
|
|||
|
Db::sql('delete from battle_out where time < unix_timestamp() - 24 * 60 * 60');
|
|||
|
Db::sql('delete from battle_stat where time < unix_timestamp() - 24 * 60 * 60');
|
|||
|
Db::sql('delete from battle_logs where time < unix_timestamp() - 24 * 60 * 60');
|
|||
|
Db::sql('delete from battle_logs_save where time < unix_timestamp() - 24 * 60 * 60');
|
|||
|
Db::sql('delete from battle_users where time_enter between 1 and unix_timestamp() - 24 * 60 * 60');
|
|||
|
Db::sql('delete from battle where time_over between 1 and unix_timestamp() - 24 * 60 * 60');
|