( ′∀`)σ≡σ☆))Д′)レ(゚∀゚;)ヘ=З=З=Зε≡(ノ´_ゝ`)ノ 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/createMyEmotionsGraphics.php
<?php
/*http://localhost/thebrand/processFont2.php?route=theName&fontid=1597&myfont=&fontcatalogid=254722407698&themeid=1597&font_Username=BebasNeue.otf&font_Name=BebasNeue.otf&font_Url=BebasNeue.otf&font_Text=BebasNeue.otf&text_w=300&text_h=0&text_x=154&text_y=459&text_align=left&text_size=25&text_color=ffffff&url_color=ffffff&name_color=ffffff&username_color=ffffff&url_size=25&name_size=25&username_size=25&text_pad=0&text_line_height=30&text=santos%20okottah*/

include("includes/limittext.php");
include('Connections/videoondemand.php');  
require("DbSql.inc.php");
require("NewsSql.inc.php");

$db = new NewsSQL($DBName); 
/*set_time_limit(0) ;*/
function filter($arr) {
    global $link;
return array_map(array($link, 'real_escape_string'), $arr);
}
/*
https://maps.googleapis.com/maps/api/staticmap?center=NAKURU&zoom=13&size=600x600&maptype=hybrid
http://localhost/mimix/brandX.php?AppNo=254722407698&mag=yes&gratitude=posted&filter=mood&nani=254722407699&cl=rightnow&pic=0fbfb36bad36a37e22955b2081eac3036SAMCOM2011DAY3-051.jpg*/
$_GET = filter($_GET);
$_POST = filter($_POST); 
$mode=$_GET["mode"];
$font=$_GET["font"];
 
include("protect.php");
if (empty($page)) {
	$page = 0;
}



include("includes/processFunctions.php");
 require  'elementsMachine/textStyles/texttoImageE.php';
 error_reporting(1);
$obj = new TextToImage();
 global $link;


  $sql ="SELECT * FROM `emotion` order by id";
$query = mysqli_query($link,$sql) or die(mysql_error());
	  
 
	  $backgroundColor ="";
	  while($row=mysqli_fetch_array($query)){

   $font_Text= "Poppins-Medium.otf";

          
 
$text_align= "left";
$text_size= "20";
$text_color= "ffffff";
 
$text_pad= 10;
 $theText= $row["emotion"];
$saveImage= $_GET["saveImage"];
 

$text_line_height= $text_size; 


$obj->setText($theText);
$obj->setFontSize($text_size);
$obj->setLineHeight($text_line_height);
$obj->setFontFile("assets/fonts/".$font_Text);
$obj->setUnderline(0);
$obj->setPadding($text_pad);
$obj->setHAlignment(strtolower($text_align));  
$obj->setWidth(200);
$obj->setHeight(40);    

$obj->sety(150);
 

$obj->setAngle(0);
 
$obj->setFontColor('#'.$text_color);  
          
  $backgroundColor =  $row["status"];;  
        
switch ($backgroundColor) {
case "8":
$colorX ="ff9d3b";
break;
case "7":
$colorX ="e4d907";
break;
case "2":
$colorX ="cc0000";
break;
case "4":
$colorX ="1277e1";
break;
case "6":
$colorX ="90e134";
break;
case "8":
$colorX ="f7d63e";
break;
case "1":
$colorX ="89898a";
break;
case "3":
$colorX ="8e44ad";
break;

 default:
$colorX ="8ee9f9";
     
}  
          
          echo $colorX;
$obj->setBackgroundColor("#$colorX");  
$obj->draw();

  
 
    }   
 
 
 

?>