Файл: inc/user/Chest.php
Строк: 25
<?
include_once '/inc/system/config.php';
$timee=$time+(3600*24*3);
$randOpen = rand(0,350);
if($randOpen == 15){
mysql_query("INSERT INTO `chest` SET `id_user` = '$ku[id]', `type` = '1', `time` = '$timee'");
mysql_query("INSERT INTO `kolhoz_mail` SET `id_user` = '$ku[id]', `id_kont` = '0', `msg` = 'Найден открытый сундук', `time` = '$time', `type` = 'to'");
}
$timee=$time+(3600*24*3);
$randNormal = rand(0,200);
if($randNormal == 3){
mysql_query("INSERT INTO `chest` SET `id_user` = '$ku[id]', `type` = '2', `time` = '$timee'");
mysql_query("INSERT INTO `kolhoz_mail` SET `id_user` = '$ku[id]', `id_kont` = '0', `msg` = 'Найден обычный сундук', `time` = '$time', `type` = 'to'");
}
$timee=$time+(3600*24*3);
$randBronze = rand(0,300);
if($randBronze == 10){
mysql_query("INSERT INTO `chest` SET `id_user` = '$ku[id]', `type` = '3', `time` = '$timee'");
mysql_query("INSERT INTO `kolhoz_mail` SET `id_user` = '$ku[id]', `id_kont` = '0', `msg` = 'Найден бронзовый сундук', `time` = '$time', `type` = 'to'");
}
$timee=$time+(3600*24*3);
$randSilver = rand(0,500);
if($randSilver == 24){
mysql_query("INSERT INTO `chest` SET `id_user` = '$ku[id]', `type` = '4', `time` = '$timee'");
mysql_query("INSERT INTO `kolhoz_mail` SET `id_user` = '$ku[id]', `id_kont` = '0', `msg` = 'Найден серебрянный сундук', `time` = '$time', `type` = 'to'");
}
?>