From b97a117a881807905a88a9d2ccefac71b49f1654 Mon Sep 17 00:00:00 2001 From: cinnaboot Date: Tue, 12 Feb 2019 15:53:04 -0500 Subject: [PATCH] remove folder_listing.php --- folder_listing.php | 80 ---------------------------------------------- 1 file changed, 80 deletions(-) delete mode 100644 folder_listing.php diff --git a/folder_listing.php b/folder_listing.php deleted file mode 100644 index 7221221..0000000 --- a/folder_listing.php +++ /dev/null @@ -1,80 +0,0 @@ -. - */ - - -const VIDEO_DIR = '../video/unwatched'; - -$contents = []; -$errors = []; - -if (is_dir(VIDEO_DIR)) { - $handle = opendir(VIDEO_DIR); - - if (!$handle) { - $errors[] = "error opening directory: " . VIDEO_DIR; - return; - } - - while (false !== ($entry = readdir($handle))) { - if ($entry != '.' && $entry != '..') - $contents[] = $entry; - } -} - -?> - - - - - - - -
-
-VIDEO_DIR: ""
-count: ""
-	
-
- -

errors

-
-
-
-	
-
- -
-"; - foreach ($contents as $item) - echo "
  • $item
  • "; - echo ""; - } -?> -
    - -

    debug

    -
    -
    -
    - -