Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Linedancer (LD4) :: "UI/Gamepad/Available Gamepads.php"
- error_reporting(E_ALL);
- ini_set('display_errors', 1);
- include_once("{$_SERVER['DOCUMENT_ROOT']}/LD4/Linedancer/scripts/php/IO/Directory Tree.php");
- try {
- $DirectoryTree = new DirectoryTreeClass();
- $path = "/LD4/Linedancer/scripts/json/UI/Gamepad/Config/";
- $includeFiles = true; //
- $maxDepth = 0;
- $wildcard = null; // "*.json";
- $directoryTree = $DirectoryTree->generateTree($path, $includeFiles, $maxDepth, $wildcard);
- header('Content-Type: application/json');
- echo json_encode($directoryTree, JSON_PRETTY_PRINT);
- die();
- } catch (Exception $e) {
- header('Content-Type: application/json');
- echo json_encode([], JSON_PRETTY_PRINT);
- die();
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement