View file Core/cron.php

File size: 718B
<?php
require_once ('connect.php');
$mysqli->query("UPDATE `sait` SET `hosts` = '0', `hits` = '0', `in` = '0', `out` = '0'");
$mysqli->query("UPDATE `statistic` SET `value` = '0' WHERE `name` = 'in'");
$mysqli->query("UPDATE `statistic` SET `value` = '0' WHERE `name` = 'out'");
$mysqli->query("UPDATE `statistic` SET `value` = '0' WHERE `name` = 'hosts'");
$mysqli->query("UPDATE `statistic` SET `value` = '0' WHERE `name` = 'hits'");
$mysqli->query("TRUNCATE TABLE `browsers`");
$mysqli->query("TRUNCATE TABLE `country`");
$mysqli->query("TRUNCATE TABLE `hours`");
$mysqli->query("TRUNCATE TABLE `operators`");
$mysqli->query("TRUNCATE TABLE `search`");
$mysqli->query("TRUNCATE TABLE `shows`");
?>