( ′∀`)σ≡σ☆))Д′)レ(゚∀゚;)ヘ=З=З=Зε≡(ノ´_ゝ`)ノ
<?php
error_reporting(0);
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"];
include("protect.php");
if (empty($page)) {
$page = 0;
}
include("includes/processFunctions.php");
require 'elementsMachine/textStyles/texttoImage.php';
$obj = new TextToImage();
if (empty($_GET['text']))
{
$text = realText() ;
}
else
{
$text = dummyText();
}
$text = dummyText();
$route=$_GET["route"];
$action=$_GET["action"];
$fontid="themeid";
$myfont="layerid";
$layerid= $_GET["layerid"];
$fontcatalogid= $_GET["catalogid"];
$themeid= $_GET["themeid"];
$font_Username= $_GET["font_Username"];
$font_Name= $_GET["font_Name"];
$font_Url= $_GET["font_Url"];
$font_Text= $_GET["font_Text"];
$text_w= $_GET["text_w"];
$text_h= $_GET["text_h"];
$text_x= $_GET["text_x"];
$text_y= $_GET["text_y"];
$text_align= $_GET["text_align"];
$text_size= $_GET["text_size"];
$text_color= "#".$_GET["text_color"];
$url_color= $_GET["url_color"];
$name_color= $_GET["name_color"];
$username_color= $_GET["username_color"];
$url_size= $_GET["url_size"];
$name_size= $_GET["name_size"];
$username_size= $_GET["username_size"];
$text_pad= $_GET["text_pad"];
$theText= $_GET["text"];
$saveImage= $_GET["saveImage"];
$theText = htmlentities($theText);
$theText = str_replace('%92', '%27', $theText);
$text_line_height= $_GET["text_line_height"];
if (empty($_GET['S']))
{
$obj->saveImage(0);
}
else
{
$obj->saveImage(1);
}
$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)); // left, right, center
$obj->setWidth($text_w);
/*$obj->setHeight(0);*/ //0 for auto
$obj->setHeight(0);
$obj->sety($text_y);
$obj->setAngle(0);
$obj->setFontColor('#'.$text_color); // Hash value
$obj->setBackgroundColor('transparent'); // Hash value
$obj->draw();?>