Файл: vostn.php
Строк: 62
<?
echo '<title>haogame.ru</title>';
echo '<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd"><html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><link rel="stylesheet" type="text/css" href="css/new/style.css?"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta content="noindex, nofollow" name="robots" />';
echo "<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-38152348-1']);
_gaq.push(['_setDomainName', 'l2mo.ru']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>";
echo '</head><body><table>
<tr>
<td class="lt1"></td><td class="t1"><div><b>Wap LineAge</b></div></td><td class="rt1"></td>
</tr>
<tr>
<td class="l"></td>
<td class="centertd">';
echo '<div class="page"><div class="block_2">';
include 'files/ini.php';
include 'files/antixak.php';
switch($go) {
default:
echo "<form action="vostn.php?go=vostn2" method="post">";
echo "Ник:<br/>";
echo "<input name="log" maxlength="20" title="log" emptyok="true"/><br/>";
echo "Секретное слово:<br/>";
echo "<input name="vopr" type="vopr" maxlength="100" title="vopr" emptyok="true"/><br/><br>";
echo '<input class="button" type="submit" value="Востановить"/></form><br/>';
break;
case 'vostn2':
$a=mysql_query("SELECT * FROM `users` WHERE `udata0`='$_POST[log]' AND `udata73`='$_POST[vopr]' LIMIT 1");
$arr=mysql_num_rows($a);
if($arr==0){echo"Вы неверно ввели секретное слово!";}else
{
$shans=rand(1000000,9999999);
$salt = "-hDJ]=N";
$shans2 = md5(md5($shans).$salt);
mysql_query("UPDATE `users` SET `udata1`='$shans2' WHERE `udata0`='$_POST[log]'");
echo"Ваш новый пароль $shans! Незабудте его изменить!";
}
break;
}
echo '</div></div><div class="warning s">';
echo"<a href="index.php?">На главную</a></div>";
include_once 'files/nogi.php';
?>