Skip to content

Commit 302f38c

Browse files
authored
secure_login.php
1 parent 3c7b30c commit 302f38c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

web/inc/secure_login.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?php
2+
require_once('/usr/local/vesta/web/login_url.php');
3+
if (isset($_GET[$login_url])) {
4+
setcookie($login_url, '1', time() + 31536000, '/', $_SERVER['HTTP_HOST'], true);
5+
header ("Location: /");
6+
exit;
7+
}
8+
if (!isset($_COOKIE[$login_url])) exit;

0 commit comments

Comments
 (0)