Changing redirect location

This commit is contained in:
dpeca 2018-04-10 02:42:34 +02:00 committed by GitHub
commit a260e0c6b7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,7 +2,7 @@
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: /");
header ("Location: /login/");
exit;
}
if (!isset($_COOKIE[$login_url])) exit;