session_start(); $path = "/home/content/s/e/a/seangarrett/html"; require $path."/cgi/importFile.php"; // first thing in this page make the generated random numbers invalid // set the logged in flag $invalidInput235790L = "no23457890MN"; /* loginOk=0: user is not logged in. loginOk=2: login failed. loginOk=1: user is logged in. */ $loginOk = 0; $user = ""; $fname =""; if($_SESSION['user234loggedin5L'] != "userLoggedIn57259MnLN"){ // check if the user sent login information. if(isset($_POST['user']) && isset($_POST['pass'])){ $user = $_POST['user']; $user = strtolower($user); $pass = $_POST['pass']; $array = isUserValid($user, $pass); $val = $array[0]; $fname = $array[1]; $lname = $array[2]; $is_business = $array[3]; $user_id=$array[4]; if($val == 1){ if(isset($_COOKIE["mn23mollmn7890Lm"])){ $_SESSION['user234loggedin5L'] = "userLoggedIn57259MnLN"; $loginOk = 1; $_SESSION['user5237']=$user; $_SESSION['firstname'] = $fname; $_SESSION['is_business'] = $is_business; $_SESSION['user5237Id'] = $user_id; } } else $loginOk = 2; //check the user and password validity. } $invalidInput235790L = "yes"; } else{ $user = $_SESSION['user5237']; $fname = $_SESSION['firstname']; $loginOk = 1; } ?>
| include "left.include"; ?> | - |
Login failed.} else{ ?> You are not logged in.You should log in to submit your article. } include "login.include"; } else{ ?> Please before submitting your article, read article guidelines. Please select the file contianing your article by clicking on the browse button. Once selected click on Upload File button to upload the file. |
include "right.include"; ?> | |||||