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

    -
    -
    -
    - -