$imageTools = array(); $imageTools = explode(',', $config['thumbnail.image_tools']); $information = array(); $information = explode(',', $config['thumbnail.information']); $data['js'] = getRequestParam("js", ""); $data['formname'] = getRequestParam("formname", ""); $data['elementnames'] = getRequestParam("elementnames", ""); $data['disabled_tools'] = $config['general.disabled_tools']; $data['image_tools'] = $imageTools; $data['toolbar'] = $tools; $data['full_path'] = $path; $data['root_path'] = $rootpath; $data['errorMsg'] = "dfdf"; //addslashes($errorMsg); $data['selectedPath'] = $selectedPath; $data['dirlist'] = $dirList; $data['anchor'] = $anchor; $data['exif_support'] = exifExists(); $data['gd_support'] = $isGD; $data['edit_enabled'] = checkBool($config["thumbnail.gd.enabled"]); $data['demo'] = checkBool($config["general.demo"]); $data['demo_msg'] = $config["general.demo_msg"]; $data['information'] = $information; $data['extension_image'] = checkBool($config["thumbnail.extension_image"]); $data['insert'] = checkBool($config["thumbnail.insert"]); $data['filemanager_urlprefix'] = removeTrailingSlash($config["filemanager.urlprefix"]); $data['thumbnail_width'] = $config['thumbnail.width']; $data['thumbnail_height'] = $config['thumbnail.height']; $data['thumbnail_border_style'] = $config['thumbnail.border_style']; $data['thumbnail_margin_around'] = $config['thumbnail.margin_around']; renderPage("images.tpl.php", $data);
if (!$fileFilterA->accept($file) || !$fileFilterB->accept($file) || $toBig) { $file->delete(); $data['errorMsg'] = $msg; } else { $thumbnailArray = array(); $thumbnailArray[] = "jpeg"; $thumbnailArray[] = "jpg"; $thumbnailArray[] = "gif"; $thumbnailArray[] = "png"; $fileInfo = $file->getInfo(); $ext = $fileInfo['extension']; if (in_array(strtolower($ext), $thumbnailArray)) { if ($config['upload.create_thumbnail'] == true and $config['thumbnail.gd.enabled'] == true and $config['thumbnail.gd.folder'] != "") { $imageutils = new $config['thumbnail'](); // if use_exif is enabled and present, dont generate an image. if ($config['thumbnail.use_exif'] == true and exifExists()) { $exif = @exif_read_data($file->getAbsolutePath(), "THUMBNAIL", true, false); if ($exit !== false) { continue; } } if ($config['thumbnail.scale_mode'] == "percentage") { $imageSize = @getimagesize($file->getAbsolutePath()); $imageSize = imageResize($imageSize[0], $imageSize[1], $config['thumbnail.width'], $config['thumbnail.height']); $width = $imageSize['width']; $height = $imageSize['height']; } else { $width = $config['thumbnail.width']; $height = $config['thumbnail.height']; } // We need to verify that we are not already inside a Thumbnail folder.