File size: 1.68Kb
<?
session_start();
include "file/db.php";
include "file/config.php";
include "file/them.php";
echo "</center><div class='menu'><center>Восстановление пароля</center></div><div class='tab'>";
if (empty($mod)) $mod="form";
$date=date("d.m.Y");
switch ($mod)
{
case "form":
echo "<form action=\"pass.php?mod=enter\" method=\"post\">";
echo "Логин: <br/>";
echo "<input name=\"login\" class='main' title=\"Логин\"/><br/>";
echo "<input class='main' type=\"submit\" value=\"Далее\"/>";
echo "</form>";
echo "<img src=\"style/".$wap_skin."/home.png\" alt=\"*\"/>";echo "<a href=\"index.php?".session_name()."=".session_id()."\">Главная</a><br/><div class='hr'></div>";
break;
case "enter":
$login = $_POST['login'];
$q = mysql_query("select * from `uzvers` where `log`='$login';");
if (mysql_num_rows($q)>0)
{
include_once "file/pass.php";
echo "<b>Пароль выслан !</b><br/>";
echo "<img src=\"style/".$wap_skin."/home.png\" alt=\"*\"/>";echo "<a href=\"pass.php?\">Назад</a><br/><div class='hr'></div>";
echo "<img src=\"style/".$wap_skin."/home.png\" alt=\"*\"/>";echo "<a href=\"index.php?\">Главная</a><br/><div class='hr'></div>";
}
else
{
echo "<b>Нет такого пользователя !!!</b><br/>";
echo "<img src=\"style/".$wap_skin."/home.png\" alt=\"*\"/>";echo "<a href=\"pass.php?\">Назад</a><br/><div class='hr'></div>";
echo "<img src=\"style/".$wap_skin."/home.png\" alt=\"*\"/>";echo "<a href=\"index.php?\">Главная</a><br/><div class='hr'></div>";
}
break;
}
print "</div>";
include "style/".$wap_skin."/foot2.php";
?>