$base_dir = $paths . substr_replace($path, '', 0, strlen($current_path)); if (is_dir($base_dir)) { deleteDir($base_dir); } } } } } break; case 'create_folder': if ($create_folders) { file_put_contents("test.txt", $path); create_folder($path, $path_thumb); $uid = $_SESSION['uuid']; $tags = "0"; $fm->upload($uid, $path, "0", $tags); } break; case 'rename_folder': if ($rename_folders) { $name = fix_filename($name, $transliteration, $convert_spaces, $replace_with); $name = str_replace('.', '', $name); if (!empty($name)) { if (!rename_folder($path, $name, $transliteration, $convert_spaces)) { die(lang_Rename_existing_folder); } $new_path = fix_dirname($path) . "/" . $name; $fm->changePath($new_path, $path); my_scandir($new_path, $fm, $path); rename_folder($path_thumb, $name, $transliteration, $convert_spaces); if ($fixed_image_creation) {
} $_FILES['file']['name'] = $info['filename'] . "_" . $i . "." . $info['extension']; } $targetFile = $targetPath . $_FILES['file']['name']; $targetFileThumb = $targetPathThumb . $_FILES['file']['name']; // check if image (and supported) if (in_array(fix_strtolower($info['extension']), $ext_img)) { $is_img = TRUE; } else { $is_img = FALSE; } // uploadfmysql/sql.php // $targetFile=iconv("gb2312","utf-8",$targetFile); move_uploaded_file($tempFile, $targetFile); chmod($targetFile, 0755); $sqlResult = $fm->upload($uid, $targetFile, $info['extension'], $tags); file_put_contents("new_upload_file.fm", $targetFile); $userPrivilege = $u->getPrivilege($uid); $userPrivilege = $userPrivilege['privilege']; if ($userPrivilege === '0') { $fm->noDisplay($targetFile); } if ($is_img) { $memory_error = FALSE; if (!create_img($targetFile, $target0FileThumb, 122, 91)) { $memory_error = FALSE; } else { // TODO something with this long function baaaah... 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, $relative_image_creation_option, $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, $fixed_image_creation_option)) { $memory_error = FALSE; } else {