diff options
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,7 +1,7 @@ <?php -$pass = 'REPLACE THIS WITH A SHA256 HASH'; +$pass = 'REPLACE THIS WITH A SHA256 HASH OR SET VARIABLE TO NULL'; -if ($_POST) { +if ($_POST && $pass) { if ((hash("sha256", $_POST['password']) == $pass)) { if (isset($_POST['rememberme'])) { /* Set cookie to last 1 year */ @@ -15,7 +15,7 @@ if ($_POST) { header('Location: http://www.blaupload.co.uk/'); exit(); } -} else { +} else if ($pass) { if (!isset($_COOKIE["password"]) || (isset($_COOKIE["password"]) && $_COOKIE["password"] != $pass)) { ?> <html> |