( ′∀`)σ≡σ☆))Д′)レ(゚∀゚;)ヘ=З=З=Зε≡(ノ´_ゝ`)ノ
<?php
include("includes/limittext.php");
include('Connections/videoondemand.php');
require("DbSql2.inc.php");
require("NewsSql2.inc.php");
$db = new NewsSQL();
include("protect.php");
require_once('gd2imaging.php');
error_reporting(1);/*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"];
$catalogidX = $_COOKIE['euserid'];
$newsid = $_GET['design'];
$newsid = $db->base64url_decode($newsid);
$PhotoshopDetails = $db->checkPhotoshopDetails($catalogidX,$newsid);
if(!empty($PhotoshopDetails))
{
$idImport= $PhotoshopDetails[0]["id"];
$titleImport= $PhotoshopDetails[0]["title"];
$fileImport= $PhotoshopDetails[0]["json"];
}
?>
<script type="text/javascript" src="pages/photoshop/js/jquery_1.5.2.js"></script>
<script type="text/javascript" src="pages/photoshop/js/uploader.js"></script>
<link type="text/css" href="pages/photoshop/css/uploader.css" rel="stylesheet" />
<script type="text/javascript">
$(document).ready(function()
{
new multiple_file_uploader
({
form_id: "fileUpload",
autoSubmit: true,
server_url: "<?php echo $siteaddress;?>v/ajaxuploadassets.php?title=<?php echo $titleImport ?>&theme=<?php echo $newsid ?>&filex=<?php echo $catalogidX; ?>" // PHP file for uploading the browsed files
});
});
</script>
<div class="upload_box">
<form name="fileUpload" id="fileUpload" action="javascript:void(0);" enctype="multipart/form-data">
<div class="file_browser"><input type="file" name="multiple_files[]" id="_multiple_files" class="hide_broswe" multiple /></div>
<div class="file_upload"><input type="submit" value="Upload" class="upload_button" /> </div>
</form>
</div>
<div class="file_boxes">
<?php $homecataresultt = $db->selectAssets($catalogidX,$newsid);
if (!empty($homecataresultt)) {
while ( list($key,$val)=each($homecataresultt) ) {
$name = stripslashes($val["name"]);
$id = stripslashes($val["id"]);
$nameClean = str_replace(".png", "", $name); // isolate the slug
?>
<div id="add_fileIDFacebook87" class="bx_main"> <div class="bx_2"><span class="fname">Facebook87.png</span> <br> <span class="fsize">3.77 KB</span> </div><div class="bx_3" id="bx_3_Facebook87"> <a htef="#null" onclick="remove_this_file('Facebook87','Facebook87.png');"> <img border="0" src="pages/photoshop/file_icons/ico_cancel.png" width="16" height="15"> </a></div><a htef="#null" onclick="remove_this_file('Facebook87','Facebook87.png');"> </a></div>
<?php }}
?>
</div>
<span id="removed_files"></span>