Файл: gamele.ru/cron/test2.php
Строк: 13
<?php
session_start();
include($_SERVER["DOCUMENT_ROOT"]."/includes/config.inc.php");
include(DROOT."/includes/functions.php");
$arGiftID = mysql_fetch_assoc(mysql_query("SELECT `id` FROM `user` WHERE `id`>'10000' AND `block`='' AND `sex`='male';"));
foreach($arGiftID as $iGift) {
mysql_query("INSERT INTO `presents` (`uid`, `present`, `time`, `text`,`from`,`open`,`holiday`) VALUES ('".$iGift."', '2300', '".((15*86400)+time())."', 'C Днем победы','Администрация','1','2302');");
}
?>