<?
require_once 'inc/system/start_sess.php';
$rand=rand(1,5);
mysql_query("UPDATE `action` SET `action` = '$rand' WHERE `id` ='1';");
mysql_query("UPDATE `kolhoz_user` SET `action` = '0' WHERE `id` >'0';");
$action =mysql_fetch_array(mysql_query("SELECT * FROM `action` WHERE `id` = '1';"));
$time=time();
$timee=86400*3+$time;
mysql_query("UPDATE `action` SET `time` = '$timee' WHERE `id` = '1'");
?>