case "c_small": $new_width = 40; $new_height = 40; break; case "c_medium": default: $new_width = 270; $new_height = 180; break; case "c_large": $new_width = 0; $new_height = 0; break; } G::logMessage("CROP :: " . $filename); $data = AdminUtils::cropProductImage($filename, $width, $height, $x, $y, $new_width, $new_height); } else { $data = array(); $data["result"] = false; $data["errors"] = array(RenderUtils::renderError("Access denied!")); } break; case COPY_IMAGE_TMP: init("admin/images"); $errors = array(); $result = false; if (G::$user->isOrHigher(U_MODERATOR)) { $filename = $_POST["img_filename"]; $type = $_POST["image_type"]; $new_filename = trim($_POST["filename"]); $new_filename = G::$db->quote(strip_tags($new_filename));