summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/index.php b/index.php
index 5ef509d..d234a50 100644
--- a/index.php
+++ b/index.php
@@ -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>