Просмотр исходного кода

Reverting /web/index.php to default

myvesta 7 лет назад
Родитель
Сommit
927c288b27
1 измененных файлов с 4 добавлено и 13 удалено
  1. 4 13
      web/index.php

+ 4 - 13
web/index.php

@@ -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/");
 }