3 if (
$_SESSION[
'RF'][
"verify"] !=
"RESPONSIVEfilemanager") die(
'forbiden');
11 || strpos($_POST[
'path'],
'/')===0
12 || strpos($_POST[
'path'],
'../')!==FALSE
13 || strpos($_POST[
'path'],
'./')===0)
19 if (isset($_GET[
'lang']) && $_GET[
'lang'] !=
'undefined' && $_GET[
'lang']!=
'')
22 if (is_readable(
'lang/' .
$path_parts[
'basename'].
'.php'))
40 if (file_exists(
$path.
"config.php"))
42 require_once(
$path.
"config.php");
51 if (isset($_POST[
'name']))
53 $name = $_POST[
'name'];
54 if (strpos(
$name,
'../') !== FALSE) die(
'wrong name');
58 if (isset(
$info[
'extension']) && !(isset($_GET[
'action']) && $_GET[
'action']==
'delete_folder') && !in_array(strtolower(
$info[
'extension']),
$ext))
60 die(
'wrong extension');
63 if (isset($_GET[
'action']))
65 switch($_GET[
'action'])
78 if (file_exists(
$info[
'dirname'].
"/".
$path.$relative_image_creation_name_to_prepend[$k].$info[
'filename'].$relative_image_creation_name_to_append[$k].
".".
$info[
'extension']))
80 unlink($info[
'dirname'].
"/".
$path.$relative_image_creation_name_to_prepend[$k].$info[
'filename'].$relative_image_creation_name_to_append[$k].
".".$info[
'extension']);
92 if (file_exists($base_dir.$fixed_image_creation_name_to_prepend[$k].$info[
'filename'].$fixed_image_creation_to_append[$k].
".".
$info[
'extension']))
94 unlink($base_dir.$fixed_image_creation_name_to_prepend[$k].$info[
'filename'].$fixed_image_creation_to_append[$k].
".".$info[
'extension']);
100 case 'delete_folder':
113 if ($paths!=
"" && $paths[strlen($paths)-1] !=
"/") $paths.=
"/";
116 if (is_dir($base_dir))
deleteDir($base_dir);
122 case 'create_folder':
128 case 'rename_folder':
139 if ($paths!=
"" && $paths[strlen($paths)-1] !=
"/") $paths.=
"/";
166 if ($paths!=
"" && $paths[strlen($paths)-1] !=
"/") $paths.=
"/";
168 $base_dir = $paths.substr_replace(
$info[
'dirname'].
"/",
'', 0, strlen(
$current_path));
169 if (file_exists($base_dir.$fixed_image_creation_name_to_prepend[$k].$info[
'filename'].$fixed_image_creation_to_append[$k].
".".
$info[
'extension']))
181 case 'duplicate_file':
196 if ($paths!=
"" && $paths[strlen($paths)-1] !=
"/") $paths.=
"/";
200 if (file_exists($base_dir.$fixed_image_creation_name_to_prepend[$k].$info[
'filename'].$fixed_image_creation_to_append[$k].
".".
$info[
'extension']))
213 case 'paste_clipboard':
214 if ( ! isset(
$_SESSION[
'RF'][
'clipboard_action'],
$_SESSION[
'RF'][
'clipboard'][
'path'],
$_SESSION[
'RF'][
'clipboard'][
'path_thumb'])
215 ||
$_SESSION[
'RF'][
'clipboard_action'] ==
''
216 ||
$_SESSION[
'RF'][
'clipboard'][
'path'] ==
''
217 ||
$_SESSION[
'RF'][
'clipboard'][
'path_thumb'] ==
'')
225 $pinfo = pathinfo($data[
'path']);
228 if ($pinfo[
'dirname'] == rtrim(
$path,
'/')) {
233 if (is_dir($data[
'path']) && strpos(
$path, $data[
'path']) !== FALSE){
263 if (is_dir($data[
'path']) === TRUE){
270 $_SESSION[
'RF'][
'clipboard'][
'path'] = NULL;
271 $_SESSION[
'RF'][
'clipboard'][
'path_thumb'] = NULL;
272 $_SESSION[
'RF'][
'clipboard_action'] = NULL;
$_SESSION['RF']["verify"]
rename_file($old_path, $name, $transliteration)
rcopy($source, $destination, $is_rec=FALSE)
const lang_Function_Disabled
if($mtime===false) if(isset($_SERVER['HTTP_IF_MODIFIED_SINCE'])) $path_parts
$relative_path_from_current_pos
if($thumb_pos!=0||strpos($_POST['path_thumb'],'../', strlen($thumbs_base_path)+$thumb_pos)!==FALSE||strpos($_POST['path'],'/')===0||strpos($_POST['path'],'../')!==FALSE||strpos($_POST['path'],'./')===0) $language_file
rrename($source, $destination, $is_rec=FALSE)
is_function_callable($name)
create_folder($path=false, $path_thumbs=false)
rename_folder($old_path, $name, $transliteration)
$fixed_image_creation_name_to_prepend
if(isset($_POST['name'])) $info
const lang_Rename_existing_folder
fix_filename($str, $transliteration)
$fixed_path_from_filemanager
const lang_Rename_existing_file
duplicate_file($old_path, $name)
fix_path($path, $transliteration)
rrename_after_cleaner($source)