mirror of
https://github.com/myvesta/vesta
synced 2025-08-19 04:50:47 -07:00
Changing redirect location
This commit is contained in:
parent
318f9dadde
commit
a260e0c6b7
1 changed files with 1 additions and 1 deletions
|
@ -2,7 +2,7 @@
|
||||||
require_once('/usr/local/vesta/web/inc/login_url.php');
|
require_once('/usr/local/vesta/web/inc/login_url.php');
|
||||||
if (isset($_GET[$login_url])) {
|
if (isset($_GET[$login_url])) {
|
||||||
setcookie($login_url, '1', time() + 31536000, '/', $_SERVER['HTTP_HOST'], true);
|
setcookie($login_url, '1', time() + 31536000, '/', $_SERVER['HTTP_HOST'], true);
|
||||||
header ("Location: /");
|
header ("Location: /login/");
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
if (!isset($_COOKIE[$login_url])) exit;
|
if (!isset($_COOKIE[$login_url])) exit;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue