* @author Thomas Martin * @author Sebastien Palma * @version 1.0 */ if ((empty($_GET['form']) || $_GET['form']!=1) && !empty($_POST)) { $username=$_POST['login']; $password=$_POST['passw']; if (hash("sha256",$password) == $conf['logins'][$username]) { $_SESSION['auth']=1; $_SESSION['user']=$username; $_SESSION['error']=''; } else { $_SESSION['auth']=0; $_SESSION['user']=''; $_SESSION['error']=1; } http_redirect('/'); } else { if(!empty($_SESSION['error'])) { $error=$_SESSION['error']; } include_once EVOADMIN_BASE . '../tpl/header.tpl.php'; include_once EVOADMIN_BASE . '../tpl/auth.tpl.php'; include_once EVOADMIN_BASE . '../tpl/footer.tpl.php'; } ?>