Файл: in4at/shutnik.php
Строк: 35
<?php
##################################################################################################
## Script name : In4at ##
## Version : Final ##
## Made by : XPYCT(?????? ???????) ##
## E-mail : bce-ok@bk.ru ##
## ICQ : 447-50-50-62 ##
## Site : http://vkontakte.ru/id31604521 ##
## ????????! ?????? ???????????????? ?????????! ??????????? W4at by XPYCT ##
##################################################################################################
Error_Reporting(0);
$r1 = $set['roomon'];
$r2 = $set['roomoff'];
if ($a['anekdot']<time()){
$andata = time() + $set['shutint'];
mysql_query("Update optim set anekdot='".$andata."' WHERE klu4 = '1'");
$r = mysql_query("select count(klu4) as num from anekdot");
$a = mysql_fetch_array($r);
$rnd = rand(1,$a['num']);
$r = mysql_query("SELECT message FROM anekdot WHERE klu4 = '".$rnd."' LIMIT 1;");
$b = mysql_fetch_array($r);
$mes = '<br/>'.$b["message"];
$rnd = rand(0,99999999);
$today = date("H:i");
$time = getmicrotime();
$shut = mysql_query("Select user from users where id='3' LIMIT 1;");
$zz = mysql_fetch_array($shut);
$shutnik = $zz['user'];
for ($num = $r1;$num <= $r2;$num++){
$ranec = 'room'.$num;
mysql_query("Insert into $ranec set klu4= '".$rnd."', time='".$today."', who='".$shutnik."', message='".$mes."', id='".$time."', towhom='', hid='0', usid='3'");
mysql_query("ANALYZE TABLE $ranec");
}
}
?>