View file xj9/bsend.php

File size: 2.07Kb
<?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);
$bsend = time() + 86400;
mysql_query("Update optim set bsend='".$bsend."' WHERE klu4 = '1'");
$d=date("d-m-");
$y=date("Y");
$select = mysql_query("Select id,user,birth,sex from users where birth LIKE '%$d%' and id>10");
if (mysql_affected_rows()!=0){
$systs = mysql_fetch_array(mysql_query("Select user from users where id='1' LIMIT 1;"));
$time = time();
$today=date ("H:i");
$data = date("d-M-Y [H:i]");
$tema = 'Поздравляем!!!';
$messages = 'От имени Администрации и всех пользователей чата примите поздравление. Будьте здоровы и счастливы, и пусть все Ваши желания обязательно исполнятся!';
while ($inf = mysql_fetch_array($select)){
$userbirth=$inf['user'];
$usidm=$inf['id'];
$pol=$inf['sex'];
$rand = rand(0,99999999);
mysql_query("Insert into zapiski set klu4='".$rand."', who ='".$systs[0]."', idwho ='1', message = '".$messages."', towhom = '".$userbirth."', idtowhom = '".$usidm."', time = '".$time."', readd = '0', topic = '".$tema."', date='".$data."'");
}
}

?>