summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Bratch <l_bratch@yahoo.co.uk>2014-09-21 12:13:01 +0100
committerLuke Bratch <l_bratch@yahoo.co.uk>2014-09-21 12:13:01 +0100
commitda26cf10caecd4ec2d1b9399731933d10f0c5c07 (patch)
treebad01f74fec301323f2cd103dc39cb9dd968aff9
parentce4dcd942953471e8ba3413c019eedc9c557042d (diff)
Move missing configuration option to example configuration
-rw-r--r--config.php.example3
-rw-r--r--index.php2
2 files changed, 3 insertions, 2 deletions
diff --git a/config.php.example b/config.php.example
index c792d6b..3d9abfa 100644
--- a/config.php.example
+++ b/config.php.example
@@ -12,4 +12,7 @@
# A file to be included at the top of the page
# For example an HTML form to upload files
$headerfile = "upload.html";
+
+ # An array of filenames to omit from the index
+ $indexignore = array();
?>
diff --git a/index.php b/index.php
index bd25914..b8eadfc 100644
--- a/index.php
+++ b/index.php
@@ -1,8 +1,6 @@
<?php
include('config.php');
-$indexignore = array();
-
if ($_POST && $pass) {
if ((hash("sha256", $_POST['password']) == $pass)) {
if (isset($_POST['rememberme'])) {