/** * clean _POST variable if exists and return it * * @since 2.0 * @param string $name The name of _POST variable * @param string $type The type of the varaible, str or int * @param mixed $default_value [optional] The default value to be return if not existed * @return string|bool */ function p($name, $type = 'str', $default_value = false) { return isset($_POST[$name]) ? clean_var($_POST[$name], $type) : $default_value; }
function get_http_var($name, $sanitize = true, $default = null) { //global $HTTP_GET_VARS, $HTTP_POST_VARS; if (array_key_exists($name, $_POST)) { return mk_utf8(clean_var($_POST[$name], $sanitize)); } if (array_key_exists($name, $_GET)) { return mk_utf8(clean_var($_GET[$name], $sanitize)); } return $default; }
} if (empty($_REQUEST['message'])) { $pass = 1; $alert .= "<li>" . $emptymessage . "</li>"; $alert .= "<script>jQuery(\"#message\").addClass(\"error\");</script>"; } elseif (ereg("[][{}()*+\\^\$|]", $_REQUEST['message'])) { $pass = 1; $alert .= "<li>" . $alertmessage . "</li>"; } if ($pass == 1) { echo "<script>\$(\".message\").toggle();\$(\".message\").toggle().hide(\"slow\").show(\"slow\"); </script>"; echo "<script>\$(\".alert\").addClass('alert-block alert-error').removeClass('alert-success'); </script>"; echo $errormessage; echo $alert; } elseif (isset($_REQUEST['message'])) { $message = "From: " . clean_var($_REQUEST['name']) . "\n"; $message .= "Email: " . clean_var($_REQUEST['email']) . "\n"; $message .= "Message: \n" . clean_var($_REQUEST['message']); $header = 'From:' . clean_var($_REQUEST['email']); mail($sendto, $subject, $message, $header); echo "<script>\$(\".message\").toggle();\$(\".message\").toggle().hide(\"slow\").show(\"slow\");\$('#contactForm')[0].reset();</script>"; echo "<script>\$(\".alert\").addClass('alert-block alert-success').removeClass('alert-error'); </script>"; echo $thanks; echo "<script>jQuery(\"#name\").removeClass(\"error\");jQuery(\"#email\").removeClass(\"error\");jQuery(\"#message\").removeClass(\"error\");</script>"; die; echo "<br/><br/>" . $message; } } else { echo "<script>\$(\".message\").toggle();\$(\".message\").toggle().hide(\"slow\").show(\"slow\"); </script>"; echo $honeypot; }
function get_cookie_var($name, $default = '') { if (array_key_exists($name, $_COOKIE)) { return clean_var($_COOKIE[$name]); } return $default; }
$iserror = 1; $alert .= "<li><h6>" . $alertmessage . "</h6></li>"; } // if there was error, print alert message if ($iserror == 1) { echo "<script>\n\t\t\$(\"#message\").addClass(\"warning\").stop().slideDown(\"normal\").fadeIn(\"normal\").delay(3000).slideUp(\"normal\");\n\t\n\t </script>"; echo "<div class=\"alert alert-block alert-danger\">"; echo "<div data-icon=\"\" class=\"alert_icon\"></div>"; echo "<div class=\"alert_title\"><h4>" . $iserrormessage . "</h4></div><br />"; echo "<ul class=\"unordered\">"; echo $alert; echo "</ul>"; echo "</div>"; } else { // if everything went fine, send e-mail $plsubject = "=?utf-8?B?" . base64_encode($subject) . "?="; $msg = "Name: " . clean_var($_REQUEST['contact-name']) . "\n"; $msg .= "E-mail: " . clean_var($_REQUEST['contact-email']) . "\n"; $msg .= "Message: \n\n" . clean_var($_REQUEST['contact-message']); $header = "Content-type: text/plain; charset=utf-8\r\n"; $header .= 'From:' . clean_var($_REQUEST['contact-email']); mail($sendto, $plsubject, $msg, $header); echo "<script>\$(\"#message\").addClass(\"success\").stop().slideDown(\"normal\").fadeIn(\"normal\").delay(3000).slideUp(\"normal\");</script>"; echo "<div class=\"alert alert-block alert-success\">"; //echo "<button type=\"button\" class=\"close\" data-dismiss=\"alert\"><i class=\"icon-cross\"></i></button>"; echo "<div data-icon=\"\" class=\"alert_icon\"></div>"; echo "<h4>" . $thanks . "</h4>"; echo "</div>"; echo "<script>\$('#contact-form input[type=text], #contact-form textarea').val('');</script>"; die; }
$web_email = " {$web_label}: {$web_value}\n"; } if ($optmenu_value == "") { $optmenu_email = ""; } else { $optmenu_email = " {$optmenu_label}: {$optmenu_value}\n"; } ### Generate and send the primary email $mail_content = "{$salutation} {$addressee},\n\n{$mail_text} {$name_value}. {$mail_text2}:\n\n {$message_value}\n\n\n{$mail_text3}:\n\n {$name_label}: {$name_value}\n {$email_label}: {$email_value} {$cc_notify_e}\n{$org_email}{$phone_email}{$addy1_email}{$addy2_email}{$city_email}{$state_email}{$postcode_email}{$country_email}{$web_email}{$optmenu_email}\n\n{$mail_data_text}:"; $mail_content = clean_var($mail_content); $mail_content = "{$mail_content}\n\n {$timestamp_text}: {$ltd}\n IP: {$ip}\n UA: {$nua}\n ISP: {$hst}\n Ref: {$hr}\n Whois: {$whois}\n\n"; mail("{$send_email}", "[{$web_site}] {$subject_value}", $mail_content, $mail_header, $param); ### Generate and send the cc email if ($cc_opt_value == "cc") { $cc_mail_content = "{$salutation} {$modded_name},\n\n{$cc_mail_text} {$web_site}. {$mail_text2}:\n\n {$message_value}\n\n\n{$mail_text3}:\n\n {$name_label}: {$name_value}\n {$email_label}: {$email_value}\n{$org_email}{$phone_email}{$addy1_email}{$addy2_email}{$city_email}{$state_email}{$postcode_email}{$country_email}{$web_email}{$optmenu_email}\n\n{$mail_data_text}:"; $cc_mail_content = clean_var($cc_mail_content); $cc_mail_content = "{$cc_mail_content}\n\n {$timestamp_text}: {$ltd}\n\n"; mail("{$email_value}", "[{$cc_cc_text}] {$subject_value}", $cc_mail_content, $cc_mail_header, $param); } ### Format the success message $user_message = '<div id="results"><p class="success"><strong>' . $success_text . ' ' . $ltd . ', ' . $modded_name . ' — <a href="' . $action . '">' . $reset_link_text . '</a>' . $cc_notify . '</strong></p></div>'; ### Reset variables $id_value = ""; $name_value = ""; $email_value = ""; $org_value = ""; $phone_value = ""; $addy1_value = ""; $addy2_value = ""; $city_value = ""; $state_value = "";
echo "\n<table width=\"100%\" height=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n<tr>\n\t<td width=250 nowrap><img src='img/index/warrior1.png' border=0></td>\n <td align=\"center\" valign=\"center\" width=100%>\n \t<table width=600>\n \t<tr>\n\t\t\t<td>\n\t\t\t\t<h3>Браузерная игра WWW.http://oldmeydan.pe.hu/!</h3>\n\t\t\t\t<b>Я проведу Вас через портал в удивительный мир!</b><br>\n\t\t\t\tПосле того, как король Корвин покинул этот мир, не оставив наследника, \n\t\t\t\tСрединное королевство было ввергнуто в пучину Смуты и хаоса. \n\t\t\t\tВсе, кто мог держать в руках оружие, сбились в могущественные кланы, и каждый из них претендовал на господство. \n\t\t\t\tСильные побеждали слабых, слабые объединялись против сильных, и никто не мог предсказать исход этой войны – \n\t\t\t\tА всё потому, что здесь любой бедняк мог запросто сделаться богачом, а богач - разорится. И не было конца битве…\n\t\t\t</td>\n\t\t</tr>\n\t\t</table>"; switch ($level) { //-------------------------------------------------------------------------------------------------------- case 1: echo "\n\t\t \t\t\t<FORM action='reg.php' method='POST' name='FORM1'>\n\t\t \t\t\t<TABLE WIDTH=600 CELLSPACING=1 CELLPADDING=2 BGCOLOR=#212120 name=\"F1\">\n\t\t\t\t\t<INPUT type=hidden name=step value='1'>\n\t\t <INPUT type=hidden name=add value='1'>\n\t\t\t\t\t<TR bgcolor=#D5D5D5>\n\t\t\t\t\t\t<TD >\n\t\t \t<B>Внимание!</B></span> Данная игра работает <U>только</U> под браузером Internet Explorer!<BR><BR>\n\t\t \t<FONT color=red>" . clean_var($message) . " </FONT><br><br>\n\t\t\t\t\t\t\t<b>Назови свое имя, дабы могли мы известить мир о твоем приходе.</b><br>\n\t\t \t\t<font color=#FF0000>*</font> Имя вашего персонажа: <input NAME=\"login\" value='" . clean_var($login) . "' class=\"inup\" size=30 maxlength=30>\n\t\t \t\t <INPUT name=add type=submit class=\"btn\" value=\"Продолжить\">\n\t\t \t\t\t<br><br>\n\t\t \t\t\t<small><br><br><b>Подсказка:</b> Длинна имени от 3 до 30 символов. \n\t\t \t\t\tМожно использовать только русские либо английские буквы, цифры и пробел.\n\t\t \t\t</TD>\n\t\t\t\t\t</TR>\n\t\t\t\t\n\t\t\t\t\t<input type='hidden' name='ref' value=\"" . $ref . "\">\n\t\t\t\t\t<input type='hidden' name='psw' value=\"" . clean_var($psw) . "\">\n\t\t\t\t\t<input type='hidden' name='psw2' value=\"" . clean_var($psw) . "\">\n\t\t\t\t\t<input type='hidden' name='email' value=\"" . clean_var($email) . "\">\n\t\t\t\t\t<input type='hidden' name='name' value=\"" . clean_var($name) . "\">\n\t\t <input type='hidden' name='0day' value=\"" . clean_var($birthday) . "\">\n\t\t <input type='hidden' name='sex' value=\"" . clean_var($sex) . "\">\n\t\t <input type='hidden' name='city2' value=\"" . clean_var($city2) . "\">\n\t\t <input type='hidden' name='icq' value=\"" . clean_var($icq) . "\">\n\t\t <input type='hidden' name='about' value=\"" . clean_var($about) . "\">\n\t\t <input type='hidden' name='ChatColor' value=\"" . clean_var($chatcolor) . "\">\n\t\t\t\t\t</table></FORM>"; break; //-------------------------------------------------------------------------------------------------------- //-------------------------------------------------------------------------------------------------------- case 2: echo "\n\t\t\t\t\t<FORM action='reg.php' method='POST' name='FORM1'>\n\t\t\t\t\t<TABLE WIDTH=600 CELLSPACING=1 CELLPADDING=2 BGCOLOR=#212120 name=\"F1\">\n\t\t\t\t\t<INPUT type=hidden name=step value='2'>\n\t\t\t\t\t<INPUT type=hidden name=add value='1'>\n\t\t\t\t\t<TR bgcolor=#D5D5D5>\n\t\t\t\t\t\t<TD>\n\t\t\t\t\t\t\t<B>Внимание!</B></span> Данная игра работает <U>только</U> под браузером Internet Explorer!<BR><BR>\n\t\t \t<FONT color=red>" . clean_var($message) . " </FONT><BR>\n\t\t \t\tИмя вашего персонажа: <input type='hidden' NAME=\"login\" value='" . clean_var($login) . "'><b>" . clean_var($login) . "</b>\n\t\t \t\t<BR><BR>\n\t\t\t\t\t\t\t<table width=100% border=0 CELLSPACING=0 CELLPADDING=0>\n\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t<td><font color=#FF0000>*</font> Пароль:</td><td><input name=psw type=password value=\"" . clean_var($psw) . "\" class=\"inup\" size=15 maxlength=21></td>\n\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t<td><font color=#FF0000>*</font> Пароль повторно:</td><td><input name=psw2 type=password value=\"" . clean_var($psw2) . "\" class=\"inup\" size=15 maxlength=21></td>\n\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t<tr><td colspan=2 height=20></td></tr>\n\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t<td colspan=2><small>\n\t\t\t\t\t \t\t1. Пароль не может быть короче 6 символов.<BR>\n\t\t\t\t\t\t\t\t\t\tНеправильно: <B>Aa123</B>, <B>tk3</B><BR>\n\t\t\t\t\t\t\t\t\t\tПравильно: <B>Turbo371</B><BR><BR>\n\t\t\t\t\t\t\t\t\t\t2. Запрещены пароли содержащие только буквы одной раскладки и одного регистра.<BR>\n\t\t\t\t\t\t\t\t\t\tНеправильно: <B>azerbaycan</B>, <B>avtomobil</B><BR>\n\t\t\t\t\t\t\t\t\t\tПравильно: <B>azerbaycan38</B>, <B>avto_mobil</B><BR><BR>\n\t\t\t\t\t\t\t\t\t\t3. Запрещены простые, распространенные пароли.<BR>\n\t\t\t\t\t\t\t\t\t\tНеправильно: <B>qwerty123456</B>, <B>qazwsx098</B><BR>\n\t\t\t\t\t\t\t\t\t\tПравильно: <B>akhtsel371</B>, <B>human-85y</b><BR><BR>\n\t\t\t\t\t\t\t\t\t\t4. Пароль не должен содержать части логина.\n\t\t\t\t\t\t\t\t\t\tНеправильно: <B>turbo2004</B> при логине <B>Turbo</B><BR>\n\t\t\t\t\t\t\t\t\t\tПравильно: <B>latin9658</B>, <B>human-85y</b> при логине <B>Turbo</B>.<BR><BR>\n\t\t\t\t\t\t\t\t\t\t5. Категорически не рекомендуется выбирать пароль совпадающий с паролем на email.<BR>\n\t\t\t\t\t\t\t\t\t\t</small>\n\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t \t<TD><INPUT onclick='FORM1.step.value=\"-1\"; FORM1.submit()' type=button class=\"btn\" value=\"Вернуться\"></td>\n\t\t\t\t <TD align=right><INPUT type=submit class=\"btn\" value=\"Продолжить\"></td>\n\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t</TABLE>\n\t\t \t</TD>\n\t\t </TR>\n\t\t <input type='hidden' name='ref' value=\"" . $ref . "\">\n\t\t\t\t\t<input type='hidden' name='email' value=\"" . clean_var($email) . "\">\n\t\t\t\t\t<input type='hidden' name='name' value=\"" . clean_var($name) . "\">\n\t\t\t\t\t<input type='hidden' name='0day' value=\"" . clean_var($birthday) . "\">\n\t\t\t\t\t<input type='hidden' name='sex' value=\"" . clean_var($sex) . "\">\n\t\t\t\t\t<input type='hidden' name='city2' value=\"" . clean_var($city2) . "\">\n\t\t\t\t\t<input type='hidden' name='icq' value=\"" . clean_var($icq) . "\">\n\t\t\t\t\t<input type='hidden' name='about' value=\"" . clean_var($about) . "\">\n\t\t\t\t\t<input type='hidden' name='ChatColor' value=\"" . clean_var($chatcolor) . "\">\n\t\t\t\t\t</table></FORM>"; break; //-------------------------------------------------------------------------------------------------------- //-------------------------------------------------------------------------------------------------------- case 3: echo "\n\t\t\t\t\t<FORM action='reg.php' method='POST' name='FORM1'>\n\t\t\t\t\t<TABLE WIDTH=600 CELLSPACING=1 CELLPADDING=2 BGCOLOR=#212120 name=\"F1\">\t\t\t\n\t\t <INPUT type=hidden name=step value='3'>\n\t\t <INPUT type=hidden name=add value='1'>\n\t\t\t\t\t<TR bgcolor=#D5D5D5>\n\t\t\t\t\t\t<TD>\t\t\t\t\n\t\t\t\t\t\t\t<table width=100% border=0 CELLSPACING=0 CELLPADDING=0>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td colspan=2>\n\t\t\t\t\t\t\t\t\t<B>Внимание!</B></span> Данная игра работает <U>только</U> под браузером Internet Explorer!<BR><BR>\n\t\t\t\t\t\t\t\t\t<FONT color=red>" . clean_var($message) . " </FONT><BR>\n\t\t\t\t\t Имя вашего персонажа: <input type='hidden' NAME=\"login\" value='" . clean_var($login) . "'><b>" . clean_var($login) . "</b>\n\t\t\t\t \t\t\t</TD>\n\t\t\t\t\t\t\t</TR>\n\t\t\t\t <TR>\n\t\t\t\t \t<INPUT type='hidden' name='psw' value=\"" . clean_var($psw) . "\">\n\t\t\t\t\t\t\t\t<INPUT type='hidden' name='psw2' value=\"" . clean_var($psw) . "\">\n\t\t\t \t\t<TD><font color=#FF0000>*</font> Ваш e-mail: </TD>\n\t\t\t \t\t<TD><input name=email class=\"inup\" value=\"" . clean_var($email) . "\" maxlength=50></TD>\n\t\t\t\t\t\t\t</TR>\n\t\t\t\t\t\t\t<tr><td colspan=2 height=20></td></tr>\n\t\t\t\t\t\t\t<TR>\n\t\t\t\t\t\t\t\t<TD colspan=2><small>(используется <U>только</U> для напоминания пароля, нигде не отображается и не используется для рассылки \"уведомлений/обновлений/...\" и прочего спама.<BR>\n\t\t\t\t\t\t\t\t\tВ целях безопасности запрещена регистрация с @hotmail.com,@bk.ru)</small>\n\t\t\t\t\t\t\t\t</TD>\n\t\t\t\t\t\t\t</TR>\n\t\t\t\t\t\t\t<TR>\n\t\t\t\t\t\t\t\t<TD><INPUT onclick='FORM1.step.value=\"1\"; FORM1.submit()' type=button class=\"btn\" value=\"Вернуться\"></td>\n\t\t\t\t\t\t\t\t<TD><INPUT type=submit class=\"btn\" value=\"Продолжить\"></td.\n\t\t\t\t\t\t\t</TR>\n\t\t\t\t\t\t\t</table>\n\t\t\t\t\t\t<input type='hidden' name='ref' value=\"" . $ref . "\">\n\t\t\t\t\t\t<input type='hidden' name='name' value=\"" . clean_var($name) . "\">\n\t\t\t\t\t\t<input type='hidden' name='0day' value=\"" . clean_var($birthday) . "\">\n\t\t\t\t\t\t<input type='hidden' name='sex' value=\"" . clean_var($sex) . "\">\n\t\t\t\t\t\t<input type='hidden' name='city2' value=\"" . clean_var($city2) . "\">\n\t\t\t\t\t\t<input type='hidden' name='icq' value=\"" . clean_var($icq) . "\">\n\t\t\t\t\t\t<input type='hidden' name='about' value=\"" . clean_var($about) . "\">\n\t\t\t\t\t\t<input type='hidden' name='ChatColor' value=\"" . clean_var($chatcolor) . "\">\n\t\t \t\t</td></tr></table></FORM>"; break; //-------------------------------------------------------------------------------------------------------- //-------------------------------------------------------------------------------------------------------- case 4: echo "\n\t\t\t\t\t<FORM action='reg.php' method='POST' name='FORM1'>\n\t\t\t\t\t<TABLE WIDTH=600 CELLSPACING=1 CELLPADDING=2 BGCOLOR=#212120 name=\"F1\">\n\t\t <INPUT type=hidden name=step value='4'>\n\t\t <INPUT type=hidden name=add value='1'>\n\t\t\t\t\t<TR bgcolor=#D5D5D5>\n\t\t\t\t\t\t<TD>\n\t\t\t\t\t\t\t<table width=100% border=0 CELLSPACING=0 CELLPADDING=0>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td colspan=2>\n\t\t\t\t\t\t\t\t\t<span class=\"style5\"><B>Внимание!</B></span> Данная игра работает <U>только</U> под браузером Internet Explorer!<BR><BR>\n\t\t\t\t\t\t\t\t\t<FONT color=red>" . clean_var($message) . "<B></b></FONT><BR>\n\t\t\t\t\t\t\t\t\tИмя вашего персонажа: <input type='hidden' NAME=\"login\" value='" . clean_var($login) . "'><b>" . clean_var($login) . "</b>\n\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t</TR>\n\t\t\t\t\t\t\t<TR>\n\t\t\t\t\t\t\t\t<input type='hidden' name='ref' value=\"" . $ref . "\">\n\t\t\t\t\t\t\t\t<input type='hidden' name='psw' value=\"" . clean_var($psw) . "\">\n\t\t\t\t\t\t\t\t<input type='hidden' name='psw2' value=\"" . clean_var($psw) . "\">\n\t\t\t\t\t\t\t\t<input type='hidden' name='email' value=\"" . clean_var($email) . "\">\n\t\t\t\t\t\t\t\t<TD><font color=#FF0000>*</font> Ваше реальное имя: </TD>\n\t\t\t\t\t\t\t\t<TD><input name=\"name\" value='" . clean_var($name) . "' class=\"inup\" size=45 maxlength=90></TD>\n\t\t\t\t\t\t\t</TR>\n\t\t\t\t\t\t<TR>\n\t\t\t\t\t\t\t<TD><font color=#FF0000>*</font> День рождения:</TD>\n\t\t\t\t\t\t\t<TD>\n\t\t\t\t\t\t\t\t<script>\n\t\t\t\t\t\t\t\tfunction procdays (month) \n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tvar selected = document.getElementById('dd').value;\n\t\t\t\t\t\t\t\t\tif (selected == \"\") selected=1;\n\t\t\t\t\t\t\t\t\tdocument.getElementById('dd').length = 0;\n\t\t\t\t\t\t\t\t\tvar days = new Array(3,0,3,2,3,2,3,3,2,3,2,3);\n\t\t\t\t\t\t\t\t\tif (Math.round(document.getElementById('yyyy').value/4) == document.getElementById('yyyy').value/4) {days[1]=1;}\n\t\t\t\t\t\t\t\t\tvar ind = parseFloat(month.value)-1;\n\t\t\t\t\t\t\t\t\tif (ind < 0) ind=0;\n\t\t\t\t\t\t\t\t\tvar base = 29 + days[ind];\n\t\t\t\t\t\t\t\t\tif (selected>(base-1)) {selected=1;}\n\t\t\t\t\t\t\t\t\tfor (var i=1; i<base; i++) {\n\t\t\t\t\t\t\t\t\tvar myday = document.createElement(\"option\");\n\t\t\t\t\t\t\t\t\tmyday.value = i;\n\t\t\t\t\t\t\t\t\tmyday.text = i;\n\t\t\t\t\t\t\t\t\tdocument.getElementById('dd').add(myday);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tdocument.getElementById('dd').value = selected;\n\t\t\t\t\t\t\t\t\tgenZerodate();\n\t\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tfunction genZerodate () \n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tvar ss=document.getElementById('dd').value;\n\t\t\t\t\t\t\t\t\tif (ss.length < 2) ss='0'+ss;\n\t\t\t\t\t\t\t\t\tvar str = ss+'.'+document.getElementById('mm').value+'.'+document.getElementById('yyyy').value;\n\t\t\t\t\t\t\t\t\tdocument.getElementById('nhya').value = str;\n\t\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t</script>\n\t\t\t\t\t\t\t\tДень:\n\t\t\t\t\t\t\t\t<select name=\"DD\" id=\"dd\" class=\"inup\" onchange=\"genZerodate();\">\n\t\t\t\t\t\t\t\t\t<script>\n\t\t\t\t\t\t\t\t\t\tvar s=\"\";\n\t\t\t\t\t\t\t\t\t\tfor (i=1; i<=31; i++) \n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\ts+='<option value=\"'+i+'\">'+i+'</option>';\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tdocument.write(s);\n\t\t\t\t\t\t\t\t\t</script>\n\t\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t\t\tМесяц:\n\t\t\t\t\t\t\t\t<select name=\"MM\" onchange=\"procdays(this);\" class=\"inup\" id=\"mm\">\n\t\t\t\t\t\t\t\t\t<option value=\"01\" selected=\"selected\">Январь</option>\n\t\t\t\t\t\t\t\t\t<option value=\"02\">Февраль</option>\n\t\t\t\t\t\t\t\t\t<option value=\"03\">Март</option>\n\t\t\t\t\t\t\t\t\t<option value=\"04\">Апрель</option>\n\t\t\t\t\t\t\t\t\t<option value=\"05\">Май</option>\n\t\t\t\t\t\t\t\t\t<option value=\"06\">Июнь</option>\n\t\t\t\t\t\t\t\t\t<option value=\"07\">Июль</option>\n\t\t\t\t\t\t\t\t\t<option value=\"08\">Август</option>\n\t\t\t\t\t\t\t\t\t<option value=\"09\">Сентябрь</option>\n\t\t\t\t\t\t\t\t\t<option value=\"10\">Октябрь</option>\n\t\t\t\t\t\t\t\t\t<option value=\"11\">Ноябрь</option>\n\t\t\t\t\t\t\t\t\t<option value=\"12\">Декабрь</option>\n\t\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t\t\tГод:\n\t\t\t\t\t\t\t\t<select name=\"YYYY\" class=\"inup\" onchange=\"procdays(document.getElementById('mm'));\" id=\"yyyy\">\n\t\t\t\t\t\t\t\t\t<script>\n\t\t\t\t\t\t\t\t\t\tvar s=\"\";\n\t\t\t\t\t\t\t\t\t\tfor (i=2002; i>=1920; i--) \n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\ts+='<option value=\"'+i+'\">'+i+'</option>';\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tdocument.write(s);\n\t\t\t\t\t\t\t\t\t</script>\n\t\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t\t\t<input type=\"text\" name=\"0day\" id=\"nhya\" value=\"" . clean_var($birthday) . "\" style=\"width:0px; height:0px; visibility:hidden\" />\n\t\t\t\t\t\t\t\t<script>\n\t\t\t\t\t\t\t\t\tvar s=document.getElementById('nhya');\n\t\t\t\t\t\t\t\t\ts=s.value.split(\".\");\n\t\t\t\t\t\t\t\t\tif (s.length > 0) \n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\ts[0]=parseFloat(s[0]);\n\t\t\t\t\t\t\t\t\t\tFORM1.DD.value=s[0];\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif (s.length > 1) \n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\ts[1]=parseFloat(s[1]);\n\t\t\t\t\t\t\t\t\t\tif (s[1] < 10 ) s[1]='0'+s[1];\n\t\t\t\t\t\t\t\t\t\tFORM1.MM.value=s[1];\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif (s.length > 2) \n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\ts[2]=parseFloat(s[2]);\n\t\t\t\t\t\t\t\t\t\tif (s[2] < 10 ) {s[2]='200'+s[2];} else \n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tif (s[2] < 100 ) s[2]='19'+s[2];\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tFORM1.YYYY.value=s[2];\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tprocdays(document.getElementById('mm'));\n\t\t\t\t\t\t\t\t</script>\n\t\t\t\t\t\t\t</TD>\n\t\t\t\t\t\t</TR>\n\t\t\t\t\t\t<TR>\n\t\t\t\t\t\t\t<TD colspan=\"2\"><small><b>Внимание!</b> Дата рождения должна быть правильной, она используется в игровом процессе. Анкеты с неправильной датой будут удаляться без предупреждения.</small></TD>\n\t\t\t\t\t\t</TR>\n\t\t\t\t\t\t<tr><td colspan=2 height=20></td></tr>\n\t\t\t\t\t\t<TR>\n\t\t\t\t\t\t\t<TD colspan=\"2\"><font color=#FF0000>*</font> Ваш пол:<BR>\n\t\t\t\t\t\t\t\t<INPUT id=A1 style=\"CURSOR: hand\" type=radio value=\"0\" name=\"sex\"" . ($sex < 1 ? " CHECKED" : "") . ">\n\t\t\t\t\t\t\t\t<LABEL for=A1> Мужской</LABEL>\n\t\t\t\t\t\t\t\t<BR>\n\t\t\t\t\t\t\t\t<INPUT id=A2 style=\"CURSOR: hand\" type=radio value=\"1\" name=\"sex\"" . ($sex == 1 ? " CHECKED" : "") . ">\n\t\t\t\t\t\t\t\t<LABEL for=A2> Женский</LABEL>\n\t\t\t\t\t\t\t</TD>\n\t\t\t\t\t\t</TR>\n\t\t\t\t\t\t<TR>\n\t\t\t\t\t\t\t<TD><font color=#FF0000>*</font> Город: </TD>\n\t\t\t\t\t\t\t<TD><INPUT TYPE=\"text\" value='" . clean_var($city2) . "' NAME=\"city2\" size=20 maxlength=40 class=\"inup\"></TD>\n\t\t\t\t\t\t</TR>\n\t\t\t\t\t\t<TR>\n\t\t\t\t\t\t\t<TD>ICQ:</TD>\n\t\t\t\t\t\t\t<TD><input value='" . clean_var($icq) . "' name=icq class=\"inup\" size=9 maxlength=20></TD>\n\t\t\t\t\t\t</TR>\n\t\t\t\t\t\t<TR>\n\t\t\t\t\t\t\t<TD>Девиз:</TD>\n\t\t\t\t\t\t\t<TD><input value='" . clean_var($about) . "' name=about class=\"inup\" size=60 maxlength=160></TD>\n\t\t\t\t\t\t</TR>\n\t\t\t\t\t\t<TR>\n\t\t\t\t\t\t\t<TD>Цвет сообщений в чате:</TD>\n\t\t\t\t\t\t\t<TD>\n\t\t\t\t\t\t\t\t<select name=ChatColor class=\"inup\">\n\t\t\t\t\t\t\t\t\t<option style=\"BACKGROUND: #f2f0f0; COLOR: black\" value=\"Black\" >Black</option>\n\t\t\t\t\t\t\t\t\t<option style=\"BACKGROUND: #f2f0f0; COLOR: blue\"\tvalue=\"Blue\" >Blue</option>\n\t\t\t\t\t\t\t\t\t<option style=\"BACKGROUND: #f2f0f0; COLOR: fuchsia\" value=\"Fuchsia\" >Fuchsia</option>\n\t\t\t\t\t\t\t\t\t<option style=\"BACKGROUND: #f2f0f0; COLOR: gray\" value=\"Gray\" >Grey</option>\n\t\t\t\t\t\t\t\t\t<option style=\"BACKGROUND: #f2f0f0; COLOR: green\" value=\"Green\" >Green</option>\n\t\t\t\t\t\t\t\t\t<option style=\"BACKGROUND: #f2f0f0; COLOR: maroon\" value=\"Maroon\">Maroon</option>\n\t\t\t\t\t\t\t\t\t<option style=\"BACKGROUND: #f2f0f0; COLOR: navy\" value=\"Navy\" >Navy</option>\n\t\t\t\t\t\t\t\t\t<option style=\"BACKGROUND: #f2f0f0; COLOR: olive\" value=\"Olive\" >Olive</option>\n\t\t\t\t\t\t\t\t\t<option style=\"BACKGROUND: #f2f0f0; COLOR: purple\" value=\"Purple\" >Purple</option>\n\t\t\t\t\t\t\t\t\t<option style=\"BACKGROUND: #f2f0f0; COLOR: teal\" value=\"Teal\" >Teal</option>\n\t\t\t\t\t\t\t\t\t<option style=\"BACKGROUND: #f2f0f0; COLOR: orange\" value=\"Orange\" >Orange</option>\n\t\t\t\t\t\t\t\t\t<option style=\"BACKGROUND: #f2f0f0; COLOR: chocolate\" value=\"Chocolate\" >Chocolate</option>\n\t\t\t\t\t\t\t\t\t<option style=\"BACKGROUND: #f2f0f0; COLOR: darkkhaki\" value=\"DarkKhaki\" >DarkKhaki</option>\n\t\t\t\t\t\t\t\t\t<option style=\"BACKGROUND: #f2f0f0; COLOR: sandybrown\" value=\"SandyBrown\" >SandyBrown</option>\n\t\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t\t\t<SCRIPT>FORM1.ChatColor.value='" . $chatcolor . "'</SCRIPT>\n\t\t\t\t\t\t\t</TD>\n\t\t\t\t\t\t</TR>\n\t\t\t\t\t\t<TR>\n\t\t\t\t\t\t\t<TD><INPUT onclick='FORM1.step.value=\"2\"; FORM1.submit()' type=button class=\"btn\" value=\"Вернуться\"></TD>\n\t\t\t\t\t\t\t<TD><INPUT type=submit class=\"btn\" value=\"Продолжить\"></TD>\n\t\t\t\t\t\t</TR>\n\t\t\t\t\t\t</table>\n\t\t\t\t</td>\n\t\t\t\t</tr>\n\t\t\t\t</table></FORM>"; break; //-------------------------------------------------------------------------------------------------------- //-------------------------------------------------------------------------------------------------------- case 5: echo "<FORM action='reg.php' method='POST' name='FORM1'>\n\t\t\t\t\t<TABLE WIDTH=600 CELLSPACING=1 CELLPADDING=2 BGCOLOR=#212120 name=\"F1\">\n\t\t <INPUT type=hidden name=step value='5'>\n\t\t <INPUT type=hidden name=add value='1'>\n\t\t\t\t\t<TR bgcolor=#D5D5D5>\n\t\t\t\t\t\t<TD>\n\t\t\t\t\t\t\t<table width=100% border=0 CELLSPACING=0 CELLPADDING=0>\n\t\t\t\t\t\t\t<TR>\n\t\t\t\t\t\t\t\t<td colspan=2>\n\t\t\t\t\t\t\t\t\t<B>Внимание!</B></span> Данная игра работает <U>только</U> под браузером Internet Explorer!<BR><BR>\n\t\t\t\t\t\t\t\t\t<FONT color=red>" . clean_var($message) . "</FONT><br>\n\t\t\t\t\t\t\t\t\tИмя вашего персонажа: <input type='hidden' NAME=\"login\" value='" . clean_var($login) . "'><b>" . clean_var($login) . "</b>\n\t\t\t\t\t\t\t\t</TD>\n\t\t\t\t\t\t\t</TR>\n\t\t\t\t <TR>\n\t\t\t\t \t\t\t<input type='hidden' name='ref' value=\"" . $ref . "\">\n\t\t\t\t\t\t\t\t<input type='hidden' name='psw' value=\"" . clean_var($psw) . "\">\n\t\t\t\t\t\t\t\t<input type='hidden' name='psw2' value=\"" . clean_var($psw) . "\">\n\t\t\t\t <input type='hidden' name='email' value=\"" . clean_var($email) . "\">\n\t\t\t\t <input type='hidden' name='name' value=\"" . clean_var($name) . "\">\n\t\t\t\t <input type='hidden' name='0day' value=\"" . clean_var($birthday) . "\">\n\t\t\t\t <input type='hidden' name='sex' value=\"" . clean_var($sex) . "\">\n\t\t\t\t <input type='hidden' name='city2' value=\"" . clean_var($city2) . "\">\n\t\t\t\t <input type='hidden' name='icq' value=\"" . clean_var($icq) . "\">\n\t\t\t\t <input type='hidden' name='about' value=\"" . clean_var($about) . "\">\n\t\t\t\t <input type='hidden' name='ChatColor' value=\"" . clean_var($chatcolor) . "\">\n\t\t\t\t <TD colspan=\"2\">\n\t\t\t\t \t\t<INPUT id=A3 style=\"CURSOR: hand\" type=checkbox name='Law'>\n\t\t\t\t <LABEL for=A3><font color=#FF0000>*</font> Я обязуюсь соблюдать</LABEL> <A TARGET=\"_blank\" HREF=\"rules.php\"><B>Законы WWW.http://oldmeydan.pe.hu/</B></A> и согласен со всеми пунктами <A TARGET=\"_blank\" HREF=\"soqlaweniya.php\"><B>Пользовательского соглашения</B></A>\n\t\t\t\t \t</TD>\n\t\t\t\t\t\t\t</TR>\n\t\t\t\t\t\t\t<TR>\n\t\t\t\t <TD valign=top><font color=#FF0000>*</font> Введите код: <INPUT type=text name='code' maxlength=12 size=30></TD>\n\t\t\t\t \t<TD><img src='antibot.php?" . session_id() . "' border=0></TD>\n\t\t\t\t </TR>\n\t\t\t\t\t\t\t<TR>\n\t\t <TD><INPUT onclick='FORM1.step.value=\"3\"; FORM1.submit()' type=button class=\"btn\" value=\"Вернуться\"></TD>\n\t\t <TD><INPUT type=submit class=\"btn\" value=\"Зарегистрировать\"></TD>\n\t\t\t\t </TR>\n\t\t\t \t</table>\n\t\t \t</TD>\n\t\t \t\t</TR>\n\t\t\t\t</TABLE></FORM>"; } #========================================================================================================= echo "\n\t\t\t<table width=600 bgcolor=#B2B2B2><tr><td align=center>\n\t\t\tИметь более одного персонажа запрещено. Мир может изменяться и развиваться.<br>\n\t\t\tПри входе в портал Вы принимаете <A TARGET=_blank HREF=\"rules.php\"><u>Законы и Соглашение WWW.http://oldmeydan.pe.hu/.</u></a>\n\t\t\t<br><br>© Copyright 2006-" . date("Y") . ", все права защищены. <a href='' class=us2>WWW.http://oldmeydan.pe.hu/</a>\n\t\t\t</td></tr></table>"; echo "</td>\n\t<td width=250 nowrap><img src='img/index/warrior2.png' border=0></td>\n\t</tr>\n</table>"; include_once "counter.php"; echo "</div></BODY>\n</HTML>";
echo ' - <strong class="help">' . clean_var($botsstop_text) . ':</strong> <span>'; readfile("../{$set_directory}/files/error-log.txt"); echo '</span>'; } else { if (file_exists('../../' . $set_directory . '/files/error-log.txt')) { echo ' - <strong class="help">' . clean_var($botsstop_text) . ':</strong> <span>'; readfile("../../{$set_directory}/files/error-log.txt"); echo '</span>'; } else { if (file_exists('../../../' . $set_directory . '/files/error-log.txt')) { echo ' - <strong class="help">' . clean_var($botsstop_text) . ':</strong> <span>'; readfile("../../../{$set_directory}/files/error-log.txt"); echo '</span>'; } else { if (file_exists('../../../../' . $set_directory . '/files/error-log.txt')) { echo ' - <strong class="help">' . clean_var($botsstop_text) . ':</strong> <span>'; readfile("../../../../{$set_directory}/files/error-log.txt"); echo '</span>'; } } } } } } ?> - <strong><?php echo $help_link; ?> »</strong></p> <hr /> <?php
} } else { $error = 1; $email[3] = 'color:#FF0000;'; } if (!empty($_POST['subject'])) { $subject[2] = clean_var($_POST['subject']); if (function_exists('htmlspecialchars')) { $subject[2] = htmlspecialchars($subject[2], ENT_QUOTES); } } else { $error = 1; $subject[3] = 'color:#FF0000;'; } if (!empty($_POST['message'])) { $message[2] = clean_var($_POST['message']); if (function_exists('htmlspecialchars')) { $message[2] = htmlspecialchars($message[2], ENT_QUOTES); } } else { $error = 1; $message[3] = 'color:#FF0000;'; } if (empty($_POST['captcha_code'])) { $error = 1; $code[3] = 'color:#FF0000;'; } else { include_once "formfiles/contact-securimage.php"; $securimage = new Securimage(); $valid = $securimage->check($_POST['captcha_code']); if (!$valid) {
error_reporting(E_NOTICE); function clean_var($variable) { $variable = strip_tags(stripslashes(trim(rtrim($variable)))); return $variable; } function valid_email($str) { return ( ! preg_match("/^([a-z0-9\+_\-]+)(\.[a-z0-9\+_\-]+)*@([a-z0-9\-]+\.)+[a-z]{2,6}$/ix", $str)) ? FALSE : TRUE; } if($_POST['email']!='' && valid_email($_POST['email'])==TRUE && $_POST['yourName']!='') { $to = "*****@*****.**"; $headers = 'From: '. clean_var($_POST['contactEmail']) .''. "\r\n" . 'Reply-To: '. clean_var($_POST['contactEmail']) .'' . "\r\n" . $subject = "[Rooja] ". clean_var($_POST['subject']); $message = "Name: " . clean_var($_POST['yourName']) . "\n"; $message .= "Email: " . clean_var($_POST['email']) . "\n"; $message .= "Message: \n" . clean_var($_POST['message']); if(mail($to, $subject, $message, $headers)){ header( "Location: http://rooja.com/success" ); } else { header( "Location: http://rooja.com/error" ); } } else { header( "Location: http://rooja.com/error" ); } ?>