Login   Register  
PHP Classes
elePHPant
Icontem

File: libreria/loginresult.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Guerrieri Luca  >  PXAServer  >  libreria/loginresult.php  >  Download  
File: libreria/loginresult.php
Role: Auxiliary script
Content type: text/plain
Description: script that redirect the result of login
Class: PXAServer
Library to build applications configured with XML
Author: By
Last change:
Date: 5 years ago
Size: 643 bytes
 

Contents

Class file image Download
<?php
  
include_once ('global.inc.php');
  require_once (
"config.inc.php");
  require_once (
"libfunz.inc.php");

  if (
perform_login($_POST["username"],$_POST["login"])==true){
    
//se il login ha successo redirezioniamo all'area privata
    
$s = new Session;
    
$s -> init_session();
    if (
$s->get_session_value("level")==1){header ("Location:".$admin_area);}else{header ("Location:".$secure_area);}
  }else {
    
//se il login non ha successo redirizioniamo al login page
    
header ("Location:".$login_page);
    
//codice per pop-up di ritorno come
    //utente disabilitato
    //utente non trovato
    //password o hash errati
  
}

?>