/home/techb158/workloadmatch.com/includes
NameSizeModeActions
config_loader.php9630644editdlrm
CSRF_Protect.php22240644editdlrm
db_connect.php5680644editdlrm
error.php4850644editdlrm
firebase_auth.php63180644editdlrm
footer.php6170644editdlrm
forgetpassword.php108250644editdlrm
forgetpassword_Bak.php74480644editdlrm
functions.php313300644editdlrm
geoiploc.php25204350644editdlrm
header.php18040644editdlrm
hex.php10500644editdlrm
hexbin.php9420644editdlrm
login_page.php29930644editdlrm
logout.php8700644editdlrm
migrate_last_activity.php12780644editdlrm
process_login.php21190644editdlrm
psl-config-Bak.php12130644editdlrm
psl-config.php18830644editdlrm
reset.php65370644editdlrm
Edit: /home/techb158/workloadmatch.com/includes/process_login.php (2119B)
verifyRequest(); // recaptcha disabled for local dev $ip= get_client_ip(); $getCountryFromIP= getCountryFromIP($ip, " NamE "); if($getCountryFromIP == "Canada") { }else{ //header('Location: ../index.php?err=You need permission to perform this action!'.$getCountryFromIP); //exit(); } if (isset($_POST['email'], $_POST['p'])) { $email = filter_input(INPUT_POST, 'email', FILTER_SANITIZE_EMAIL); $password = $_POST['p']; // The hashed password. if (login($email, $password, $mysqli) == true) { $user_type= $_SESSION['User_type']; if($user_type == "teacher_profile") { if (isset($_SESSION['Send_Re_ID'])) { $Send_Re_ID= $_SESSION['Send_Re_ID']; $Send_number_id= $_SESSION['Send_number_id']; $Send_Client_ID= $_SESSION['Send_Client_ID']; $Send_Broker_ID= $_SESSION['Send_Broker_ID']; $Send_Broker_ID_Receiver= $_SESSION['Send_Broker_ID_Receiver']; header("Location: " . BASE_URL . "/followup"); exit(); }else{ header("Location: " . BASE_URL . "/dashboard"); exit(); } }else if($user_type == "manager_profile") { header("Location: " . BASE_URL . "/dashboard"); exit(); }else if($user_type == "master_profile") { header("Location: " . BASE_URL . "/dashboard"); exit(); }else if($user_type == "admin_profile") { header("Location: " . BASE_URL . "/dashboard"); exit(); }else{ $_SESSION['flash_error'] = 'Unknown user type'; header('Location: ' . BASE_URL . '/'); exit(); } } else { // Login failed $_SESSION['flash_error'] = 'Error Logging In!'; header('Location: ' . BASE_URL . '/'); exit(); } } else { // The correct POST variables were not sent to this page. header('Location: ' . BASE_URL . '/error?err=Could not process login'); exit(); }