mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 02:28:05 -07:00
Avoid pre-auth if login_url.php is not created
This commit is contained in:
parent
3e7a59a8ec
commit
c739e5fc48
1 changed files with 13 additions and 12 deletions
|
@ -1,15 +1,16 @@
|
|||
<?php
|
||||
//require_once('/usr/local/vesta/web/inc/secure_login.php');
|
||||
//session_start();
|
||||
//if (isset($_SESSION['user'])) {
|
||||
// header("Location: /list/user/");
|
||||
//} else {
|
||||
// header("Location: /login/");
|
||||
//}
|
||||
|
||||
require_once('/usr/local/vesta/web/inc/login_url.php');
|
||||
if (isset($_GET[$login_url])) {
|
||||
require_once('/usr/local/vesta/web/inc/secure_login.php');
|
||||
if (!file_exists('/usr/local/vesta/web/inc/login_url.php')) {
|
||||
session_start();
|
||||
if (isset($_SESSION['user'])) {
|
||||
header("Location: /list/user/");
|
||||
} else {
|
||||
header("Location: /login/");
|
||||
}
|
||||
} else {
|
||||
require_once('/usr/local/vesta/web/inc/login_url.php');
|
||||
if (isset($_GET[$login_url])) {
|
||||
require_once('/usr/local/vesta/web/inc/secure_login.php');
|
||||
}
|
||||
header("Location: /webmail/");
|
||||
}
|
||||
|
||||
header("Location: /webmail/");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue