Reverting /web/index.php to default

This commit is contained in:
myvesta 2018-10-12 16:33:02 +02:00 committed by GitHub
parent 0652d1e75e
commit 927c288b27
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,16 +1,7 @@
<?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/");
}
session_start();
if (isset($_SESSION['user'])) {
header("Location: /list/user/");
} 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: /login/");
}