Файл: DARK WARS/dark_war/class/is_log.class.php
Строк: 9
<?php
class is_log {
public static function logs($where, $description) {
global $player;
if (mysql_result(mysql_query("SELECT COUNT(*) FROM `dark_war_adminlog` WHERE `time` <= '".(TIME - 2592000)."'"), 0)) {
mysql_query("DELETE FROM `dark_war_adminlog` WHERE `time` <= '".(TIME - 2592000)."'");
}
mysql_query("INSERT INTO `dark_war_adminlog` (`id_player`, `where`, `description`, `time`)
VALUES ('{$player->id}', '$where', '" . my_esc($description) . "', '".TIME."')");
}
}
?>