3 if(
$_SESSION[
'RF'][
"verify"] !=
"RESPONSIVEfilemanager") die(
'forbiden');
28 if(file_exists(
$path.
"config.php")){
29 require_once(
$path.
"config.php");
36 if (!empty($_FILES)) {
37 $info=pathinfo($_FILES[
'file'][
'name']);
39 $tempFile = $_FILES[
'file'][
'tmp_name'];
45 if(file_exists($targetPath.$_FILES[
'file'][
'name'])){
47 $info=pathinfo($_FILES[
'file'][
'name']);
48 while(file_exists($targetPath.$info[
'filename'].
"_".
$i.
".".
$info[
'extension'])) {
51 $_FILES[
'file'][
'name']=
$info[
'filename'].
"_".
$i.
".".
$info[
'extension'];
53 $targetFile = $targetPath. $_FILES[
'file'][
'name'];
54 $targetFileThumb = $targetPathThumb. $_FILES[
'file'][
'name'];
60 move_uploaded_file($tempFile,$targetFile);
61 chmod($targetFile, 0755);
68 if(!
new_thumbnails_creation($targetPath,$targetFile,$_FILES[
'file'][
'name'],
$current_path,
$relative_image_creation,
$relative_path_from_current_pos,
$relative_image_creation_name_to_prepend,
$relative_image_creation_name_to_append,
$relative_image_creation_width,
$relative_image_creation_height,
$fixed_image_creation,
$fixed_path_from_filemanager,
$fixed_image_creation_name_to_prepend,
$fixed_image_creation_to_append,
$fixed_image_creation_width,
$fixed_image_creation_height)){
71 $imginfo =getimagesize($targetFile);
72 $srcWidth = $imginfo[0];
73 $srcHeight = $imginfo[1];
103 create_img_gd($targetFile, $targetFile, $srcWidth, $srcHeight);
109 header(
'HTTP/1.1 406 Not enought Memory',
true,406);
114 header(
'HTTP/1.1 406 file not permitted',
true,406);
118 header(
'HTTP/1.1 405 Bad Request',
true, 405);
121 if(isset($_POST[
'submit'])){
122 $query = http_build_query(array(
123 'type' => $_POST[
'type'],
124 'lang' => $_POST[
'lang'],
125 'popup' => $_POST[
'popup'],
126 'field_id' => $_POST[
'field_id'],
127 'fldr' => $_POST[
'fldr'],
129 header(
"location: dialog.php?" .
$query);
$fixed_image_creation_height
$relative_image_creation_name_to_prepend
$_SESSION['RF']["verify"]
$relative_image_creation_height
new_thumbnails_creation($targetPath, $targetFile, $name, $current_path, $relative_image_creation, $relative_path_from_current_pos, $relative_image_creation_name_to_prepend, $relative_image_creation_name_to_append, $relative_image_creation_width, $relative_image_creation_height, $fixed_image_creation, $fixed_path_from_filemanager, $fixed_image_creation_name_to_prepend, $fixed_image_creation_to_append, $fixed_image_creation_width, $fixed_image_creation_height)
create_img_gd($imgfile, $imgthumb, $newwidth, $newheight="")
$relative_path_from_current_pos
$relative_image_creation_name_to_append
$fixed_image_creation_name_to_prepend
$fixed_image_creation_to_append
if(isset($_POST['name'])) $info
$relative_image_creation_width
fix_filename($str, $transliteration)
$fixed_path_from_filemanager
$fixed_image_creation_width