( ′∀`)σ≡σ☆))Д′)レ(゚∀゚;)ヘ=З=З=Зε≡(ノ´_ゝ`)ノ
<?php
ob_start();
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"];
$view = $db->base64url_decode($_GET["view"]);
$msg_id = $db->base64url_decode($_GET["msg_id"]);
$who=$_GET["w"];
$campaign = $db->base64url_decode($_GET["campaign"]);
$bg_array = array("#CEED9D","#ECED9D","#EDCF9D","#EC9CA7","#ED9DD0","#EE9DE2","#D69DEC","#9E9CEC");
$bg = array_rand($bg_array,1);
$method ="desc";
$pichaC=$db->lastProcessedPhoto($who,$view,$method);
$file_name = $pichaC[0]["file_name"] ;
$episodeid = $pichaC[0]["episodeid"] ;
$newsid = $pichaC[0]["newsid"] ;
$x = $episodeid;
$total = $newsid;
$percentage = ($x*100)/$total;
$percentage = round($percentage,0)+1 ;
?>
<?php if(!empty($file_name))
{?>
<div class="progress md-progress" style="height: 40px">
<div class="progress-bar" role="progressbar" style="<?php /*?>background-color:<?php echo $bg_array[$bg];?>;<?php */?>width: <?php echo $percentage ?>%; height: 40px; padding-top:10px" aria-valuenow="<?php echo $percentage ?>" aria-valuemin="1" aria-valuemax="100">
<?php if($percentage =='100'){?> Design Completed. <a href="m/post_manager">Click to view files</a><?php } else {?><?php echo $percentage ?>% Designed <?php } ?>
</div>
</div>
<div style="<?php /*?>background-color:<?php echo $bg_array[$bg];?>; <?php */?>width:100%; height:100%; min-height:600px; min-width:600px;" >
<img width="100%" src="<?php echo $siteaddress ?>taswira.php?cropratio=1:1&image=/v/uploads/raw/<?php echo $file_name; ?>" />
</div><?php
}
?>