<?php
###############################################
#  by MaZaFaKa                                #
#  ICQ: 449-559                               #
#  E-mail: Dimonnet@inbox.ru                  #
#  Потраченное время: Около 2х недель         #
###############################################


print
('
<table width="100%" height="100%" cellpadding="3" cellspacing="0">
<tr valign="top">
<td bgcolor="#eeeeee" width="156px">
<input type="hidden" name="send" value="do_login">
<table width="156px" border="0" cellspacing="0" cellpadding="0"><tr><td bgcolor="#3366cc">
<table width="100%" border="0" cellspacing="1" cellpadding="0"><tr><td bgcolor="#f0f0f0">
<table border="0" align="center" cellspacing="1" cellpadding="4">
<tr>
<td colspan="2">
');


if ($module=='login')
{
echo
(

"<form action='/".VERSION."/login/?".SESSION."' method='POST'>\n".
"<b style=\"color:#333366\">E-mail:</b><br/>\n".
"<input type='text' name='email' disabled maxlength='24' value='".$_GET['email']."".$_POST['email']."' style='width: 100%' /><br />\n".
"<b style=\"color:#333366\">Пароль:</b><br/>\n".
"<input type='text' name='password' disabled maxlength='12' value='******' style='width: 100%' /><br />\n".
"</td>\n".
"</tr>\n".
"<tr>\n".
"<td>\n".
"<input type='submit' disabled value=' войти ' />\n".
"<td nowrap>\n".
"&nbsp;<a href=\"#\" style=\"font-size: 10px\">забыли пароль?</a>&nbsp;<br/>\n".
"&nbsp;<a href=\"#\" style=\"font-size: 10px\">регистрация</a>&nbsp;\n".
"</td>\n".
"</tr>\n".
"</table>\n".
"</td></tr></table>\n".
"</td></tr></table>\n".
"</form>\n"


);
}
else
{

 IF($_GET['mod']=='error')
 {
 $erorrs = '<center><span style="color: #ff0000;">Неверный E-mail или Пароль</span><br/></center>';

 }
echo
(
"<form action='/".VERSION."/login/?".SESSION."' method='POST'>\n".
"".$erorrs."\n".
"<b style=\"color:#333366\">E-mail:</b><br/>\n".
"<input type='text' name='email' maxlength='24' style='width: 100%' /><br />\n".
"<b style=\"color:#333366\">Пароль:</b><br/>\n".
"<input type='text' name='password' maxlength='12' style='width: 100%' /><br />\n".
"</td>\n".
"</tr>\n".
"<tr>\n".
"<td>\n".
"<input type='submit' value=' войти ' />\n".
"<td nowrap>\n".
"&nbsp;<a href=\"".PATH."/".VERSION."/forgot/?".SESSION."\" style=\"font-size: 10px\">забыли пароль?</a>&nbsp;<br/>\n".
"&nbsp;<a href=\"".PATH."/".VERSION."/rules/?new=1\" style=\"font-size: 10px\">регистрация</a>&nbsp;\n".
"</td>\n".
"</tr>\n".
"</table>\n".
"</td></tr></table>\n".
"</td></tr></table>\n".
"</form>\n"
);
}

?>