From c89bd0fc5efb765166e6e7630c9c62cf917c6bda Mon Sep 17 00:00:00 2001 From: oweissbarth Date: Wed, 23 Jul 2014 09:46:07 +0200 Subject: Code Cleanup + Added filelist header --- www/browse.php | 51 +++++++++++++++++++++++++-------------------------- 1 file changed, 25 insertions(+), 26 deletions(-) (limited to 'www/browse.php') diff --git a/www/browse.php b/www/browse.php index 5741b45..bb7051d 100644 --- a/www/browse.php +++ b/www/browse.php @@ -34,19 +34,21 @@ function browse($content){ if($content != EMPTY_FOLDER){ - $file_list = " .."; + $file_list = " .."; foreach($content as $file){ $file_list .= get_item($file); } }else{ - $file_list = " .."; + $file_list = " .."; } echo ' - '; + + +
'; echo get_upload(); @@ -79,7 +81,7 @@ function get_zero_clipboard(){ } function get_file_list($file_list){ - return ''.$file_list.'
'; + return ''.$file_list.'
'; } function get_context_menu(){ @@ -105,12 +107,11 @@ function get_context_menu(){ } function get_upload(){ - return '
-
+ return '

Upload

- x - + x +

Drop files here or click to upload

@@ -118,42 +119,40 @@ function get_upload(){
-

'; } function get_new_folder(){ - return '
-
-

New Folder

- x -
- - - - -

- -
-
'; + return '
+

New Folder

+ x +
+ + + + +

+ +
+
'; } function get_icon($file){ if($file[4]=="DIRECTORY"){ - return ''.get_link($file).''; + return ''.get_link($file).''; }else{ - return ''.get_link($file).''; + return ''.get_link($file).''; } } function get_link($file){ $slash = (($_GET["folder"]!="" && substr($_GET["folder"], -1) != "/"))? "/" : ""; - return ''; + return ''; } function get_item($file){ - return ''.get_icon($file).''.get_link($file).$file[3].''; + return ''.get_icon($file).''.get_link($file).$file[3].''; } function print_menu(){ -- cgit v1.2.3