From ac5891a49fe76808195f0e7bb9856e98ac1aed5a Mon Sep 17 00:00:00 2001 From: oweissbarth Date: Mon, 17 Mar 2014 20:44:55 +0100 Subject: Added directory creation to the browser and fixed all the bugs in func_folder --- www/browse.php | 66 +++++++++++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 58 insertions(+), 8 deletions(-) (limited to 'www/browse.php') diff --git a/www/browse.php b/www/browse.php index 028174e..468401a 100644 --- a/www/browse.php +++ b/www/browse.php @@ -1,20 +1,63 @@ - '.$file_list.'
'; - include("static/footer.html"); + $file_list = ""; + if($content){ + foreach($content as $file){ + $file_list .= get_item($file); + } + } + + echo ' + +
+
+

New Folder

+
+ + + +
+
+
+ '.$file_list.'
'; + + include("static/footer.html"); } + function get_icon($file){ if($file[4]=="DIRECTORY"){ return ''.get_link($file).''; @@ -31,3 +74,10 @@ function get_link($file){ function get_item($file){ return ''.get_icon($file).''.get_link($file).$file[3].''; } + +function print_menu(){ + echo ''; +} -- cgit v1.2.3