aboutsummaryrefslogtreecommitdiffstats
path: root/config/filemgr/rbfminc/rename.tmp
diff options
context:
space:
mode:
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