0){ $fullPath = $fullPath!="/"?"$fullPath/":"$fullPath"; $count = 0; foreach($dirArrayDefault as $dir=>$property) { $dirName = $dir; $fullPathHTML = htmlentities($fullPath.$dirName, ENT_QUOTES); $dirNameHTML = str_replace(" "," ",htmlentities($dirName, ENT_QUOTES)); if($property['type'] == "D") { $resHtml .= ""; $resHtml .= ""; $resHtml .= "".$dirNameHTML.""; $resHtml .= ""; $resHtml .= ""; $resHtml .= ""; $count++; $type[] = 'folder'; /*} else { $type[] = 'file'; }*/ $dirArray[] = $fullPath.$dirName; } } if($count === 0){ $response = array(); $response[] = false; $response['retry'] = true; echo json_encode($response); exit; } } else { $resStatus = false; $resHtml = "
".NO_FILES."
"; } if(isset($_GET['fullPath'])){ $resArr[]=$resStatus; $resArr[]=$resHtml; if(!isset($dirArray)) { $dirArray = array(); } if(!isset($type)) { $type = ""; } $resArr[]= array('url'=>$fullPath,'dir'=>$dirArray,'type'=>$type,'size'=>$size,'date'=>$date); echo json_encode($resArr); exit; } else { echo $resHtml; } } ?>