Complete refactoring of index.php
This commit is contained in:
parent
f7f028ffd1
commit
4bd05bef03
|
@ -1,19 +1,13 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
* common DirectoryIndex page
|
||||
*
|
||||
* Copyright (c) 2004-2006 Evolix - Tous droits reserves
|
||||
* $Id: index.php,v 1.2 2006-11-14 15:21:54 reg Exp $
|
||||
*
|
||||
* Use HTTP 'Location:' header to forward to auth.php
|
||||
*
|
||||
* @author Gregory Colpart <reg@evolix.fr>
|
||||
* @version 1.0
|
||||
*/
|
||||
session_name('EVOADMIN_SESS');
|
||||
session_start();
|
||||
|
||||
header("Location: auth.php\n\n");
|
||||
exit(0);
|
||||
|
||||
/* Copyright (c) 2004-2006 Evolix - Tous droits reserves */
|
||||
if (isset($_SESSION['login'])) {
|
||||
header("Location: superadmin.php\n\n");
|
||||
exit(0);
|
||||
} else {
|
||||
header("Location: auth.php\n\n");
|
||||
exit(0);
|
||||
}
|
||||
?>
|
||||
|
|
Loading…
Reference in a new issue