.."; foreach($content as $file){ $file_list .= get_item($file); } }else{ $file_list = " .."; } echo '
'; echo get_upload(); echo get_new_folder(); echo get_context_menu(); echo get_file_list($file_list); echo get_zero_clipboard(); include("static/footer.html"); } function get_zero_clipboard(){ return ' '; } function get_file_list($file_list){ return ''.$file_list.'
'; } function get_context_menu(){ $menu = ''; return $menu; } function get_upload(){ return '

Upload

x

Drop files here or click to upload

'; } function get_new_folder(){ return '

New Folder

x

'; } 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 ''; }