Файл: accmarket.net/cron/obnul.php
Строк: 32
<?
define('_ON_CMS', 1);
$rootpath = '../';
require_once '../includes/start.php';
require_once '../includes/function.php';
require_once '../includes/header.php';
echo '<div class="top">Апдейт БД</div>';
mysql_query("TRUNCATE TABLE `army`;");
mysql_query("TRUNCATE TABLE `art`;");
mysql_query("TRUNCATE TABLE `autopilot`;");
mysql_query("TRUNCATE TABLE `ban`;");
mysql_query("TRUNCATE TABLE `building`;");
mysql_query("TRUNCATE TABLE `doklad`;");
mysql_query("UPDATE `fractions` SET
`lvl` = '1',
`opyt` = '0',
`min` = '0',
`gas` = '0',
`metall` = '0',
`kred` = '0',
`prov` = '0',
`water` = '0';");
mysql_query("TRUNCATE TABLE `log_battle`;");
mysql_query("TRUNCATE TABLE `log_torg`;");
mysql_query("TRUNCATE TABLE `log_zahvat`;");
mysql_query("TRUNCATE TABLE `moon`;");
mysql_query("TRUNCATE TABLE `planet`;");
mysql_query("TRUNCATE TABLE `planet_loc`;");
mysql_query("TRUNCATE TABLE `planet_units`;");
mysql_query("TRUNCATE TABLE `rabota`;");
mysql_query("TRUNCATE TABLE `science`;");
mysql_query("TRUNCATE TABLE `sector_loc`;");
mysql_query("UPDATE `setting` SET `val` = '0' WHERE `key` = 'xnum';");
mysql_query("UPDATE `setting` SET `val` = '0' WHERE `key` = 'ynum';");
mysql_query("UPDATE `setting` SET `val` = '1' WHERE `key` = 'lsun';");
mysql_query("TRUNCATE TABLE `sosed`;");
mysql_query("TRUNCATE TABLE `sun`;");
mysql_query("TRUNCATE TABLE `torg`;");
mysql_query("TRUNCATE TABLE `units`;");
mysql_query("TRUNCATE TABLE `war`;");
mysql_query("UPDATE `users` SET `ban` = '0';");
mysql_query("UPDATE `users` SET `lvl_hero` = '1';");
mysql_query("UPDATE `users` SET `game` = '0';");
mysql_query("UPDATE `users` SET
`quest` = '1',
`sc_quest` = '1' WHERE `id` =1;");
div('<a href="../">В игру</a>','conts');
require_once '../includes/footer.php';
?>