Просмотр файла znak_myxxx.ru/znak_myxxx.ru/addadd.php

Размер файла: 3.75Kb
<?php
include("service.php");
$ip = $REMOTE_ADDR;
$ag = $HTTP_USER_AGENT;
if($name=="" or $text=="") {
Header("Content-type: text/vnd.wap.wml");
print "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
print "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\" \"http://www.wapforum.org/DTD/wml_1.1.xml\">\n";
print "<wml>\n";
print "<card id=\"acq\" title=\"myxxx.ru\" ontimer=\"addyes.php\">\n";
print "<timer value=\"20\"/>\n";
print "<p align=\"center\">\n";
print "He &#x0437;a&#x043F;o&#x043B;&#x043D;e&#x043D;&#x044B; &#x043F;o&#x043B;e &#x0438;&#x043C;&#x044F; &#x0438;&#x043B;&#x0438; &#x0442;e&#x043A;c&#x0442;\n";
print "</p>\n";
print "</card>\n";
print "</wml>\n";
exit; }
if($num=="" and $em=="") {
Header("Content-type: text/vnd.wap.wml");
print "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
print "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\" \"http://www.wapforum.org/DTD/wml_1.1.xml\">\n";
print "<wml>\n";
print "<card id=\"acq\" title=\"myxxx.ru\" ontimer=\"addyes.php\">\n";
print "<timer value=\"20\"/>\n";
print "<p align=\"center\">\n";
print "He&#x0442; &#x043A;oop&#x0434;&#x0438;&#x043D;a&#x0442; &#x0434;&#x043B;&#x044F; c&#x0432;&#x044F;&#x0437;&#x0438;\n";
print "</p>\n";
print "</card>\n";
print "</wml>\n";
exit; }
if($num<>"" and ctype_digit(substr($num, 1))<>1) {
Header("Content-type: text/vnd.wap.wml");
print "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
print "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\" \"http://www.wapforum.org/DTD/wml_1.1.xml\">\n";
print "<wml>\n";
print "<card id=\"acq\" title=\"myxxx.ru\" ontimer=\"addyes.php\">\n";
print "<timer value=\"20\"/>\n";
print "<p align=\"center\">\n";
print "He&#x043F;pa&#x0432;&#x0438;&#x043B;&#x044C;&#x043D;o &#x0437;a&#x0434;a&#x043D; &#x043D;o&#x043C;ep\n";
print "</p>\n";
print "</card>\n";
print "</wml>\n";
exit; }
if($em<>"" and preg_match("/^([a-z,A-Z,0-9,_,\-,\.])+\@([a-z,A-Z,0-9,_,\-])+(\.([a-z,A-Z,0-9])+)+$/",$em)<>1) {
Header("Content-type: text/vnd.wap.wml");
print "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
print "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\" \"http://www.wapforum.org/DTD/wml_1.1.xml\">\n";
print "<wml>\n";
print "<card id=\"acq\" title=\"myxxx.ru\" ontimer=\"addyes.php\">\n";
print "<timer value=\"20\"/>\n";
print "<p align=\"center\">\n";
print "He&#x043F;pa&#x0432;&#x0438;&#x043B;&#x044C;&#x043D;o y&#x043A;a&#x0437;a&#x043D; a&#x0434;pec email\n";
print "</p>\n";
print "</card>\n";
print "</wml>\n";
exit; }

$log=date("md");
$dt = date("d-m-Y H:i");
mysql_connect($DB_HOST,$DB_USER,$DB_PASS) or die (mysql_error());
mysql_select_db($DB_NAME) or die (mysql_error());
if($em=="") mysql_query("INSERT INTO `asq` (`id`,`sect`,`name`,`text`,`num`,`nyes`,`dt`,`log`,`ip`,`ag`) VALUES ('','$sect','$name','$text','$num','$nyes','$dt','$log','$ip','$ag');");
if($num=="") mysql_query("INSERT INTO `asq` (`id`,`sect`,`name`,`text`,`nyes`,`em`,`dt`,`log`,`ip`,`ag`) VALUES ('','$sect','$name','$text','$nyes','$em','$dt','$log','$ip','$ag');");
if($em<>"" and $num<>"") mysql_query("INSERT INTO `asq` (`id`,`sect`,`name`,`text`,`num`,`nyes`,`em`,`dt`,`log`,`ip`,`ag`) VALUES ('','$sect','$name','$text','$num','$nyes','$em','$dt','$log','$ip','$ag');");
Header("Content-type: text/vnd.wap.wml");
print "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
print "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\" \"http://www.wapforum.org/DTD/wml_1.1.xml\">\n";
print "<wml>\n";
print "<card id=\"acq\" title=\"myxxx.ru\" ontimer=\"acq.php\">\n";
print "<timer value=\"20\"/>\n";
print "<p align=\"center\">\n";
print "Ba&#x0448;e o&#x0431;&#x044A;&#x044F;&#x0432;&#x043B;e&#x043D;&#x0438;e &#x0434;o&#x0431;a&#x0432;&#x043B;e&#x043D;o\n";
print "</p>\n";
print "</card>\n";
print "</wml>\n";
?>