| Server IP : 208.122.213.31 / Your IP : 216.73.216.45 Web Server : Apache System : Linux msd6191.mjhst.com 4.18.0-553.137.1.el8_10.x86_64 #1 SMP Wed Jun 24 11:40:24 UTC 2026 x86_64 User : WHMCS_MIA_382 ( 1001) PHP Version : 7.4.33 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/httpd/html/store.tiacyrusxxx.com/public_html/dev/TSCP2/ |
Upload File : |
<?php
$sx=$_GET['sx'];
$sy=$_GET['sy'];
$ex=$_GET['ex'];
$ey=$_GET['ey'];
$T_HEIGHT = $_GET['T_HEIGHT'];
$T_WIDTH = $_GET['T_WIDTH'];
$modelsroot = "/web/sites/taj/xfanclubs.com/content/models/";
$source = $modelsroot.$_GET['save'];
if(is_numeric($sx)&&is_numeric($sy)&&is_numeric($ex)&&is_numeric($ey)&&is_numeric($sx)&&file_exists($source)&&is_file($source)){
$main_img=imagecreatefromjpeg($source);
$height_if_img = $ey-$sy;
$width_if_img = $ex-$sx;
$img_cropped = imagecreatetruecolor($width_if_img, $height_if_img);
imagecopy($img_cropped, $main_img, 0, 0,$sx, $sy, $width_if_img,$height_if_img);
if(imagesx($img_cropped) > $T_WIDTH){
$height_if_img = ($T_WIDTH * imagesy($img_cropped))/imagesx($img_cropped);
$img_resized = imagecreatetruecolor($T_WIDTH, $height_if_img);
imagecopyresampled($img_resized, $img_cropped, 0, 0, 0, 0, $T_WIDTH, $height_if_img, imagesx($img_cropped), imagesy($img_cropped));
}
imagejpeg($img_resized,$source,90);
Header("Content-type: image/jpeg");
imagejpeg($img_resized);
}
?>