summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Bratch <l_bratch@yahoo.co.uk>2014-07-25 11:43:43 +0100
committerLuke Bratch <l_bratch@yahoo.co.uk>2014-07-25 11:43:43 +0100
commit69b8a4bd50e7aac4ce5d92dd1040ebd1d11dc69a (patch)
treee42257188630f351a5cf7692e34ebd939aa58d42
parentf02b557ce2588ead3f9694a061b8a039ba7036a1 (diff)
Add support for omitting certain filenames from the listing
-rw-r--r--index.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/index.php b/index.php
index d234a50..42515eb 100644
--- a/index.php
+++ b/index.php
@@ -1,5 +1,6 @@
<?php
$pass = 'REPLACE THIS WITH A SHA256 HASH OR SET VARIABLE TO NULL';
+$indexignore = array();
if ($_POST && $pass) {
if ((hash("sha256", $_POST['password']) == $pass)) {
@@ -134,6 +135,11 @@ while ($this_array = each($new_array)){
$value = $this_array['value'];
$key = $this_array['key'];
+ // Drop if on index ignore list
+ if (in_array($value, $indexignore)) {
+ continue;
+ }
+
// Drop if outside (optional) date range
if (isset($_GET['from'])) {
$from = $_GET['from'];