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