.."; foreach($content as $file){ $file_list .= get_item($file); } }else{ $file_list = " .."; } echo '

New Folder

x

Upload

x
'.$file_list.'
'; include("static/footer.html"); } function get_icon($file){ if($file[4]=="DIRECTORY"){ return ''.get_link($file).''; }else{ return ''.get_link($file).''; } } function get_link($file){ $slash = (($_GET["folder"]!="" && substr($_GET["folder"], -1) != "/"))? "/" : ""; return ''; } function get_item($file){ return ''.get_icon($file).''.get_link($file).$file[3].''; } function print_menu(){ echo ''; }