0 ) { if( file_exists("/tmp/sessionid-$ZAAUID") ) { unlink("/tmp/sessionid-$ZAAUID"); } } $ZAAERR = ""; $ADMIN = 0; } if($recover_login) { $db = pg_connect("host=auction port=5432 dbname=auction user=auction"); $forgot_email = htmlentities($forgot_email,ENT_QUOTES); $sSQL = "SELECT username, login, password FROM customer WHERE login = '$forgot_email' "; $result = pg_query($db,$sSQL) or die(pg_last_error()); $line = pg_fetch_array($result, null, PGSQL_ASSOC); if(pg_num_rows($result) ) { $msg = "Dear ".$line[username].",
Your login detils for ZULFIQAR MOTOR CO., LTD are as follows

"; $msg .= "Login: ".$line[login]."
Password: ".$line[password]."

"; $msg .= " Support Team"; send_mail($forgot_email,"ZULFIQAR MOTOR CO., LTD Login Details",$msg,"From: info@zulfiqaraa.com\nContent-Type: text/html"); $forgot_email_sent = 1; } else $forgot_email_error = 1; } $ZCOOKIEOK = 1; $_SESSION['ZAAUID'] = 0; $q2 = "DELETE from otp WHERE otp_expirydate < current_date "; $r2 = pg_query($q2); ?>
10 ) { echo ""; } if($_REQUEST['login_error']) { echo "
An error occurred, Please contact your sale manager for details.
"; //$_SESSION['otp_required'] = 1; } if($_REQUEST['allowed_country']) echo "
Login to your account is only allowed from ".$_REQUEST['allowed_country'].". Please contact your sale manager for details.
"; if($_POST['verify']) { if ($_REQUEST['captcha'] == $_SESSION['cap_code']) $_SESSION['incorrect_login'] = 0; } if($forgot) { if($forgot_email_sent) { print "
Login details sent to your email address.
Login to ZULFIQAR MOTORS CO., LTD using these details.
"; } elseif($forgot_email_error) { print "
We dont have an email account with this email address.
"; } else { ?>
Forgot Password


3) { ?>
Verification


".$ZAAERR."
"; ?>
Login
  Remember My Login