Login   Register  
PHP Classes
elePHPant
Icontem

File: login.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Hassan Ishfaq  >  Abdohoo Secure Login  >  login.php  >  Download  
File: login.php
Role: Example script
Content type: text/plain
Description: Login Function To Activate Login Class
Class: Abdohoo Secure Login
Authenticate users with records in a MySQL table
Author: By
Last change:
Date: 5 years ago
Size: 1,609 bytes
 

Contents

Class file image Download
<?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
// ----------------------------------------------------------------------------------------------                
?>