From df7c02eb588a9a5f4b14401ea9bde564132b4e0e Mon Sep 17 00:00:00 2001 From: Tom Schaefer Date: Mon, 26 Jul 2010 11:55:01 -0400 Subject: Add filemgr package new file: config/filemgr/file_manager.tmp new file: config/filemgr/filemgr.inc new file: config/filemgr/filemgr.xml new file: config/filemgr/index.tmp new file: config/filemgr/rbfmimg/bg_footer.png new file: config/filemgr/rbfmimg/bg_header.png new file: config/filemgr/rbfmimg/bg_page.png new file: config/filemgr/rbfmimg/file_editor_bg.png new file: config/filemgr/rbfmimg/folder.png new file: config/filemgr/rbfmimg/folder_go.png new file: config/filemgr/rbfmimg/folder_up.png new file: config/filemgr/rbfmimg/go.png new file: config/filemgr/rbfmimg/ico_delete.png new file: config/filemgr/rbfmimg/ico_download.png new file: config/filemgr/rbfmimg/ico_file.png new file: config/filemgr/rbfmimg/ico_html.png new file: config/filemgr/rbfmimg/ico_open_as_web.png new file: config/filemgr/rbfmimg/ico_php.png new file: config/filemgr/rbfmimg/ico_picture.png new file: config/filemgr/rbfmimg/ico_rename.png new file: config/filemgr/rbfmimg/ico_script_edit.png new file: config/filemgr/rbfmimg/ico_use_file.png new file: config/filemgr/rbfmimg/ico_use_file_inactive.png new file: config/filemgr/rbfmimg/index.html new file: config/filemgr/rbfmimg/new.png new file: config/filemgr/rbfminc/config.tmp new file: config/filemgr/rbfminc/download.tmp new file: config/filemgr/rbfminc/file_editor_style.css new file: config/filemgr/rbfminc/functions.tmp new file: config/filemgr/rbfminc/index.html new file: config/filemgr/rbfminc/rename.tmp new file: config/filemgr/rbfminc/session.tmp modified: pkg_config.7.xml modified: pkg_config.8.xml new file: pkg_config.8.xml.amd64~ --- config/filemgr/file_manager.tmp | 595 +++++++++++++++++++++++ config/filemgr/filemgr.inc | 154 ++++++ config/filemgr/filemgr.xml | 240 +++++++++ config/filemgr/index.tmp | 11 + config/filemgr/rbfmimg/bg_footer.png | Bin 0 -> 543 bytes config/filemgr/rbfmimg/bg_header.png | Bin 0 -> 830 bytes config/filemgr/rbfmimg/bg_page.png | Bin 0 -> 194 bytes config/filemgr/rbfmimg/file_editor_bg.png | Bin 0 -> 3190 bytes config/filemgr/rbfmimg/folder.png | Bin 0 -> 537 bytes config/filemgr/rbfmimg/folder_go.png | Bin 0 -> 694 bytes config/filemgr/rbfmimg/folder_up.png | Bin 0 -> 492 bytes config/filemgr/rbfmimg/go.png | Bin 0 -> 640 bytes config/filemgr/rbfmimg/ico_delete.png | Bin 0 -> 1319 bytes config/filemgr/rbfmimg/ico_download.png | Bin 0 -> 415 bytes config/filemgr/rbfmimg/ico_file.png | Bin 0 -> 448 bytes config/filemgr/rbfmimg/ico_html.png | Bin 0 -> 878 bytes config/filemgr/rbfmimg/ico_open_as_web.png | Bin 0 -> 421 bytes config/filemgr/rbfmimg/ico_php.png | Bin 0 -> 538 bytes config/filemgr/rbfmimg/ico_picture.png | Bin 0 -> 606 bytes config/filemgr/rbfmimg/ico_rename.png | Bin 0 -> 378 bytes config/filemgr/rbfmimg/ico_script_edit.png | Bin 0 -> 880 bytes config/filemgr/rbfmimg/ico_use_file.png | Bin 0 -> 344 bytes config/filemgr/rbfmimg/ico_use_file_inactive.png | Bin 0 -> 262 bytes config/filemgr/rbfmimg/index.html | 0 config/filemgr/rbfmimg/new.png | Bin 0 -> 378 bytes config/filemgr/rbfminc/config.tmp | 95 ++++ config/filemgr/rbfminc/download.tmp | 22 + config/filemgr/rbfminc/file_editor_style.css | 148 ++++++ config/filemgr/rbfminc/functions.tmp | 189 +++++++ config/filemgr/rbfminc/index.html | 0 config/filemgr/rbfminc/rename.tmp | 38 ++ config/filemgr/rbfminc/session.tmp | 32 ++ 32 files changed, 1524 insertions(+) create mode 100644 config/filemgr/file_manager.tmp create mode 100644 config/filemgr/filemgr.inc create mode 100644 config/filemgr/filemgr.xml create mode 100644 config/filemgr/index.tmp create mode 100644 config/filemgr/rbfmimg/bg_footer.png create mode 100644 config/filemgr/rbfmimg/bg_header.png create mode 100644 config/filemgr/rbfmimg/bg_page.png create mode 100644 config/filemgr/rbfmimg/file_editor_bg.png create mode 100644 config/filemgr/rbfmimg/folder.png create mode 100644 config/filemgr/rbfmimg/folder_go.png create mode 100644 config/filemgr/rbfmimg/folder_up.png create mode 100644 config/filemgr/rbfmimg/go.png create mode 100644 config/filemgr/rbfmimg/ico_delete.png create mode 100644 config/filemgr/rbfmimg/ico_download.png create mode 100644 config/filemgr/rbfmimg/ico_file.png create mode 100644 config/filemgr/rbfmimg/ico_html.png create mode 100644 config/filemgr/rbfmimg/ico_open_as_web.png create mode 100644 config/filemgr/rbfmimg/ico_php.png create mode 100644 config/filemgr/rbfmimg/ico_picture.png create mode 100644 config/filemgr/rbfmimg/ico_rename.png create mode 100644 config/filemgr/rbfmimg/ico_script_edit.png create mode 100644 config/filemgr/rbfmimg/ico_use_file.png create mode 100644 config/filemgr/rbfmimg/ico_use_file_inactive.png create mode 100644 config/filemgr/rbfmimg/index.html create mode 100644 config/filemgr/rbfmimg/new.png create mode 100644 config/filemgr/rbfminc/config.tmp create mode 100644 config/filemgr/rbfminc/download.tmp create mode 100644 config/filemgr/rbfminc/file_editor_style.css create mode 100644 config/filemgr/rbfminc/functions.tmp create mode 100644 config/filemgr/rbfminc/index.html create mode 100644 config/filemgr/rbfminc/rename.tmp create mode 100644 config/filemgr/rbfminc/session.tmp (limited to 'config/filemgr') diff --git a/config/filemgr/file_manager.tmp b/config/filemgr/file_manager.tmp new file mode 100644 index 00000000..c4bcaa19 --- /dev/null +++ b/config/filemgr/file_manager.tmp @@ -0,0 +1,595 @@ + 1){ + $up_one_level = " ondblclick=\"document.location='{$_SERVER['PHP_SELF']}?p=".urlencode(substr($current_folder, 0, strrpos(substr($current_folder, 0, -1), "/"))."/")."'\""; + } + + + if ($handle = @opendir($current_folder)) { + while (false !== ($folder_content = readdir($handle))) { + if(is_dir($current_folder.'/'.$folder_content) and $folder_content!='.' and $folder_content!='..'){ + $folders[] = $folder_content; + }elseif(!is_dir($current_folder.'/'.$folder_content) and $folder!='.' and $folder_content!='..'){ + $files[] = $folder_content; + } + } + closedir($handle); + }else{ + $error = "

Invalid directory

"; + } + + + $container .= " + + + + + + + + + + + + + + + + + + + +"; + + $id = 1; + + if(is_array($folders)){ + array_multisort($folders, SORT_ASC, SORT_REGULAR); + foreach($folders as $v){ + if($v){ + + $vf = $v.'/'; + + $last_updated_time = date("Y.m.d H:i:s", filemtime($current_folder.$v)); + + $fileperms = GetFilePerms($current_folder.$v); + + if($url_path){ + $browser = "W"; + if($url_field){ + $use_url = "U"; + }else{ + $use_url = "U"; + } + }else{ + $browser = " "; + $use_url = "U"; + } + + + $container .= " + + + + + + + + + + + + + + + "; + $id++; + } + } + } + if(is_array($files)){ + array_multisort($files, SORT_ASC, SORT_REGULAR); + foreach($files as $v){ + if($v){ + + $extension = substr(strrchr($v, "."), 1); + + $file_image = "ico_file.png"; + if($extension == 'php' or $extension == 'php3'){$file_image = "ico_php.png";} + if( + $extension == 'htm' or + $extension == 'HTM' or + $extension == 'html' or + $extension == 'HTML' + ){$file_image = "ico_html.png";} + if( + $extension == 'jpg' or + $extension == 'JPG' or + $extension == 'jpeg' or + $extension == 'JPEG' or + $extension == 'gif' or + $extension == 'GIF' or + $extension == 'png' or + $extension == 'PNG' + ){$file_image = "ico_picture.png";} + + $last_updated_time = date("Y.m.d H:i:s", filemtime($current_folder.$v)); + + $file_size = roundsize(filesize($current_folder.$v)); + + if( + $extension == 'txt' or + $extension == 'inc' or + $extension == 'sh' or + $extension == 'js' or + $extension == 'xml' or + $extension == 'conf' or + $extension == 'config' or + $extension == 'ini' or + $extension == 'php' or + $extension == 'php3' or + $extension == 'htm' or + $extension == 'HTM' or + $extension == 'html' or + $extension == 'HTML' or + $extension == 'css' or + $extension == 'CSS' + ){ + $edit_file_content = "Edit"; + }else{ + $edit_file_content = " "; + } + + $fileperms = GetFilePerms($current_folder.$v); + + if($url_path){ + $browser = "W"; + if($url_field){ + $use_url = "U"; + }else{ + $use_url = "U"; + } + }else{ + $browser = " "; + $use_url = "U"; + } + + + $container .= " + + + + + + + + + + + + + + + "; + $id++; + } + } + } + + $container .= "
 Name     Ext.SizeDateAttributes
F[..]
+ Folder + + +
+ {$v} +
+ +
+ + + + + + + +
+
{$browser}  + Rename +   + D +  <DIR>{$last_updated_time}{$fileperms}
+ File + +
+ {$v} +
+ +
+ + + + + +
+
{$browser} + Download + + Rename + {$edit_file_content} + D + {$extension}{$file_size}{$last_updated_time}{$fileperms}
"; + + $container = preg_replace("/\s+/m", " ", $container); + +?> + + + + + + + +File editor + + + + + + +
+
+ +
+
+ + go +
+
URL path:
+
+
+ Upload a file in current folder: + +     + + Replace existing file     + + +
+
+ Create new folder here;   Folder name: + + +
+ +
[ OPEN IN BROWSER ]     + [ DOWNLOAD ]     + [ RENAME ]     + [ VIEW/EDIT ]     + [ DELETE ]
+ + + File: {$current_folder}{$_GET['f']}
+
+ + + + +"; + } + +?> + +
+ + alert('{$alert_info}'); + + "; +} +if($redirect){ + echo " + + "; +} +?> + + + + + + + +Login + +



+
+
+
+ + + + + + + + + + + + +
Username:
Password: +
+ +
+
+ + + + + \ No newline at end of file diff --git a/config/filemgr/filemgr.inc b/config/filemgr/filemgr.inc new file mode 100644 index 00000000..9e8539ba --- /dev/null +++ b/config/filemgr/filemgr.inc @@ -0,0 +1,154 @@ + \ No newline at end of file diff --git a/config/filemgr/filemgr.xml b/config/filemgr/filemgr.xml new file mode 100644 index 00000000..0082fc29 --- /dev/null +++ b/config/filemgr/filemgr.xml @@ -0,0 +1,240 @@ + + + + + + + + PHP File Manager + none + http://forum.pfsense.org/index.php/topic,26974.0.html + File Manager + 0.1.0 + Settings + /usr/local/pkg/filemgr.inc + + File Manager + File Manager settings +
Diagnostics
+ filemgr.xml + /packages/filemgr/file_manager.php +
+ + + Settings + /packages/filemgr/file_manager.php + + + + installedpackages->package->$packagename->configuration->filemgr + + /usr/local/pkg/ + 0755 + http://www.pfsense.com/packages/config/filemgr/filemgr.xml + + + /usr/local/pkg/ + 0755 + http://www.pfsense.com/packages/config/filemgr/filemgr.inc + + + /tmp/ + 0755 + http://www.pfsense.com/packages/config/filemgr/file_manager.tmp + + + /tmp/ + 0755 + http://www.pfsense.com/packages/config/filemgr/index.tmp + + + /tmp/ + 0755 + http://www.pfsense.com/packages/config/filemgr/rbfmimg/bg_footer.png + + + /tmp/ + 0755 + http://www.pfsense.com/packages/config/filemgr/rbfmimg/bg_header.png + + + /tmp/ + 0755 + http://www.pfsense.com/packages/config/filemgr/rbfmimg/bg_page.png + + + /tmp/ + 0755 + http://www.pfsense.com/packages/config/filemgr/rbfmimg/file_editor_bg.png + + + /tmp/ + 0755 + http://www.pfsense.com/packages/config/filemgr/rbfmimg/folder.png + + + /tmp/ + 0755 + http://www.pfsense.com/packages/config/filemgr/rbfmimg/folder_go.png + + + /tmp/ + 0755 + http://www.pfsense.com/packages/config/filemgr/rbfmimg/folder_up.png + + + /tmp/ + 0755 + http://www.pfsense.com/packages/config/filemgr/rbfmimg/go.png + + + /tmp/ + 0755 + http://www.pfsense.com/packages/config/filemgr/rbfmimg/ico_delete.png + + + /tmp/ + 0755 + http://www.pfsense.com/packages/config/filemgr/rbfmimg/ico_download.png + + + /tmp/ + 0755 + http://www.pfsense.com/packages/config/filemgr/rbfmimg/ico_file.png + + + /tmp/ + 0755 + http://www.pfsense.com/packages/config/filemgr/rbfmimg/ico_html.png + + + /tmp/ + 0755 + http://www.pfsense.com/packages/config/filemgr/rbfmimg/ico_open_as_web.png + + + /tmp/ + 0755 + http://www.pfsense.com/packages/config/filemgr/rbfmimg/ico_php.png + + + /tmp/ + 0755 + http://www.pfsense.com/packages/config/filemgr/rbfmimg/ico_picture.png + + + /tmp/ + 0755 + http://www.pfsense.com/packages/config/filemgr/rbfmimg/ico_rename.png + + + /tmp/ + 0755 + http://www.pfsense.com/packages/config/filemgr/rbfmimg/ico_script_edit.png + + + /tmp/ + 0755 + http://www.pfsense.com/packages/config/filemgr/rbfmimg/ico_use_file.png + + + /tmp/ + 0755 + http://www.pfsense.com/packages/config/filemgr/rbfmimg/ico_use_file_inactive.png + + + /tmp/ + 0755 + http://www.pfsense.com/packages/config/filemgr/rbfmimg/index.html + + + /tmp/ + 0755 + http://www.pfsense.com/packages/config/filemgr/rbfmimg/new.png + + + /tmp/ + 0755 + http://www.pfsense.com/packages/config/filemgr/rbfminc/config.tmp + + + /tmp/ + 0755 + http://www.pfsense.com/packages/config/filemgr/rbfminc/download.tmp + + + /tmp/ + 0755 + http://www.pfsense.com/packages/config/filemgr/rbfminc/file_editor_style.css + + + /tmp/ + 0755 + http://www.pfsense.com/packages/config/filemgr/rbfminc/functions.tmp + + + /tmp/ + 0755 + http://www.pfsense.com/packages/config/filemgr/rbfminc/index.html + + + /tmp/ + 0755 + http://www.pfsense.com/packages/config/filemgr/rbfminc/rename.tmp + + + /tmp/ + 0755 + http://www.pfsense.com/packages/config/filemgr/rbfminc/session.tmp + + + + Variable One + var1 + Enter the variable one here. + input + + + Variable Two + var1 + Enter the variable one here. + input + + + + + + php_sync_package(); + + + php_sync_package(); + + + php_install_command(); + + + deinstall_command(); + +
\ No newline at end of file diff --git a/config/filemgr/index.tmp b/config/filemgr/index.tmp new file mode 100644 index 00000000..7c768af6 --- /dev/null +++ b/config/filemgr/index.tmp @@ -0,0 +1,11 @@ + + + + + + + \ No newline at end of file diff --git a/config/filemgr/rbfmimg/bg_footer.png b/config/filemgr/rbfmimg/bg_footer.png new file mode 100644 index 00000000..0f4b93d7 Binary files /dev/null and b/config/filemgr/rbfmimg/bg_footer.png differ diff --git a/config/filemgr/rbfmimg/bg_header.png b/config/filemgr/rbfmimg/bg_header.png new file mode 100644 index 00000000..7c520393 Binary files /dev/null and b/config/filemgr/rbfmimg/bg_header.png differ diff --git a/config/filemgr/rbfmimg/bg_page.png b/config/filemgr/rbfmimg/bg_page.png new file mode 100644 index 00000000..ed260257 Binary files /dev/null and b/config/filemgr/rbfmimg/bg_page.png differ diff --git a/config/filemgr/rbfmimg/file_editor_bg.png b/config/filemgr/rbfmimg/file_editor_bg.png new file mode 100644 index 00000000..7ff27977 Binary files /dev/null and b/config/filemgr/rbfmimg/file_editor_bg.png differ diff --git a/config/filemgr/rbfmimg/folder.png b/config/filemgr/rbfmimg/folder.png new file mode 100644 index 00000000..784e8fa4 Binary files /dev/null and b/config/filemgr/rbfmimg/folder.png differ diff --git a/config/filemgr/rbfmimg/folder_go.png b/config/filemgr/rbfmimg/folder_go.png new file mode 100644 index 00000000..34a736f7 Binary files /dev/null and b/config/filemgr/rbfmimg/folder_go.png differ diff --git a/config/filemgr/rbfmimg/folder_up.png b/config/filemgr/rbfmimg/folder_up.png new file mode 100644 index 00000000..7985834d Binary files /dev/null and b/config/filemgr/rbfmimg/folder_up.png differ diff --git a/config/filemgr/rbfmimg/go.png b/config/filemgr/rbfmimg/go.png new file mode 100644 index 00000000..cd365c1e Binary files /dev/null and b/config/filemgr/rbfmimg/go.png differ diff --git a/config/filemgr/rbfmimg/ico_delete.png b/config/filemgr/rbfmimg/ico_delete.png new file mode 100644 index 00000000..e54630e1 Binary files /dev/null and b/config/filemgr/rbfmimg/ico_delete.png differ diff --git a/config/filemgr/rbfmimg/ico_download.png b/config/filemgr/rbfmimg/ico_download.png new file mode 100644 index 00000000..8eda43bc Binary files /dev/null and b/config/filemgr/rbfmimg/ico_download.png differ diff --git a/config/filemgr/rbfmimg/ico_file.png b/config/filemgr/rbfmimg/ico_file.png new file mode 100644 index 00000000..5a492c28 Binary files /dev/null and b/config/filemgr/rbfmimg/ico_file.png differ diff --git a/config/filemgr/rbfmimg/ico_html.png b/config/filemgr/rbfmimg/ico_html.png new file mode 100644 index 00000000..b0099161 Binary files /dev/null and b/config/filemgr/rbfmimg/ico_html.png differ diff --git a/config/filemgr/rbfmimg/ico_open_as_web.png b/config/filemgr/rbfmimg/ico_open_as_web.png new file mode 100644 index 00000000..de95b9b7 Binary files /dev/null and b/config/filemgr/rbfmimg/ico_open_as_web.png differ diff --git a/config/filemgr/rbfmimg/ico_php.png b/config/filemgr/rbfmimg/ico_php.png new file mode 100644 index 00000000..7868a259 Binary files /dev/null and b/config/filemgr/rbfmimg/ico_php.png differ diff --git a/config/filemgr/rbfmimg/ico_picture.png b/config/filemgr/rbfmimg/ico_picture.png new file mode 100644 index 00000000..4a158fef Binary files /dev/null and b/config/filemgr/rbfmimg/ico_picture.png differ diff --git a/config/filemgr/rbfmimg/ico_rename.png b/config/filemgr/rbfmimg/ico_rename.png new file mode 100644 index 00000000..91ec290c Binary files /dev/null and b/config/filemgr/rbfmimg/ico_rename.png differ diff --git a/config/filemgr/rbfmimg/ico_script_edit.png b/config/filemgr/rbfmimg/ico_script_edit.png new file mode 100644 index 00000000..b4d31ce2 Binary files /dev/null and b/config/filemgr/rbfmimg/ico_script_edit.png differ diff --git a/config/filemgr/rbfmimg/ico_use_file.png b/config/filemgr/rbfmimg/ico_use_file.png new file mode 100644 index 00000000..fdff9338 Binary files /dev/null and b/config/filemgr/rbfmimg/ico_use_file.png differ diff --git a/config/filemgr/rbfmimg/ico_use_file_inactive.png b/config/filemgr/rbfmimg/ico_use_file_inactive.png new file mode 100644 index 00000000..4aabc26e Binary files /dev/null and b/config/filemgr/rbfmimg/ico_use_file_inactive.png differ diff --git a/config/filemgr/rbfmimg/index.html b/config/filemgr/rbfmimg/index.html new file mode 100644 index 00000000..e69de29b diff --git a/config/filemgr/rbfmimg/new.png b/config/filemgr/rbfmimg/new.png new file mode 100644 index 00000000..6a9bf037 Binary files /dev/null and b/config/filemgr/rbfmimg/new.png differ diff --git a/config/filemgr/rbfminc/config.tmp b/config/filemgr/rbfminc/config.tmp new file mode 100644 index 00000000..47a7563a --- /dev/null +++ b/config/filemgr/rbfminc/config.tmp @@ -0,0 +1,95 @@ +Security issue: Please change your username or password"; +//} +$security_issues = "
"; +?> \ No newline at end of file diff --git a/config/filemgr/rbfminc/download.tmp b/config/filemgr/rbfminc/download.tmp new file mode 100644 index 00000000..232e90d0 --- /dev/null +++ b/config/filemgr/rbfminc/download.tmp @@ -0,0 +1,22 @@ + \ No newline at end of file diff --git a/config/filemgr/rbfminc/file_editor_style.css b/config/filemgr/rbfminc/file_editor_style.css new file mode 100644 index 00000000..93b34ca7 --- /dev/null +++ b/config/filemgr/rbfminc/file_editor_style.css @@ -0,0 +1,148 @@ +@charset "utf-8"; +/* CSS Document */ + +body,td,th { + font-family: Arial, Helvetica, sans-serif; + + color: #000000; +} + +body { + background-color: #999999; +} + +img { + vertical-align: middle; +} +.file_editor { + width: 710px; + /*height: 410px;*/ + margin: 0px auto; + padding: 0px; + background: url(../rbfmimg/bg_page.png) repeat-y center top; +} +.file_editor .header { + height: 35px; + margin: 0px 0px 3px; + padding: 0px; + background: url(../rbfmimg/bg_header.png) repeat-y center top; +} +.file_editor .footer { + background: url(../rbfmimg/bg_footer.png) no-repeat center bottom; + height: 12px; +} +.file_editor .header .close { + width: 41px; + height: 17px; + margin: 5px 0px 0px 645px; + padding: 0px; + cursor:pointer; +} +.file_editor #path { + margin: 0px auto; + padding: 0px; + width: 670px; + height: 20px; +} +.file_editor #path #location { + width: 625px; + vertical-align: middle; + border-top: 1px solid #878787; + border-right: 1px solid #878787; + border-bottom: 1px solid #878787; + border-left: 2px solid #878787; + padding-left: 2px; +} +.file_editor #path #go { + vertical-align: middle; + cursor:pointer; +} +.file_editor .container { + margin: 5px auto; + padding: 5px; + height: 280px; + overflow: auto; + position: relative; + border: 1px solid #878787; + width: 670px; +} +.file_editor .container .list tr td{ + cursor: default; + white-space: nowrap; + padding-right: 5px; + height: 20px; + text-align: left; + vertical-align: top; + padding-left: 5px; +} +.file_editor .container .list tr th{ + cursor: default; + text-align: left; + background: #f0f0f0; +} +.file_editor .container .list tr{ + background: #FFFFFF; +} +.file_editor .container .list tr:hover { + background: #9AE6FC; +} +.rename_field { + display:none; + margin: 0px; + padding: 0px; +} +.rename_field .input_name { + background: #FFFFFF; + width: 99%; + border-top: 1px solid #666666; + border-right: 1px solid #CCCCCC; + border-bottom: 1px solid #CCCCCC; + border-left: 1px solid #666666; + margin: 0px; + padding: 0px; + font: 11px Arial, Helvetica, sans-serif; +} +.column1 { + margin: 0px; + padding: 0px; + height: 20px; + width: 16px; +} +.file_editor .results { + height: 0px; + display: none; + width: 0px; + border-top: none; + border-right: none; + border-bottom: none; + border-left: none; + margin: 0px; + padding: 0px; +} +.fileperms{ + font-family: "Courier New", Courier, monospace; +} +.form_upload{ + display: block; + padding: 5px; + background: #C6EBFD; + text-align: left; + border: 1px solid #878787; + width: 670px; + margin: 3px auto; +} +.form_upload input{ + vertical-align: middle; +} +.url_path { + margin-left: 20px; +} +.file_editor .header .logout { + float: right; + margin-top: 5px; + padding-right: 15px; + color: #FF0000; +} +.file_editor .header .logout a{ + color: #FF0000; +} diff --git a/config/filemgr/rbfminc/functions.tmp b/config/filemgr/rbfminc/functions.tmp new file mode 100644 index 00000000..f06ee69c --- /dev/null +++ b/config/filemgr/rbfminc/functions.tmp @@ -0,0 +1,189 @@ + 'image/jpeg', + 'gif' => 'image/gif', + 'png' => 'image/png', + 'bmp' => 'image/bmp', + 'tif|tiff' => 'image/tiff', + 'ico' => 'image/x-icon', + 'asf|asx|wax|wmv|wmx' => 'video/asf', + 'avi' => 'video/avi', + 'mov|qt' => 'video/quicktime', + 'mpeg|mpg|mpe' => 'video/mpeg', + 'txt|c|cc|h' => 'text/plain', + 'rtx' => 'text/richtext', + 'css' => 'text/css', + 'htm|html' => 'text/html', + 'php|php3|' => 'application/php', + 'mp3|mp4' => 'audio/mpeg', + 'ra|ram' => 'audio/x-realaudio', + 'wav' => 'audio/wav', + 'ogg' => 'audio/ogg', + 'mid|midi' => 'audio/midi', + 'wma' => 'audio/wma', + 'rtf' => 'application/rtf', + 'js' => 'application/javascript', + 'pdf' => 'application/pdf', + 'doc' => 'application/msword', + 'pot|pps|ppt' => 'application/vnd.ms-powerpoint', + 'wri' => 'application/vnd.ms-write', + 'xla|xls|xlt|xlw' => 'application/vnd.ms-excel', + 'mdb' => 'application/vnd.ms-access', + 'mpp' => 'application/vnd.ms-project', + 'swf' => 'application/x-shockwave-flash', + 'class' => 'application/java', + 'tar' => 'application/x-tar', + 'zip' => 'application/zip', + 'gz|gzip' => 'application/x-gzip', + 'exe' => 'application/x-msdownload', + // openoffice formats + 'odt' => 'application/vnd.oasis.opendocument.text', + 'odp' => 'application/vnd.oasis.opendocument.presentation', + 'ods' => 'application/vnd.oasis.opendocument.spreadsheet', + 'odg' => 'application/vnd.oasis.opendocument.graphics', + 'odc' => 'application/vnd.oasis.opendocument.chart', + 'odb' => 'application/vnd.oasis.opendocument.database', + 'odf' => 'application/vnd.oasis.opendocument.formula', + + )); + + $type = false; + $ext = false; + + foreach ($mimes as $ext_preg => $mime_match) { + $ext_preg = '!\.(' . $ext_preg . ')$!i'; + if ( preg_match($ext_preg, $filename, $ext_matches) ) { + $type = $mime_match; + $ext = $ext_matches[1]; + break; + } + } + + return compact('ext', 'type'); +} + + + +function roundsize($size){ + $i=0; + $iec = array("B", "Kb", "Mb", "Gb", "Tb"); + while (($size/1024)>1) { + $size=$size/1024; + $i++;} + return(round($size,1)." ".$iec[$i]); +} + +?> \ No newline at end of file diff --git a/config/filemgr/rbfminc/index.html b/config/filemgr/rbfminc/index.html new file mode 100644 index 00000000..e69de29b diff --git a/config/filemgr/rbfminc/rename.tmp b/config/filemgr/rbfminc/rename.tmp new file mode 100644 index 00000000..6d56c449 --- /dev/null +++ b/config/filemgr/rbfminc/rename.tmp @@ -0,0 +1,38 @@ + + +Rename + + + + + + \ No newline at end of file diff --git a/config/filemgr/rbfminc/session.tmp b/config/filemgr/rbfminc/session.tmp new file mode 100644 index 00000000..8f3a666e --- /dev/null +++ b/config/filemgr/rbfminc/session.tmp @@ -0,0 +1,32 @@ + \ No newline at end of file -- cgit v1.2.3