From 314b5dff82f629bfcb5115e16a9ff0c9f73af984 Mon Sep 17 00:00:00 2001 From: doktornotor Date: Wed, 12 Aug 2015 00:20:05 +0200 Subject: Rename file_manager.tmp to file_manager.php --- config/filemgr/file_manager.php | 595 ++++++++++++++++++++++++++++++++++++++++ config/filemgr/file_manager.tmp | 595 ---------------------------------------- 2 files changed, 595 insertions(+), 595 deletions(-) create mode 100644 config/filemgr/file_manager.php delete mode 100644 config/filemgr/file_manager.tmp (limited to 'config/filemgr') diff --git a/config/filemgr/file_manager.php b/config/filemgr/file_manager.php new file mode 100644 index 00000000..8c5ee1c5 --- /dev/null +++ b/config/filemgr/file_manager.php @@ -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); + +?> + + + + + + + + + + +
+
+ +
+
+ + +
+

URL path:
+
+
+ Upload a file in current folder: + +     + + Replace existing file     + + +
+
+     Create new folder here; Folder name: + + +
+ +
[ open OPEN IN BROWSER ]     + [ download DOWNLOAD ]     + [ rename RENAME ]     + [ view VIEW/EDIT ]     + [ delete DELETE ]
+ + + File: {$current_folder}{$_GET['f']}
+
+ + + + +"; + } + +?> + +
+Created by TomSchaefer + +// + + "; +} +if($redirect){ + echo " + + "; +} +?> + + + + + + + + +Login + +



+
+
+
+ + + + + + + + + + + + +
Username:
Password: +
+ +
+
+ + + + + diff --git a/config/filemgr/file_manager.tmp b/config/filemgr/file_manager.tmp deleted file mode 100644 index 8c5ee1c5..00000000 --- a/config/filemgr/file_manager.tmp +++ /dev/null @@ -1,595 +0,0 @@ - 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); - -?> - - - - - - - - - - -
-
- -
-
- - -
-

URL path:
-
-
- Upload a file in current folder: - -     - - Replace existing file     - - -
-
-     Create new folder here; Folder name: - - -
- -
[ open OPEN IN BROWSER ]     - [ download DOWNLOAD ]     - [ rename RENAME ]     - [ view VIEW/EDIT ]     - [ delete DELETE ]
- - - File: {$current_folder}{$_GET['f']}
-
- - - - -"; - } - -?> - -
-Created by TomSchaefer - -// - - "; -} -if($redirect){ - echo " - - "; -} -?> - - - - - - - - -Login - -



-
-
-
- - - - - - - - - - - - -
Username:
Password: -
- -
-
- - - - - -- cgit v1.2.3