Файл: crontab.php
Строк: 18
<?
echo 000000000000000;
include 'inc/config.php';
$db=mysql_connect('localhost',b_user,b_pass);
mysql_select_db((baza),$db);
mysql_query('set charset utf8',$db);
mysql_query('SET names utf8',$db);
mysql_query('set character_set_client="utf8"',$db);
mysql_query('set character_set_connection="utf8"',$db);
mysql_query('set character_set_result="utf8"',$db);
$fs_query = mysql_query("SELECT `who`, `cn` FROM `".prefix."stats` WHERE `ts`=CURDATE() GROUP BY `who` ORDER BY `cn` DESC ");
$i = 35;
$ii=0;
$text='Самые лучшие за сегодня получили бонус<br/>1){user1} + 30кр<br/>2){user2} + 25кр<br/>3){user3} + 20кр<br/>';
while($user = mysql_fetch_assoc($fs_query))
{
//$ii++;
//$i=$i-5;
echo $user['who']'.<br/>.';
//mysql_query("UPDATE `".prefix."users` SET bank=bank+'$i' WHERE login='$user[login]'");
//$text=str_replace('{user'.$ii.'}',$user['who'],$text);
}
mysql_query("INSERT into `".prefix."guest` (`who`,`text`,`ts`,`ua`) values ('Бот','".$text."','".time()."','127.0.0.1')");
?>