( ′∀`)σ≡σ☆))Д′)レ(゚∀゚;)ヘ=З=З=Зε≡(ノ´_ゝ`)ノ
<?php $themeid = $_GET["theme_id"];
$row = getEachLayer($themeid,$catalogid,$layerPosition);
$str =$row['name'];
$check = checkType($str);
if($check=="theGraphics")
{
}
if($check=="profilePicture")
{
}
if($check=="theUpdate")
{
$str =$row['name'];
$str = str_replace('?', '&', $str);
parse_str($str, $output);
$route=$output['route'];/*exit($route);*/
$fontid=$output['fontid'];
$myfont=$output['myfont'];
$fontcatalogid=$output['fontcatalogid'];
$themeid=$output['themeid'];
$font_Username=$output['font_Username'];
$font_Name=$output['font_Name'];
$font_Url=$output['font_Url'];
$font_Text=$output['font_Text'];
$text_w=$output['text_w'];
$text_h=$output['text_h'];
$text_x=$output['text_x'];
$text_y=$output['text_y'];
$text_align=$output['text_align'];
$text_size=$output['text_size']-5;
$text_color=$output['text_color'];
$url_color=$output['url_color'];
$name_color=$output['name_color'];
$username_color=$output['username_color'];
$url_size=$output['url_size'];
$name_size=$output['name_size'];
$username_size=$output['username_size'];
$text_pad=$output['text_pad'];
$text_line_height=$output['text_line_height'];
$text=$output['text'];
$layer_x=$row['layerx'];
$layer_y=$row['layery'];
$layer_r =$row['layerr'];
if (empty($_GET['cl']))
{
$text = realText() ;
}
else
{
$text = dummyText();
}
$angle = $layer_r;
$underline = true;
$font_Text = "assets/fonts/$font_Text"; //font used
$type = "Caption";$column = "font";
$fontLayer = checkFont($type,$column,$fontcatalogid,$_GET["theme_id"]);
$customFont =$fontLayer;
if (!empty($customFont))
{
$font_Text=$customFont;
$font_Text = "assets/newfont/$font_Text"; //font used
/*$oldFont = strtolower($output['font_Text']);
$newFont = strtolower($fontLayer);
exit($newFont);
if ($newFont = $oldFont )
{
}
else
{
$font_Text = "assets/fonts/".$output['font_Text'];
} */
}
$backgroundWidth = $text_w;
$backgroundHeight = 0;
$text = str_replace("*machine","",$text);
$text = stripslashes($text);
$text = mb_convert_encoding($text, 'HTML-ENTITIES',"UTF-8");
// Convert HTML entities into ISO-8859-1
$text = html_entity_decode($text,ENT_NOQUOTES, "ISO-8859-1");
WriteCaption($background,$text_size,$text_color,$text_color,$text_line_height,$text_align,$angle,$underline,$font_Text,$backgroundWidth,$backgroundHeight,$layer_y,$text_pad,$backgroundColor,$layer_x,$text);
}
if($check=="theUrl")
{
$str =$row['name'];
$str = str_replace('?', '&', $str);
parse_str($str, $output);
$route=$output['route'];/*exit($route);*/
$fontid=$output['fontid'];
$myfont=$output['myfont'];
$fontcatalogid=$output['fontcatalogid'];
$themeid=$output['themeid'];
$font_Username=$output['font_Username'];
$font_Name=$output['font_Name'];
$font_Url=$output['font_Url'];
$font_Text=$output['font_Text'];
$text_w=$output['text_w'];
$text_h=$output['text_h'];
$text_x=$output['text_x'];
$text_y=$output['text_y'];
$text_align=$output['text_align'];
$text_size=$output['text_size']-7;
$text_color=$output['text_color'];
$url_color=$output['url_color'];
$name_color=$output['name_color'];
$username_color=$output['username_color'];
$url_size=$output['url_size'];
$name_size=$output['name_size'];
$username_size=$output['username_size'];
$text_pad=$output['text_pad'];
$text_line_height=$output['text_line_height'];
$layer_r =$row['layerr'];
$layer_x=$row['layerx'];
$layer_y=$row['layery'];
if (empty($_GET['cl']))
{
$text = realText() ;
}
else
{
$text = dummyText();
}
$text= "thebrand.co.ke/".slug();
$angle = $layer_r;
$underline = true;
$font_Text = "assets/fonts/$font_Text"; //font used
$type = "Url";$column = "font";
$fontLayer = checkFont($type,$column,$fontcatalogid,$_GET["theme_id"]);
$customFont =$fontLayer;
if (!empty($customFont))
{
$font_Text=$customFont;
$font_Text = "assets/newfont/$font_Text"; //font used
}
$backgroundWidth = $text_w;
$backgroundHeight = 0;
WriteCaption($background,$text_size,$text_color,$text_color,$text_line_height,$text_align,$angle,$underline,$font_Text,$backgroundWidth,$backgroundHeight,$layer_y,$text_pad,$backgroundColor,$layer_x,$text);
}
if($check=="theName")
{
$str =$row['name'];
$str = str_replace('?', '&', $str);
parse_str($str, $output);
$route=$output['route'];/*exit($route);*/
$fontid=$output['fontid'];
$myfont=$output['myfont'];
$fontcatalogid=$output['fontcatalogid'];
$themeid=$output['themeid'];
$font_Username=$output['font_Username'];
$font_Name=$output['font_Name'];
$font_Url=$output['font_Url'];
$font_Text=$output['font_Text'];
$text_w=$output['text_w'];
$text_h=$output['text_h'];
$text_x=$output['text_x'];
$text_y=$output['text_y'];
$text_align=$output['text_align'];
$text_size=$output['text_size']-7;
$text_color=$output['text_color'];
$url_color=$output['url_color'];
$name_color=$output['name_color'];
$username_color=$output['username_color'];
$url_size=$output['url_size'];
$name_size=$output['name_size'];
$username_size=$output['username_size'];
$text_pad=$output['text_pad'];
$text_line_height=$output['text_line_height'];
$layer_r =$row['layerr'];
$layer_x=$row['layerx'];
$layer_y=$row['layery'];
if (empty($_GET['cl']))
{
$text = realText() ;
}
else
{
$text = dummyText();
}
$text= user();
$angle =$layer_r;
$underline = true;
$font_Text = "assets/fonts/$font_Text"; //font used
$type = "Name";$column = "font";
$fontLayer = checkFont($type,$column,$fontcatalogid,$_GET["theme_id"]);
$customFont =$fontLayer;
if (!empty($customFont))
{
$font_Text=$customFont;
$font_Text = "assets/newfont/$font_Text"; //font used
}
$backgroundWidth = $text_w;
$backgroundHeight = 0;
WriteCaption($background,$text_size,$text_color,$text_color,$text_line_height,$text_align,$angle,$underline,$font_Text,$backgroundWidth,$backgroundHeight,$layer_y,$text_pad,$backgroundColor,$layer_x,$text);
}
if($check=="theUser")
{
$str =$row['name'];
$str = str_replace('?', '&', $str);
parse_str($str, $output);
$route=$output['route'];/*exit($route);*/
$fontid=$output['fontid'];
$myfont=$output['myfont'];
$fontcatalogid=$output['fontcatalogid'];
$themeid=$output['themeid'];
$font_Username=$output['font_Username'];
$font_Name=$output['font_Name'];
$font_Url=$output['font_Url'];
$font_Text=$output['font_Text'];
$text_w=$output['text_w'];
$text_h=$output['text_h'];
$text_x=$output['text_x'];
$text_y=$output['text_y'];
$text_align=$output['text_align'];
$text_size=$output['text_size']-7;
$text_color=$output['text_color'];
$url_color=$output['url_color'];
$name_color=$output['name_color'];
$username_color=$output['username_color'];
$url_size=$output['url_size'];
$name_size=$output['name_size'];
$username_size=$output['username_size'];
$text_pad=$output['text_pad'];
$text_line_height=$output['text_line_height'];
$layer_r =$row['layerr'];
$layer_x=$row['layerx'];
$layer_y=$row['layery'];
if (empty($_GET['cl']))
{
$text = realText() ;
}
else
{
$text = dummyText();
}
$text= slug();
$angle =$layer_r;
$underline = true;
$font_Text = "assets/fonts/$font_Text"; //font used
$type = "Name";$column = "font";
$fontLayer = checkFont($type,$column,$fontcatalogid,$_GET["theme_id"]);
$customFont =$fontLayer;
if (!empty($customFont))
{
$font_Text=$customFont;
$font_Text = "assets/newfont/$font_Text"; //font used
}
$backgroundWidth = $text_w;
$backgroundHeight = 0;
WriteCaption($background,$text_size,$text_color,$text_color,$text_line_height,$text_align,$angle,$underline,$font_Text,$backgroundWidth,$backgroundHeight,$layer_y,$text_pad,$backgroundColor,$layer_x,$text);
}
if($check=="Uploaded")
{
}
?>