'; $location = str_replace("|","/",$_GET['location']); } if ($location=="/") {$location = "";}; $dirArray = $filesArray = $finalArray = array(); $finalArray = scanDir($scanDir.$location); foreach($finalArray as $entry) { $canAdd = true; for ($i=0;$i\n";} if ($i==count($finalArray)-1 && isset($_GET['location'])) { echo "\n"; } $type == "folder" ? $class = 'pft-directory' : $class = 'pft-file '.strtolower($ext); $loadParam = $type == "folder" ? "true" : "false"; echo "
  •         ".basename($fileFolderName)." "; echo ''; echo $serverType=="Linux" ? substr(sprintf('%o', fileperms($docRoot.$iceRoot.$fileFolderName)), -3) : ''; echo "
  • \n"; } if (isset($_GET['location'])) { ?>