mirror of
https://github.com/myvesta/vesta
synced 2025-08-21 05:44:08 -07:00
secure_login.php
This commit is contained in:
parent
3c7b30cbd9
commit
302f38c92a
1 changed files with 8 additions and 0 deletions
8
web/inc/secure_login.php
Normal file
8
web/inc/secure_login.php
Normal 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;
|
Loading…
Add table
Add a link
Reference in a new issue