check_injection_validate($username);
$chk_password = $sqlInj->check_injection_validate($password);
if($chk_username == 1 and $chk_password == 1)
{
$db->select('admin','admin_id',NULL,"username= '$username' && password='$password'",NULL);
$numrows = $db->numRows();
if($numrows==1)
{
$_SESSION['admin_login']=$username;
$_SESSION['isAdminLoggedIn'] = true;
$_SESSION['isAdminLoggedIn'] = true;
$_SESSION['timeAdminOut'] = 60000;
$logged = time();
$_SESSION['loggedAdminAt']= $logged;
$db->showLoggedIn();
echo "";
}
else
{ ?>
Invalid : Username or Passowrd
Welcome to Administrator.