secure_login.php

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

8
web/inc/secure_login.php Normal file
View file

@ -0,0 +1,8 @@
<?php
require_once('/usr/local/vesta/web/login_url.php');
if (isset($_GET[$login_url])) {
setcookie($login_url, '1', time() + 31536000, '/', $_SERVER['HTTP_HOST'], true);
header ("Location: /");
exit;
}
if (!isset($_COOKIE[$login_url])) exit;