Location: PHPKode > scripts > WebsiteMemberManager > members-section/members/php/login.php
<?php
if ($_POST['stop_sp']!=5) exit("spam detected - system stopped.");//stop spambots
$WMM_Secure = new WMM_Secure();
if ($row=$WMM_Secure->memberLogin($username,WMMcrypt($password,$username)) )
{
 if ($row=$WMM_Secure->firstLogin($_SESSION['WMM_id']) AND SHOW_NEW_MEMBER_WELCOME) $page="NEW-member-welcome";
 else $page = (isset($_SESSION['the_page']))? $_SESSION['the_page']: INITIAL_PAGE;

 if ($page==="logoff") $page=INITIAL_PAGE;
 header("location: ".$page);
}
else
{
 $WMM_Secure->recordFailedLogin($_SERVER['REMOTE_ADDR']);
 include_once("header.html");
 $feedback = new feedbackBox();
 $feedback->setShow(LOGIN_ERROR_MESSAGE, "Login ERROR",0,"member");
 include("login.html");
 $initWMM = new InitialiseWMM();
 $initWMM->finalChecks();
 include("footer.html");
}
?>
Return current item: WebsiteMemberManager