aboutsummaryrefslogtreecommitdiffstats
path: root/config/filemgr/rbfminc/rename.tmp
diff options
context:
space:
mode:
authorTom Schaefer <tom@tomschaefer.org>2010-07-26 11:55:01 -0400
committerTom Schaefer <tom@tomschaefer.org>2010-07-26 11:55:01 -0400
commitdf7c02eb588a9a5f4b14401ea9bde564132b4e0e (patch)
treecb3f412ec78ae8b97ac5a245338f407eba4fbd90 /config/filemgr/rbfminc/rename.tmp
parent0e9d556a1c497f9f3bf52e710447541325d69ec6 (diff)
downloadpfsense-packages-df7c02eb588a9a5f4b14401ea9bde564132b4e0e.tar.gz
pfsense-packages-df7c02eb588a9a5f4b14401ea9bde564132b4e0e.tar.bz2
pfsense-packages-df7c02eb588a9a5f4b14401ea9bde564132b4e0e.zip
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~
Diffstat (limited to 'config/filemgr/rbfminc/rename.tmp')
-rw-r--r--config/filemgr/rbfminc/rename.tmp38
1 files changed, 38 insertions, 0 deletions
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 @@
+<?php
+include "config.php";
+include "session.php";
+
+if($user_login == 'ok'){
+
+ include "functions.php";
+
+?><html>
+<head>
+<title>Rename</title>
+</head>
+<body>
+<script language="javascript">
+<?
+//print_r($_POST);
+if($_POST['o'] != $_POST['n']){
+ if(@rename($_POST['cf'].$_POST['o'], $_POST['cf'].$_POST['n'])){
+ if($_POST['t'] == 'd'){
+ echo "alert('Directory successfuly renamed from \"{$_POST['o']}\" to \"{$_POST['n']}\"');";
+ }else{
+ echo "alert('File successfuly renamed from \"{$_POST['o']}\" to \"{$_POST['n']}\"');";
+ }
+ }else{
+ echo "
+ alert('Rename error');
+ window.parent.location.href = window.parent.location.href;
+ ";
+ }
+}
+
+?>
+</script>
+</body>
+</html>
+<?php
+}
+?> \ No newline at end of file