Location: PHPKode > scripts > Abdohoo Secure Login > abdohoo-secure-login/login.php
<?php //Login_Brain class function
 function login_chk($errn=10){
include ("functions/global-loginincludes.php");
$objechecklogin->db_connect();
// ------------------------------------------------------------------------------------
//$objechecklogin->checkgetsetvalue();
$objechecklogin->clean_login_db();
if (($objechecklogin->check_if_already_logged_in() == true) && (isset($_GET['logout'])))
{    $objechecklogin->session_end(); $errn=4; }
elseif(($objechecklogin->check_if_already_logged_in() != true) && (isset($_GET['logout'])))
{ $errn=12; }
if ($objechecklogin->check_if_already_logged_in() === true){return 99;}

//if ($errn==11){dojo_form ($objdisplayerror->dojo_login_error($errn));exit();}
//$objechecklogin->check_if_already_logged_in() == true ? exit("You are already logged in") : Null;
// ---------------------------------------------------------------------------------------
if (! isset ( $do_login ) || ($do_login == "")) { 
    dojo_form ($objdisplayerror->dojo_login_error($errn));
    exit();}
if (isset ( $do_login ) && (((empty ( $do_check_username )) || (empty ( $do_check_password )))))
{dojo_form ($objdisplayerror->dojo_login_error(0));exit ();
  }
if ($objechecklogin->check_if_login_successful($do_check_username, $do_check_password_md)=== true){return true;}
else { 
    dojo_form ($objdisplayerror->dojo_login_error($objechecklogin->check_if_login_successful($do_check_username, $do_check_password_md)));exit ();
   }
}
     //end of function
// ----------------------------------------------------------------------------------------------				
?>
Return current item: Abdohoo Secure Login