$_mini_js=true;
include('../inc/c');
include('../_top.php');
$mail=sqlstr(rf('email'));
$pwd=sqlstr(rf('pwd'));
if(rq('ac')=='logout')
{
session("_mail","");
}
if(post && $mail && $pwd)
{
$r=g("select * from authors where email='$mail' and pwd='$pwd' ");
if($r->eof)
{
session("_mail","");
msgbox("E-mail and password does not match !");
jsgo("?".guid());
}
session("_mail",$r->email);
if(rq("from")!='')
{
jsgo(rq("from"));
}
else
{
jsgo("/");
}
}
?>
Login