is_valid) { $data['Error']='Enter Correct Captcha'; }else{ unset($_SESSION['attempts']); $_SESSION['uid']=get_member_id($post['username'], $post['password']); $_SESSION['login']=true; set_last_access($post['username']); save_remote_ip((int)$_SESSION['uid'], $_SERVER["REMOTE_ADDR"]); header("Location:{$data['Host']}/members/index.htm"); echo('ACCESS DENIED.'); exit; } (int)$_SESSION['attempts']++; }else{ unset($_SESSION['attempts']); $data['CantLogin']=true; } } $data['attempts']=$_SESSION['attempts'];} ############################################################################### display('members'); ############################################################################### ?>