ws_GetPath(); if($path=="") $path = "/"; $FileFolder = $database->ws_GetFileFolder(); $file = explode('!!!!', $FileFolder)[2]; $folder = explode('!!!!', $FileFolder)[1]; $arrayFile = explode('|', $file); $arrayFolder= explode('|', $folder); $command = $database->ws_GetCommand(); $command = str_replace('opendir:','',$command); $command = str_replace('!!!!','',$command); echo "
File System

Path: $path
Command: $command

"; echo "
"; if(($file=="")&&($folder=="")){ if($path!=="/"){ echo "..
"; } echo "




"; }else{ if($path=="/"){}else{ echo "..
"; } } foreach($arrayFolder as $fold){ if($fold !== "")echo " $fold
"; } foreach($arrayFile as $fil){ if($fil !== "")echo " $fil
"; } echo "

"; $database = new database; $database->ws_UpdateStatusFileFolder('0'); }