( ′∀`)σ≡σ☆))Д′)レ(゚∀゚;)ヘ=З=З=Зε≡(ノ´_ゝ`)ノ 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/codeTwitter.php
<?php  
$themeid = (int)$_GET["theme_id"];
 $row = getParamJSONTheme($themeid);

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

 }
else
{
$width =600;
  $height = 600;
}


//display grid
//makeGrid($background,$gridWidth, $gridHeight, $width, $height)


/* makeGrid($background,10, 10, $width,$height);*/

//Make rectangle
// makeRectangle($background,$sizeW, $sizeH, $posX, $posY,$gridWidth,$gridHeight, $width, $height)

/*makeRectangle($background,5, 5, 3, 2,10,10, $width,$height);	*/

 
 
  $count = $rowCount; 	 
  
/* MakeGridPictureTwitter($background, $brand, 100,$sizeW, $sizeH, $posX, $posY,$gridWidth,$gridHeight, $width, $height);	*/		
	
	
			   switch ($count) {
				case "1": //1
				 $row = getEachTweetPicture("$tweetIDX",0);
				 $url = $row["tweet_media"];
				  
				MakeGridPictureTwitter($background, $url, 100,10,10, 0, 0,10,10, $width,$height);
                 
					break;
				case "2"://2
				 $row = getEachTweetPicture("$tweetIDX",0);
				 $url = $row["tweet_media"];
                    MakeGridPictureTwitter($background, $url, 100,5,10, 0, 0,10,10, $width,$height);
				 $row = getEachTweetPicture("$tweetIDX",1);
				 $url = $row["tweet_media"];
                    MakeGridPictureTwitter($background, $url, 100,5,10, 5, 0,10,10, $width,$height); 
					break;
				case "3"://3
				 $row = getEachTweetPicture("$tweetIDX",0);
				 $url = $row["tweet_media"];
                    MakeGridPictureTwitter($background, $url, 100,3,10, 0, 0,10,10, $width,$height);
				 $row = getEachTweetPicture("$tweetIDX",1);
				 $url = $row["tweet_media"];
                    MakeGridPictureTwitter($background, $url, 100,4,10, 3, 0,10,10, $width,$height);
				 $row = getEachTweetPicture("$tweetIDX",2);
				 $url = $row["tweet_media"];
                    MakeGridPictureTwitter($background, $url, 100,3,10, 7, 0,10,10, $width,$height); 
 					break;


				case "4": // 4
				 $row = getEachTweetPicture("$tweetIDX",0);
				 $url = $row["tweet_media"];
                     MakeGridPictureTwitter($background, $url, 100, 5,5,0, 0,10,10, $width,$height);
				 $row = getEachTweetPicture("$tweetIDX",1);
				 $url = $row["tweet_media"];
                    MakeGridPictureTwitter($background, $url, 100, 5,5, 5, 0,10,10, $width,$height);
				 $row = getEachTweetPicture("$tweetIDX",2);
				 $url = $row["tweet_media"];
                    MakeGridPictureTwitter($background, $url, 100,5,5, 0, 5,10,10, $width,$height);
				 $row = getEachTweetPicture("$tweetIDX",3);
				 $url = $row["tweet_media"];
                    
					MakeGridPictureTwitter($background, $url, 100,5,5, 5, 5,10,10, $width,$height);
					 

 					break;


				case "5"://5


				 $row = getEachTweetPicture("$tweetIDX",0);
				 $url = $row["tweet_media"];
	                    MakeGridPictureTwitter($background, $url, 100,3,5, 0, 0,10,10, $width,$height);
				 $row = getEachTweetPicture("$tweetIDX",1);
				 $url = $row["tweet_media"];
                    MakeGridPictureTwitter($background, $url, 100,4,10, 3, 0,10,10, $width,$height);
				 $row = getEachTweetPicture("$tweetIDX",2);
				 $url = $row["tweet_media"];
                    MakeGridPictureTwitter($background, $url, 100,3,5, 7, 0,10,10, $width,$height);
				 $row = getEachTweetPicture("$tweetIDX",3);
				 $url = $row["tweet_media"];
                    MakeGridPictureTwitter($background, $url, 100,3,5, 0, 5,10,10, $width,$height);
				 $row = getEachTweetPicture("$tweetIDX",4);
				 $url = $row["tweet_media"];
					 MakeGridPictureTwitter($background, $url, 100,3,5, 7, 5,10,10, $width,$height);
             
				  
				break;


				case "6"://6
				 $row = getEachTweetPicture("$tweetIDX",0);
				 $url = $row["tweet_media"];
                    MakeGridPictureTwitter($background, $url, 100,3,5, 0, 0,10,10, $width,$height);
				 $row = getEachTweetPicture("$tweetIDX",1);
				 $url = $row["tweet_media"];
                    MakeGridPictureTwitter($background, $url, 100,4,5, 3, 0,10,10, $width,$height);
				 $row = getEachTweetPicture("$tweetIDX",2);
				 $url = $row["tweet_media"];
                    MakeGridPictureTwitter($background, $url, 100,3,5, 7, 0,10,10, $width,$height);
				 $row = getEachTweetPicture("$tweetIDX",3);
				 $url = $row["tweet_media"];
                    MakeGridPictureTwitter($background, $url, 100,3,5, 0, 5,10,10, $width,$height);
				 $row = getEachTweetPicture("$tweetIDX",4);
				 $url = $row["tweet_media"];
                    MakeGridPictureTwitter($background, $url, 100,4,5, 3, 5,10,10, $width,$height);
				 $row = getEachTweetPicture("$tweetIDX",5);
				 $url = $row["tweet_media"];
                    MakeGridPictureTwitter($background, $url, 100,3,5, 7, 5,10,10, $width,$height); 
 					break;
					case "7"://7
				 $row = getEachTweetPicture("$tweetIDX",0);
				 $url = $row["tweet_media"];
                    MakeGridPictureTwitter($background, $url, 100,3,5, 0, 0,10,10, $width,$height);
				 $row = getEachTweetPicture("$tweetIDX",M_1_PI);
				 $url = $row["tweet_media"];
                    MakeGridPictureTwitter($background, $url, 100,4,3, 3, 0,10,10, $width,$height);

				 $row = getEachTweetPicture("$tweetIDX",2);
				 $url = $row["tweet_media"];
                    MakeGridPictureTwitter($background, $url, 100,4,3, 3, 3,10,10, $width,$height);
				 $row = getEachTweetPicture("$tweetIDX",3);
				 $url = $row["tweet_media"];
                    MakeGridPictureTwitter($background, $url, 100,4,4, 3, 3,10,10, $width,$height);
				 $row = getEachTweetPicture("$tweetIDX",4);
				 $url = $row["tweet_media"];
                    MakeGridPictureTwitter($background, $url, 100,3,5, 7, 0,10,10, $width,$height);
				 $row = getEachTweetPicture("$tweetIDX",5);
				 $url = $row["tweet_media"];
                    MakeGridPictureTwitter($background, $url, 100,3,5, 0, 5,10,10, $width,$height);
				 $row = getEachTweetPicture("$tweetIDX",6);
				 $url = $row["tweet_media"];
                    MakeGridPictureTwitter($background, $url, 100,3,5, 7, 5,10,10, $width,$height);
		 
					 
 					break;


 				case "8":
				  	 
				 $row = getEachTweetPicture("$tweetIDX",0);
				 $url = $row["tweet_media"];
                    MakeGridPictureTwitter($background, $url, 100,3,3, 0, 0,10,10, $width,$height);
				 $row = getEachTweetPicture("$tweetIDX",1);
				 $url = $row["tweet_media"];
                    MakeGridPictureTwitter($background, $url, 100,4,3, 3, 0,10,10, $width,$height);
				 $row = getEachTweetPicture("$tweetIDX",2);
				 $url = $row["tweet_media"];
                    MakeGridPictureTwitter($background, $url, 100,3,3, 7, 0,10,10, $width,$height);
				 $row = getEachTweetPicture("$tweetIDX",3);
				 $url = $row["tweet_media"];
                    MakeGridPictureTwitter($background, $url, 100,5,4, 0, 3,10,10, $width,$height);
				 $row = getEachTweetPicture("$tweetIDX",4);
				 $url = $row["tweet_media"];
                    MakeGridPictureTwitter($background, $url, 100,5,4, 5, 3,10,10, $width,$height);
				 $row = getEachTweetPicture("$tweetIDX",5);
				 $url = $row["tweet_media"];
                    MakeGridPictureTwitter($background, $url, 100,4,3, 3, 7,10,10, $width,$height);
				 $row = getEachTweetPicture("$tweetIDX",6);
				 $url = $row["tweet_media"];
                    MakeGridPictureTwitter($background, $url, 100,3,3, 0, 7,10,10, $width,$height);
				 $row = getEachTweetPicture("$tweetIDX",7);
				 $url = $row["tweet_media"];
                    MakeGridPictureTwitter($background, $url, 100,3,3, 7, 7,10,10, $width,$height);
					 
 					break;


 				case "9":
				 $row = getEachTweetPicture("$tweetIDX",0);
				 $url = $row["tweet_media"];
                    MakeGridPictureTwitter($background, $url, 100,3,3, 0, 0,10,10, $width,$height);
				 $row = getEachTweetPicture("$tweetIDX",1);
				 $url = $row["tweet_media"];
                    MakeGridPictureTwitter($background, $url, 100,4,3, 3, 0,10,10, $width,$height);
				 $row = getEachTweetPicture("$tweetIDX",2);
				 $url = $row["tweet_media"];
                    MakeGridPictureTwitter($background, $url, 100,3,3, 7, 0,10,10, $width,$height);
				 $row = getEachTweetPicture("$tweetIDX",3);
				 $url = $row["tweet_media"];
                     MakeGridPictureTwitter($background, $url, 100,3,4, 0, 3,10,10, $width,$height);
				 $row = getEachTweetPicture("$tweetIDX",4);
				 $url = $row["tweet_media"];
                    MakeGridPictureTwitter($background, $url, 100,4,4, 3, 3,10,10, $width,$height);
				 $row = getEachTweetPicture("$tweetIDX",5);
				 $url = $row["tweet_media"];
                    MakeGridPictureTwitter($background, $url, 100,3,4,7, 3,10,10, $width,$height);
				 $row = getEachTweetPicture("$tweetIDX",6);
				 $url = $row["tweet_media"];
                    MakeGridPictureTwitter($background, $url, 100,4,3, 3, 7,10,10, $width,$height);
				 $row = getEachTweetPicture("$tweetIDX",7);
				 $url = $row["tweet_media"];
                    MakeGridPictureTwitter($background, $url, 100,3,3, 0, 7,10,10, $width,$height);
				 $row = getEachTweetPicture("$tweetIDX",8);
				 $url = $row["tweet_media"];
                    MakeGridPictureTwitter($background, $url, 100,3,3, 7, 7,10,10, $width,$height);

				 
 					break;

 				case "10":
				  
                    MakeGridPictureTwitter($background, $url, 100,7,3, 0, 0,10,10, $width,$height);
				 $row = getEachTweetPicture("$tweetIDX",0);
				 $url = $row["tweet_media"];
                    MakeGridPictureTwitter($background, $url, 100,3,3, 7, 0,10,10, $width,$height);
				 $row = getEachTweetPicture("$tweetIDX",0);
				 $url = $row["tweet_media"];
                     MakeGridPictureTwitter($background, $url, 100,3,2, 0, 3,10,10, $width,$height);
				 $row = getEachTweetPicture("$tweetIDX",0);
				 $url = $row["tweet_media"];
                    MakeGridPictureTwitter($background, $url, 100,4,2, 3, 3,10,10, $width,$height);
				 $row = getEachTweetPicture("$tweetIDX",0);
				 $url = $row["tweet_media"];
                    MakeGridPictureTwitter($background, $url, 100,3,2,7, 3,10,10, $width,$height);
				 $row = getEachTweetPicture("$tweetIDX",0);
				 $url = $row["tweet_media"];
                    MakeGridPictureTwitter($background, $url, 100,3,2, 0, 5,10,10, $width,$height);
				 $row = getEachTweetPicture("$tweetIDX",0);
				 $url = $row["tweet_media"];
                    MakeGridPictureTwitter($background, $url, 100,4,2, 3, 5,10,10, $width,$height);
				 $row = getEachTweetPicture("$tweetIDX",0);
				 $url = $row["tweet_media"];
                    MakeGridPictureTwitter($background, $url, 100,3,2,7, 5,10,10, $width,$height);
				 $row = getEachTweetPicture("$tweetIDX",0);
				 $url = $row["tweet_media"];
                    MakeGridPictureTwitter($background, $url, 100,7,3, 3, 7,10,10, $width,$height);
				 $row = getEachTweetPicture("$tweetIDX",0);
				 $url = $row["tweet_media"];
                    MakeGridPictureTwitter($background, $url, 100,3,3, 0, 7,10,10, $width,$height);

					  
 					break;
default:
$row = getEachTweetPicture("$tweetIDX",0);
				 $url = $row["tweet_media"];
MakeGridPictureTwitter($background, $url, 100,10,10, 0, 0,10,10, $width,$height);			}
?>