mirror of
https://github.com/myvesta/vesta
synced 2025-08-21 05:44:08 -07:00
Avoid NO_AUTH_REQUIRED2 in secure_login.php
This commit is contained in:
parent
334e54bf93
commit
3e7a59a8ec
1 changed files with 9 additions and 6 deletions
|
@ -1,8 +1,11 @@
|
|||
<?php
|
||||
require_once('/usr/local/vesta/web/inc/login_url.php');
|
||||
if (isset($_GET[$login_url])) {
|
||||
setcookie($login_url, '1', time() + 31536000, '/', $_SERVER['HTTP_HOST'], true);
|
||||
header ("Location: /login/");
|
||||
exit;
|
||||
if (!defined('NO_AUTH_REQUIRED2')) {
|
||||
if (file_exists('/usr/local/vesta/web/inc/login_url.php')) {
|
||||
require_once('/usr/local/vesta/web/inc/login_url.php');
|
||||
if (isset($_GET[$login_url])) {
|
||||
setcookie($login_url, '1', time() + 31536000, '/', $_SERVER['HTTP_HOST'], true);
|
||||
header ("Location: /login/");
|
||||
exit;
|
||||
}
|
||||
if (!isset($_COOKIE[$login_url])) exit;
|
||||
}
|
||||
if (!isset($_COOKIE[$login_url])) exit;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue