From 89998a299cb72f88b33c9a2e3e48a45722745e63 Mon Sep 17 00:00:00 2001 From: Colin Fleming Date: Mon, 4 Feb 2013 20:41:40 +0000 Subject: Update HTML code in File Manager Tidy up the HTML code in File Manager, update the DOCTYPE to the correct definition, update the SCRIPT tags and misc. small updates. --- config/filemgr/file_manager.tmp | 219 ++++++++++++++++++------------------- config/filemgr/filemgr.xml | 2 +- config/filemgr/index.tmp | 10 +- config/filemgr/rbfminc/config.tmp | 4 +- config/filemgr/rbfminc/rename.tmp | 4 +- config/filemgr/rbfminc/session.tmp | 2 +- pkg_config.7.xml | 2 +- pkg_config.8.xml | 2 +- pkg_config.8.xml.amd64 | 2 +- 9 files changed, 124 insertions(+), 123 deletions(-) diff --git a/config/filemgr/file_manager.tmp b/config/filemgr/file_manager.tmp index 93d44a84..9699ec22 100644 --- a/config/filemgr/file_manager.tmp +++ b/config/filemgr/file_manager.tmp @@ -2,9 +2,12 @@ include "rbfminc/config.php"; //include "rbfminc/session.php"; require_once('config.inc'); - require("guiconfig.inc"); - include("head.inc"); - global $config; +require("guiconfig.inc"); + +$closehead = false; +include("head.inc"); + +global $config; if('ok' == 'ok'){ set_time_limit(1800); //30 min include "rbfminc/functions.php"; @@ -155,28 +158,22 @@ if('ok' == 'ok'){ } closedir($handle); }else{ - $error = "

Invalid directory

"; + $error = "

Invalid directory

"; } - $container .= " - +
- + - - - - - - + - + "; @@ -195,40 +192,40 @@ if('ok' == 'ok'){ $fileperms = GetFilePerms($current_folder.$v); if($url_path){ - $browser = "W"; + $browser = "\"W\""; if($url_field){ - $use_url = "U"; + $use_url = "\"U\""; }else{ - $use_url = "U"; + $use_url = "\"U\""; } }else{ $browser = " "; - $use_url = "U"; + $use_url = "\"U\""; } $container .= " - - + - - + + "; $id++; @@ -349,7 +346,7 @@ if('ok' == 'ok'){ $extension == 'css' or $extension == 'CSS' ){ - $edit_file_content = "Edit"; + $edit_file_content = "\"Edit\""; }else{ $edit_file_content = " "; } @@ -357,35 +354,35 @@ if('ok' == 'ok'){ $fileperms = GetFilePerms($current_folder.$v); if($url_path){ - $browser = "W"; + $browser = "\"W\""; if($url_field){ - $use_url = "U"; + $use_url = "\"U\""; }else{ - $use_url = "U"; + $use_url = "\"U\""; } }else{ $browser = " "; - $use_url = "U"; + $use_url = "\"U\""; } $container .= " - - + - - + + "; $id++; @@ -466,18 +463,14 @@ if('ok' == 'ok'){ ?> - - - - - - -File editor - - + + + + +
@@ -487,7 +480,7 @@ if('ok' == 'ok'){ go -
URL path:
+

URL path:
Upload a file in current folder: @@ -498,26 +491,26 @@ if('ok' == 'ok'){ -
- Create new folder here;   Folder name: - + +     Create new folder here; Folder name: + - -
[ OPEN IN BROWSER ]     - [ DOWNLOAD ]     - [ RENAME ]     - [ VIEW/EDIT ]     - [ DELETE ]
+ +
[ open OPEN IN BROWSER ]     + [ download DOWNLOAD ]     + [ rename RENAME ]     + [ view VIEW/EDIT ]     + [ delete DELETE ]
- + File: {$current_folder}{$_GET['f']}
-
+
@@ -532,15 +525,19 @@ if('ok' == 'ok'){ + "; } if($redirect){ echo " - "; } @@ -551,12 +548,14 @@ if($redirect){ - + + Login



   Name       Ext. Size Date Attributes
F\"F\" [..]
- Folder + \"Folder\" -
{$v}
- +
{$browser}   - Rename   - D    <DIR>{$last_updated_time}{$fileperms}{$last_updated_time}{$fileperms}
- File + + \"File\" -
{$v}
- +
{$browser} - Download\"Download\" - Rename {$edit_file_content} - D {$extension}{$extension} {$file_size}{$last_updated_time}{$fileperms}{$last_updated_time}{$fileperms}
+
@@ -593,4 +592,4 @@ body { \ No newline at end of file +?> diff --git a/config/filemgr/filemgr.xml b/config/filemgr/filemgr.xml index ec95a3c8..57f0e1f9 100644 --- a/config/filemgr/filemgr.xml +++ b/config/filemgr/filemgr.xml @@ -31,7 +31,7 @@ nonehttp://forum.pfsense.org/index.php/topic,26974.0.htmlFile Manager - 0.1.1 + 0.1.2Settings/usr/local/pkg/filemgr.inc diff --git a/config/filemgr/index.tmp b/config/filemgr/index.tmp index 7c768af6..47092a0c 100644 --- a/config/filemgr/index.tmp +++ b/config/filemgr/index.tmp @@ -1,11 +1,11 @@ - - - + \ No newline at end of file diff --git a/config/filemgr/rbfminc/config.tmp b/config/filemgr/rbfminc/config.tmp index 47a7563a..405514f8 100644 --- a/config/filemgr/rbfminc/config.tmp +++ b/config/filemgr/rbfminc/config.tmp @@ -89,7 +89,7 @@ if( !get_magic_quotes_gpc() ){ //END Protect against GLOBALS tricks /***********************************/ //if($username == 'admin' and $password == 'admin'){ - //$security_issues = "
Security issue: Please change your username or password
"; + //$security_issues = "
Security issue: Please change your username or password
"; //} $security_issues = "
"; -?> \ No newline at end of file +?> diff --git a/config/filemgr/rbfminc/rename.tmp b/config/filemgr/rbfminc/rename.tmp index 6d56c449..285e19d1 100644 --- a/config/filemgr/rbfminc/rename.tmp +++ b/config/filemgr/rbfminc/rename.tmp @@ -11,7 +11,8 @@ if($user_login == 'ok'){ Rename - diff --git a/config/filemgr/rbfminc/session.tmp b/config/filemgr/rbfminc/session.tmp index 8f3a666e..7cfc133d 100644 --- a/config/filemgr/rbfminc/session.tmp +++ b/config/filemgr/rbfminc/session.tmp @@ -29,4 +29,4 @@ if($_SESSION['username'] and $_SESSION['password']){ } } -?> \ No newline at end of file +?> diff --git a/pkg_config.7.xml b/pkg_config.7.xml index 52975ab6..2f08ebd0 100755 --- a/pkg_config.7.xml +++ b/pkg_config.7.xml @@ -22,7 +22,7 @@ Diagnostics http://forum.pfsense.org/index.php/topic,26974.0.html http://pfsense.org/packages/config/filemgr/filemgr.xml - 0.1.1 + 0.1.2 Beta 1.2.2 tom@tomschaefer.org diff --git a/pkg_config.8.xml b/pkg_config.8.xml index f28ff9d4..75022285 100644 --- a/pkg_config.8.xml +++ b/pkg_config.8.xml @@ -108,7 +108,7 @@ Diagnostics http://forum.pfsense.org/index.php/topic,26974.0.html http://pfsense.org/packages/config/filemgr/filemgr.xml - 0.1.1 + 0.1.2 Beta 2.0 tom@tomschaefer.org diff --git a/pkg_config.8.xml.amd64 b/pkg_config.8.xml.amd64 index 22563163..0a05421d 100644 --- a/pkg_config.8.xml.amd64 +++ b/pkg_config.8.xml.amd64 @@ -95,7 +95,7 @@ Diagnostics http://forum.pfsense.org/index.php/topic,26974.0.html http://pfsense.org/packages/config/filemgr/filemgr.xml - 0.1.1 + 0.1.2 Beta 2.0 tom@tomschaefer.org -- cgit v1.2.3
Username: