prevents debug users from exploring system's directory structure * ex: $root = $_SERVER['DOCUMENT_ROOT']; */ $root = '/'; if (!$root) exit("ERROR: Root filesystem directory not set in jqueryFileTree.php"); $rootdir = preg_replace("#[\/]+#","/",$root.($_POST['dir'] ?? '')); $filters = (array)($_POST['filter'] ?? ''); $match = ($_POST['match'] ?? '.*'); // set checkbox if multiSelect set to true $checkbox = (isset($_POST['multiSelect']) && $_POST['multiSelect']=='true') ? "" : ""; echo ""; ?>