Jump to content

MasterJ

Members
  • Content count

    2
  • Joined

  • Last visited

Community Reputation

0 Comum

About MasterJ

  1. MasterJ

    fazer login

    Exatamente, simpleste diz da erro 404. Saudacoes Posso ate enviar o codigo todo. Porqur Estou precisando de ajuda.
  2. MasterJ

    fazer login

    nao consigo encontrar o erro neste codigo <?php if(isset($_POST['btnLogin'])){ $email = trim($_POST['user_email']); $upass = trim($_POST['user_pass']); $h_upass = sha1($upass); if ($email == '' OR $upass == '') { message("Invalid Username and Password!", "error"); redirect("login.php"); } else { //it creates a new objects of member $user = new User(); //make use of the static function, and we passed to parameters $res = $user::userAuthentication($email, $h_upass); if ($res==true) { message("You logon as ".$_SESSION['ROLE'].".","success"); if ($_SESSION['ROLE']=='Administrator' || $_SESSION['ROLE']=='Student'){ $_SESSION['ADMIN_USERID'] = $_SESSION['USERID']; $_SESSION['ADMIN_FULLNAME'] = $_SESSION['FULLNAME'] ; $_SESSION['ADMIN_USERNAME'] =$_SESSION['USERNAME']; $_SESSION['ADMIN_ROLE'] = $_SESSION['ROLE']; unset( $_SESSION['USERID'] ); unset( $_SESSION['FULLNAME'] ); unset( $_SESSION['USERNAME'] ); unset( $_SESSION['PASS'] ); unset( $_SESSION['ROLE'] ); redirect(WEB_ROOT."admin/index.php"); } }else{ message("Account does not exist! Please contact Administrator.", "error"); redirect(WEB_ROOT."admin/login.php"); } } } ?>
×

Important Information

Ao usar o fórum, você concorda com nossos Terms of Use.