( ′∀`)σ≡σ☆))Д′)レ(゚∀゚;)ヘ=З=З=Зε≡(ノ´_ゝ`)ノ
<?php
include("includes/limittext.php");
include('Connections/videoondemand.php');
require("DbSql.inc.php");
require("NewsSql.inc.php");
require_once('gd2imaging.php');
$db = new NewsSQL($DBName);
error_reporting(0);/*error_reporting(1);error_reporting(E_ALL);
ini_set('display_errors', 1);*/
set_time_limit(0) ;
function filter($arr) {
global $link;
return array_map(array($link, 'real_escape_string'), $arr);
}
/*http://localhost/thebrand/brandX.php?AppNo=254722407698&theme_id=2043&catalogid5=254722407698&me=254722407698&context=*machine%20ddgtdted&execute=yes&AppNo=254722407698&mag=yes&gratitude=posted&filter=mood&output=1&nani=254722407698*/
/*
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/processFunctionsX.php");
$themeid = 5175;
$layerPosition=1;
$text = "santos || mwana || nzambe || mwenyewe";
$text = explode("||", $text);
$row = getEachJSONLayer($themeid,$layerPosition);
$url = $row['layers'];
// decode json to array
$json_arr = json_decode($url, true);
$arrayNo = -1;
foreach ($json_arr as $key => $value) {
if ($value['alt'] == 'dynamicdescription') {
$arrayNo = $arrayNo + 1; // $key = 2;
$json_arr[$key]['text'] = $text[$arrayNo];
$key;
}
}
echo $json_arr = json_encode($json_arr);
?>