We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c7b30c commit 302f38cCopy full SHA for 302f38c
web/inc/secure_login.php
@@ -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