$diskInfo = $manager->getDiskInfo(); //check for any sub-directory request //check that the requested sub-directory exists //and valid if (isset($_REQUEST['dir'])) { $path = rawurldecode($_REQUEST['dir']); if ($manager->validRelativePath($path)) { $relative = $path; } } $afruViewType = isset($_REQUEST['viewtype']) ? $afruViewType = $_REQUEST['viewtype'] : ''; if ($afruViewType != "thumbview" && $afruViewType != "listview") { $afruViewType = $IMConfig['view_type']; } //get the list of files and directories $list = $manager->getFiles($relative); /* ================= OUTPUT/DRAW FUNCTIONS ======================= */ /** * Draw folders and files. Changed by Afru */ function drawDirs_Files($list, &$manager) { global $relative, $afruViewType, $IMConfig, $insertMode, $backend_url_enc; switch ($afruViewType) { case 'listview': $maxNameLength = 30; ?> <table class="listview" id="listview"> <thead> <tr><th>Name</th><th>Size</th><th>Image Size</th><th>Date Modified</th><th> </th></tr></thead> <tbody>