diff options
author | Luke Bratch <l_bratch@yahoo.co.uk> | 2014-07-25 11:43:43 +0100 |
---|---|---|
committer | Luke Bratch <l_bratch@yahoo.co.uk> | 2014-07-25 11:43:43 +0100 |
commit | 69b8a4bd50e7aac4ce5d92dd1040ebd1d11dc69a (patch) | |
tree | e42257188630f351a5cf7692e34ebd939aa58d42 /index.php | |
parent | f02b557ce2588ead3f9694a061b8a039ba7036a1 (diff) |
Add support for omitting certain filenames from the listing
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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']; |