( ′∀`)σ≡σ☆))Д′)レ(゚∀゚;)ヘ=З=З=Зε≡(ノ´_ゝ`)ノ
<a name="begin"></a> <?php
/*ini_set('display_errors', 1); error_reporting(E_ALL & ~E_NOTICE);*/
if(empty($BrandIdentity[0]["layerid"]))
{
header("Location: $siteaddress2/indexAlone.php?mode=identity&alert=Setup+your+brand+identity+first+to+proceed");
}
if (!empty($_GET['chooseTheme2']))
{
$msg_id = $db->base64url_decode($_GET['chooseTheme2']); /*exit("ffffffffff $msg_id");*/
$db->def($msg_id);
header("Location: indexAlone.php?mode=startags");
}
if (!empty($_GET['chooseTheme']))
{
$msg_id = $db->base64url_decode($_GET['chooseTheme']);
if(!empty($_GET["poster"]))
{
$ch = curl_init();
/*exit("brandX.php?theme_id=$msg_id&pic=$pichaX&mag=yes&x=0&y=0&gratitude=posted&context=How%20Are%20You%20Feeling%20Today&filter=mood&cl=machine&overlay=0&saveThemePoster=1&nani=$catalogidX&default=yes&msg_id=$msg_id");*/
curl_setopt($ch, CURLOPT_URL, "$siteaddress2/brandX.php?theme_id=$msg_id&pic=$pichaX&mag=yes&x=0&y=0&gratitude=posted&context=How%20Are%20You%20Feeling%20Today&filter=mood&cl=machine&overlay=0&saveThemePoster=1&nani=$catalogidX&default=yes&msg_id=$msg_id");
curl_exec($ch);
header("Location: ./indexAlone.php?mode=startags");
}
$db->def($msg_id);
if (empty($_GET['shareX']))
{
/*file_get_contents("brandX.php?theme_id=$msg_id&pic=$pichaX&mag=yes&x=0&y=0&gratitude=posted&context=How%20Are%20You%20Feeling%20Today&filter=mood&cl=machine&overlay=0&saveThemePoster=1&nani=$catalogidX&default=yes&msg_id=$msg_id"); */
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "brandX.php?theme_id=$msg_id&pic=$pichaX&mag=yes&x=0&y=0&gratitude=posted&context=How%20Are%20You%20Feeling%20Today&filter=mood&cl=machine&overlay=0&saveThemePoster=1&nani=$catalogidX&default=yes&msg_id=$msg_id");
curl_exec($ch);
header("Location: ./indexAlone.php?mode=startags");
}
}
if (!empty($_GET['shareX']))
{
$favstartag = $db->getsharedstartag($msg_id);
}
if (empty($_GET['shareX']))
{
$favstartag = $db->getfavstartag();
if (empty($favstartag[0]["def"]))
{
$makefavstartag = $db->makefavstartag();
$makeit = $makefavstartag[0]["id"] ;
if (empty($makeit))
{
$content="";
$created=time();
$yanani=$_SESSION['euserid'];
$message="2";
$type="createtheme";
$db->addNotification($catalogid,$type,$yanani,$message,$created,$content);
/* header("Location: ./indexAlone.php?mode=wysiwyg&page=layers&view=theme&msg2=Kindly add theme");*/
header("Location: ./indexAlone.php?mode=themes&msg2=Select a theme or create one to get started");
}
else
{$db->def($makeit);
header("Location: ./indexAlone.php?mode=startags&page=0&alert=success&msg_id1=$msg_id2&msg2=Brand+selected+successfully");}
}
}
$resultPost = $db->getPost();
$postPicture = $resultPost[0]["picture"];
$where = $_GET['where'];
if ($where=="opengallery") {
$pic2 = $_GET['pic2'];
$msg_id1 = $_GET['msg_id1'];
$pic2 = $db->base64url_decode($pic2);
$msg_id1 = $db->base64url_decode($msg_id1);
$db->replaceBrand($pic2,$msg_id1);
header("Location: indexAlone.php?mode=startags&msg=Picture+added+Successfully!");
}
if ($where=="save") {
$msg_id1 = $_GET['msg_id1'];
$msg_id1 = $db->base64url_decode($msg_id1);
$db->updateBrand($user_nameX,$msg_id1);
header("Location: indexAlone.php?mode=startags&msg=Background+created+Successfully!");
}
if ($_POST['goStar']) {
$_POST = filter($_POST);
$mytitle = mysqli_real_escape_string($link,$mytitle);
$msg_id = mysqli_real_escape_string($link,$msg_id);
$mytitle = preg_replace( '/[«»""!?,.!@£$%^&*{};:()]+/', '', $mytitle);
$db->editstar2($mytitle,$msg_id);
header("Location: indexAlone.php?mode=startags&msg=Congratulations+Startag+created+Successfully!");
}
if($step==7)
{
header("Location: index.php?mag=mag&mode=share&msg_id=$msg_id&step=2");
}
$widget = $catalogid5;
$VideoPath = "uploads/live/";
$live_img = 'uploads/images/';
$videouser = $_SESSION['euserid'];
function sizeinput($input, $len){
(int)$len;
(string)$input;
$n = substr($input, 0,$len);
$ret = trim($n);
$out = htmlentities($ret, ENT_QUOTES);
return $out;
}
function checkfile($input){
$ext = array('mpg', 'wma', 'mov', 'flv', 'mp4', 'm4v', 'avi', 'qt', 'wmv', 'rm', '3gp', 'mpeg', 'divx', 'moov', 'asf', 'swf', 'vob');
$extfile = substr($input['name'],-4);
$extfile = explode('.',$extfile);
$good = array();
$extfile = $extfile[1];
if(in_array($extfile, $ext)){
$good['safe'] = true;
$good['ext'] = $extfile;
}else{
$good['safe'] = false;
}
return $good;
}
//no error reporting
//@error_reporting(0);
if (empty($page)){
$page = 0;
}
$record =14;
if ($favstartag[0]["type"] == 1 ){ $record =3; }
// generate paging here
if ($delgif=="yes") {
$db->delgif();
header("Location: ./indexAlone.php?mode=gif&alert=warning&msg=Successfully+deleted");
}
$delnews = $_GET["delnews"];
if ($delnews=="yes") {
$msg_id = $db->base64url_decode($msg_id);
$db->delstar($msg_id);
header("Location: ./indexAlone.php?mode=startags&alert=warning&msg=Successfully+deleted");
}
$default = $_GET["default"];
$pager = $_GET["pager"];
if ($default=="yes") {$msg_id2 = $msg_id ;
$msg_id = $db->base64url_decode($msg_id);
$db->def($msg_id);
header("Location: ./indexAlone.php?mode=startags&page=$pager&alert=success&msg_id1=$msg_id2&msg2=Brand+selected+successfully");
}
$removePostPicture = $_GET["removePostPicture"];
if ($removePostPicture=="yes") {$msg_id2 = $msg_id ;
$msg_id = $db->base64url_decode($msg_id);
/*exit($msg_id);*/
$db->removePostPicture();
header("Location: ./indexAlone.php?mode=startags&page=$pager&alert=primary&msg_id1=$msg_id2&msg2=Brand+saved+successfully");
}
$shared = $_GET["shared"];
if ($shared=="yes") {$msg_id2 = $msg_id ;$nani = $_GET["nani"];
/*$msg_id = $db->base64url_decode($msg_id); */
/* $db->clearDef();*/
header("Location: ./indexAlone.php?mode=startags&page=$pager&alert=prmary&msg_id1=$msg_id1&msg2=Brand+saved+successfully&shared=true&nani=$nani&share=true");
}
?>
<?php echo $msg_id_0 = $db->Profile_Pic_ID();
$msg_id_0 = $db->base64url_encode($msg_id_0);
?>
<?php include("../newdatasets/sidebar.php"); ?>
<style>
.highlight {
display: none; /* hidden by default, until >480px */
padding: 9px 14px;
margin-bottom: 14px;
background-color: #f7f7f9;
border: 1px solid #e1e1e8;
border-radius: 4px;
}
.highlight pre {
padding: 0;
margin-top: 0;
margin-bottom: 0;
background-color: transparent;
border: 0;
white-space: nowrap;
}
.highlight pre code {
font-size: inherit;
color: #333; /* Effectively the base text color */
}
.highlight pre .lineno {
display: inline-block;
width: 22px;
padding-right: 5px;
margin-right: 10px;
text-align: right;
color: #bebec5;
}
/* Show code snippets when we have the space */
@media screen and (min-width: 481px) {
.highlight {
display: block;
}
}
</style>
<div class="container">
<section id="typography">
<!-- Headings & Paragraph Copy -->
<div class="row">
<ul class="nav nav-tabs" style="margin-bottom: 15px;">
<?php if($mode == "gif"){?>
<li class="h5 <?php if($mode == "gif" && $mode != "collage" && $mode != "startags" ){?>active<?php } ?>"><a href="#frames" id="frames#" data-toggle="tab"> <i class="icon-tasks"></i>Story</a></li> <?php } ?>
<?php if($mode == "collage"){?>
<li class="h5 <?php if($mode == "collage" && $mode != "gif" && $mode != "startags" ){?>active<?php } ?>"><a href="#collage" id="#collage" data-toggle="tab"> <i class="icon-tasks"></i>Collage</a></li> <?php } ?>
<li class="<?php if(empty($_GET["shared"]) && empty($_GET["images"])){?><?php if($mode == "gif" || $mode == "collage"){} else {?>active<?php } ?><?php } ?> h5"><a href="#start" data-toggle="tab"><i class="icon-user"></i>My Designs</a></li>
<li class="h5 "><a href="#effects" data-toggle="tab" ><i class="icon-magic"></i> Filters</a></li> <?php /*?> <li class="h5"><a href="#default" id="default#" data-toggle="tab"> <i class="icon-globe"></i>Public </a></li><?php */?>
<li class="h5 <?php if(!empty($_GET["images"]) && empty($_GET["shared"])){?>active<?php } ?>"><a href="#images" id="images#" data-toggle="tab"> <i class="icon-picture"></i>Images</a></li>
<?php if($myLevel == "Premium" || $myLevel == "Administrator"){?> <?php } ?>
<?php if($mode == "gif" || $mode == "collage"){} else {?>
<?php /*?> <li class="h5 <?php if(!empty($_GET["shared"]) && empty($_GET["images"])){?>active<?php } ?>"><a href="#shared" id="shared#" data-toggle="tab"> <i class="icon-group"></i>Shared </a></li> <?php */?><?php } ?>
<?php /*?> <li class="h5"><a href="#market" id="market#" data-toggle="tab"> <i class="icon-tags"></i> Startags </a></li><?php */?>
<?php if(!empty($_GET["shared"])){?> <?php } ?>
</ul>
<div id="tabcontent" class="tab-content">
<?php if($mode == "collage"){?>
<style type="text/css">
.image_picker_selector div .thumbnail.selected {
border: 3px solid #0088cc; list-style: none; padding: 0; margin: 0;border-radius: 50%; }
</style>
<script type="text/javascript" src="<?php echo $siteaddress; ?>js/image-picker.js"></script>
<div class="tab-pane fade in active" id="collage">
<script type="text/javascript" src="<?php echo $siteaddress;?>js/makeGallery.js"></script>
<div id="containerReportaCollage" >
<div id="loadingReportaM"></div>
<div class="dataReportaM" ></div>
<div class="paginationReportaM" ></div>
</div>
</div><?php } ?>
<?php if($mode == "gif"){?>
<div class="tab-pane fade in active" id="frames">
<script type="text/javascript" src="<?php echo $siteaddress;?>js/gif.js"></script>
<div id="containerReportaB" >
<div id="loadingReportaM"></div>
<div class="dataReportaM" ></div>
<div class="paginationReportaM" ></div>
</div>
<?php /*?> <script type="text/javascript" src="<?php echo $siteaddress;?>js/themes.js"></script>
<div id="containerReportaM" >
<div id="loadingReportaM"></div>
<div class="dataReportaM" ></div>
<div class="paginationReportaM" ></div>
</div> <?php */?>
</div><?php } ?>
<div class="tab-pane fade <?php if(empty($_GET["shared"]) && empty($_GET["images"])){?><?php if($mode == "gif" || $mode == "collage"){} else {?> active<?php } ?><?php } ?> in" id="start">
<?php /*?><p>
Select theme below or click <strong>add theme </strong>above to add your theme</p><?php */?>
<div id="containerReportaI" >
<div id="loadingReportaI"></div>
</div>
<script type="text/javascript" src="<?php echo $siteaddress;?>js/mystartags.js"></script>
<div id="containerReportaS" >
<div id="loadingReportaM"></div>
<div class="dataReportaM" ></div>
<div class="paginationReportaM" ></div>
</div>
<?php /*?><?php include("pages/mythemes.php");?> <?php */?>
</div>
<div class="tab-pane fade in <?php if(!empty($_GET["images"])){?>active<?php } ?>" id="images">
<script type="text/javascript" src="<?php echo $siteaddress;?>js/addimage.js"></script>
<div id="containerReportaF" >
<div id="loadingReportaM"></div>
<div class="dataReportaM" ></div>
<div class="paginationReportaM" ></div>
</div>
<?php if($myLevel == "Premium" || $myLevel == "Administrator"){?> <?php include("shareAlbum.php"); ?> <?php } ?>
</div>
<?php if($myLevel == "Premium" || $myLevel == "Administrator"){?>
<?php if($mode == "gif" || $mode == "collage"){} else {?>
<?php /*?><div class="tab-pane fade in <?php if(!empty($_GET["shared"])){?>active<?php } ?>" id="shared">
<?php include("shareTheme.php"); ?>
<script type="text/javascript" src="<?php echo $siteaddress;?>js/shared.js"></script>
<div id="containerReportaB" >
<div id="loadingReportaM"></div>
<div class="dataReportaM" ></div>
<div class="paginationReportaM" ></div>
</div> <?php */?>
<?php /*?> <script type="text/javascript" src="<?php echo $siteaddress;?>js/themes.js"></script>
<div id="containerReportaM" >
<div id="loadingReportaM"></div>
<div class="dataReportaM" ></div>
<div class="paginationReportaM" ></div>
</div> <?php */?>
<?php /*?></div><?php */?><?php } ?>
<?php } ?>
<div class="tab-pane fade in" id="effects">
<?php /*?> <?php include("pages/effects.php");?> <?php */?> <script type="text/javascript" src="<?php echo $siteaddress;?>js/effects.js"></script>
<div id="containerReportaE" >
<div id="loadingReportaM"></div>
<div class="dataReportaM" ></div>
<div class="paginationReportaM" ></div>
</div>
</div>
<?php /*?>
<div class="tab-pane fade in" id="market">
<script type="text/javascript" src="<?php echo $siteaddress;?>js/addbgX.js"></script>
<div id="containerReportaX" >
<div id="loadingReportaM"></div>
<div class="dataReportaM" ></div>
<div class="paginationReportaM" ></div>
</div>
</div><?php */?>
</section>
<?php /*?><section class="panel animated bounce m-r-xs m-l-xs" style=" color:#333;overflow:hidden;margin-top:5px; padding:3px;" id="searchbox1"> <form action="" >
<div class="input-group" style="width:100%; margin:0px; padding:0px">
<input placeholder="search #themes" id="searcharea1" class="form-control no-border" value="" type="text"> </div>
</form>
</section>
<?php */?>
</div><!-- /container -->
<script src="<?php echo $siteaddress;?>js/elements/bootstrap.min.js"></script>
<script>
$(document).ready(function()
{
if(location.href.indexOf("#images")>0)
{
$('.nav-tabs').tab('images');
}
$('a[rel=tooltip]').tooltip({'placement': 'bottom'});
});
</script>