( ′∀`)σ≡σ☆))Д′)レ(゚∀゚;)ヘ=З=З=Зε≡(ノ´_ゝ`)ノ
<?php
$mag = $_GET["mag"];
$VideoPath = "uploads/live/";
$live_img = 'uploads/images/';
$msg_id2 =$msg_id;
$msg_id = $db->base64url_decode($msg_id);
if($action=="custom") { $script = "processCoke.php"; }
else { $script = "brandX.php";}
$result = $db->getstar2($msg_id);
$catalogid = $result[0]["catalogid"];
$title = $result[0]["title"];
$message = $result[0]["title"];
$viewnum = $result[0]["viewnum"];
$rating = $result[0]["rating"];
$picture = $result[0]["picture"];
$ratenum = $result[0]["ratenum"];
$episodeid = $result[0]["episodeid"];
$slug = $result[0]["slug"];
$keywords = $result[0]["keywords"];
$isdisplay = $result[0]["isdisplay"];
$description = $result[0]["description"];
$vcat = $result[0]["vcat"];
$summary = $result[0]["summary"];
$video = $result[0]["video"];
$description= $result[0]["description"];
$original= $result[0]["picture"];
$fxme= $result[0]["fx"];
$default2 = $user_nameX.rand(10,99);
if($isdisplay == 7)
{
$default = $description;
}
if($isdisplay == 3 || $isdisplay == 4 || $isdisplay == 5) {
}
else
{
header("Location: ./indexAlone.php?mode=startags&msg=Sorry+this+Startag+is+already+published+cannot+be+edited");
}
?>
<script src="<?php echo $siteaddress;?>js/jquery-1.8.0.min.js"></script>
<link rel="stylesheet" href="css/movies-app.css">
<script type="text/javascript">
$( document ).ready( function(){
$("#xincrement").click(function(){
var $n = $("#x");
$n.val(Number($n.val()) + 20);
moveIt();
});
$("#xdecrement").click(function(){
var $n = $("#x");
$n.val(Number($n.val()) -20);
moveIt();
});
$("#yincrement").click(function(){
var $n = $("#y");
$n.val(Number($n.val()) + 20);
moveIt();
});
$("#ydecrement").click(function(){
var $n = $("#y");
$n.val(Number($n.val()) -20);
moveIt();
});
function moveIt() {
loading_show();
noticeHide();
$('#submit').css("display","none");
$('#submitX').css("display","none");
var effect = $(this).attr("id");
var image = window.localStorage["picha"];
var effect= encodeURI(document.getElementById('effecto').value);
var x= encodeURI(document.getElementById('x').value);
var y= encodeURI(document.getElementById('y').value);
var mag= encodeURI(document.getElementById('mag').value);
var myaccount= <?php echo $_SESSION['euserid'] ?>;
;
$("#check").html("Crunching...");
$("#check").html("Applying "+effect+"...");
$("#notify").html("Adjusting | 3secs...");
$('#picme').css("opacity","0.30");
$('#picme').css("filter","alpha(opacity=30)");
$('#preview img').load(function() {}).attr('src', Server+'<?php echo $script ?>?mag=yes&AppNo=' + AppNo + '&x=' + x + '&y=' + y + '&pic=<?php echo $original ?>&gratitude=posted&filter=mood&cl='+effect+'&fx=<?php echo $result[0]["fx"] ?>&nani='+ myaccount+'#<?php rand(1,3);?>');
setTimeout( function(){
$('#picme').css("opacity","1");
$('#picme').css("filter","alpha(opacity=100)");
$("#check").html("");
$("#notify").html("Theme: "+effect);
loading_hide();
},2500 );
}
//start of default execution
var msg_id = localStorage.getItem('msg_id');
var picha = localStorage.getItem('picha');
var form = $("#magazine");
$("#photo", form).val(window.localStorage["picha"]);
var myaccount= <?php echo $_SESSION['euserid'] ?>;
$("#check").html("Adjusting exposure...");
$("#notify").html("Loading...");
$('#picme').css("opacity","0.00");
$('#picme').css("filter","alpha(opacity=0)");
var x= encodeURI(document.getElementById('x').value);
var y= encodeURI(document.getElementById('y').value);
<?php if(!empty($_GET["fx"])) {?>
$('#preview img').load(function() {}).attr('src', Server+'<?php echo $script ?>?mag=yes&AppNo=' + AppNo + '&x=' + x + '&y=' + y + '&pic=<?php echo $original ?>&gratitude=posted&filter=mood&cl=<?php echo $title; ?>&fx=<?php echo $result[0]["fx"] ?>&msg_id=<?php echo $msg_id2 ?>&nani='+ myaccount+'#<?php rand(1,3);?>');
<?php }?>
<?php if(empty($_GET["fx"])) {?>
$('#preview img').load(function() {}).attr('src', Server+'<?php echo $script ?>?mag=yes&AppNo=' + AppNo + '&x=' + x + '&y=' + y + '&pic=<?php echo $original ?>&gratitude=posted&filter=mood&cl=<?php echo $description; ?>&fx=<?php echo $result[0]["fx"] ?>&msg_id=<?php echo $msg_id2 ?>&nani='+ myaccount+'#<?php rand(1,3);?>');
<?php }?>
loading_show();
setTimeout( function(){
$('#picme').css("opacity","1");
$('#picme').css("filter","alpha(opacity=100)");
$("#check").html("");
<?php if(!empty($_GET["fx"])) {?>$("#notify").html("Choose Effects Below");
<?php } else { ?>$("#notify").html("Choose Themes Below"); <?php }?>
loading_hide();
},1500 );
$(function(){
var navSwiper = $('.swiper-nav').swiper({
visibilityFullFit: true,
slidesPerView:'auto',})})
$('.swiper-wrapper').on('click','.swiper-slide',function () {
$('.swiper-slide').removeClass('active-nav');
$(this).addClass('active-nav')
});
});
</script>
<script type="text/javascript">
$(function() {
/* User presses the download button */
/* $('#submit').bind('click',function(){
var dataString = JSON.stringify(data);
$('#jsondata').val(dataString);
$('#jsonform').submit();
});
*/
$("#submitX").click(function() {
noticeHide();
loading_show();
var effect= encodeURI(document.getElementById('effecto').value);
var mytitle= encodeURI(document.getElementById('mytitle').value);
var image= window.localStorage["picha"];
var mag= encodeURI(document.getElementById('mag').value);
var overlay= encodeURI(document.getElementById('overlay').value);
var x= encodeURI(document.getElementById('x').value);
var y= encodeURI(document.getElementById('y').value);
var newsid= "MTQwODY1MTE3Mw,,";
var fx= encodeURI(document.getElementById('fx').value);
var overlay = document.getElementById('overlay');
var rename= encodeURI(document.getElementById('rename').value);
if(overlay.checked) { var overlay = 1; }
else { var overlay = 0; }
var myaccount= <?php echo $_SESSION['euserid'] ?>;
$("#check").html("Saving...");
$("#notify").html(" Please wait...");
$.ajax
({
type: "GET",
url: Server+'<?php echo $script ?>?fire=yes&AppNo=' + AppNo + '&x=' + x + '&y=' + y + '&gratitude=posted&filter=mood&pic=<?php echo $original ?>&cl=<?php echo $result[0]["title"] ?>&fx=' + fx+ '&msg_id=<?php echo $msg_id2 ?>&mytitle=' + mytitle+ '&overlay=' + overlay+ '&rename=' + rename+ '&nani='+ myaccount,
data: "page=4",
success: function(msg)
{
loading_hide();
window.location = "indexAlone.php?mode=editStar&msg_id=<?php echo $msg_id2 ?>";
}
});
/* $('#jsonform5').submit();*/
});
$("#submit").click(function() {
noticeHide();
loading_show();
var effect= encodeURI(document.getElementById('effecto').value);
var image= window.localStorage["picha"];
var mag= encodeURI(document.getElementById('mag').value);
var overlay= encodeURI(document.getElementById('overlay').value);
var x= encodeURI(document.getElementById('x').value);
var y= encodeURI(document.getElementById('y').value);
var newsid= "MTQwODY1MTE3Mw,,";
var fx= encodeURI(document.getElementById('fx').value);
var overlay = document.getElementById('overlay');
if(overlay.checked) { var overlay = 1; }
else { var overlay = 0; }
var myaccount= <?php echo $_SESSION['euserid'] ?>;
$("#check").html("Saving...");
$("#notify").html(" Please wait...");
$.ajax
({
type: "GET",
url: Server+'<?php echo $script ?>?fire=yes&AppNo=' + AppNo + '&x=' + x + '&y=' + y + '&gratitude=posted&filter=mood&pic=<?php echo $original ?>&cl='+ effect+ '&msg_id=<?php echo $msg_id2 ?>&overlay=' + overlay+ '&nani='+ myaccount,
data: "page=4",
success: function(msg)
{
loading_hide();
window.location = "indexAlone.php?mode=updateStartag&msg_id=<?php echo $msg_id2 ?>&step=0&action=filter&fx=<?php echo $msg_id2 ?>";
}
});
/* $('#jsonform5').submit();*/
});
$('.followme').click(function() {
loading_show();
noticeHide();
$('#submit').css("display","none");
$('#submitX').css("display","none");
var effect = $(this).attr("id");
var effectme = encodeURI(document.getElementById('effecto').value);
$('.'+effectme).css('background-color', '#fff');
$('.'+effect).css('background-color', '#dfdfdf');
var image = window.localStorage["picha"];
$('#effecto').val(effect);
$('#mytitle').val(effect);
var x= encodeURI(document.getElementById('x').value);
var y= encodeURI(document.getElementById('y').value);
var overlay = document.getElementById('overlay');
if(overlay.checked) { var overlay = 1; }
else { var overlay = 0; }
var mag= encodeURI(document.getElementById('mag').value);
var myaccount= <?php echo $_SESSION['euserid'] ?>;
$("#check").html("Crunching...");
$("#check").html("Applying "+effect+"...");
$("#notify").html("Applying | 3secs...");
$('#picme').css("opacity","0.30");
$('#picme').css("filter","alpha(opacity=30)");
$('#preview img').load(function() {}).attr('src', Server+'<?php echo $script ?>?mag=yes&AppNo=' + AppNo + '&x=' + x + '&y=' + y + '&pic=<?php echo $original ?>&gratitude=posted&filter=mood&cl='+ effect+'&overlay='+ overlay+'&nani='+ myaccount+'#<?php rand(1,3);?>');
setTimeout( function(){
$('#picme').css("opacity","1");
$('#picme').css("filter","alpha(opacity=100)");
$("#check").html("");
$("#notify").html("Theme: "+effect);
$("#notify2").html("Layout:<span class='text-info'>"+effect+"</span>");
$('#submit').css("display","block");
$('#submitX').css("display","block");
loading_hide();
},2500 );
});
$('.followme2').click(function() {
loading_show();
noticeHide();
$('#submitX').css("display","none");
var effect = $(this).attr("id");
var effectme = encodeURI(document.getElementById('fx').value);
$('.'+effectme).css('background-color', '#fff');
$('.'+effect).css('background-color', '#dfdfdf');
var image = window.localStorage["picha"];
$('#fx').val(effect);
var x= encodeURI(document.getElementById('x').value);
var y= encodeURI(document.getElementById('y').value);
var overlay = document.getElementById('overlay');
if(overlay.checked) { var overlay = 1; }
else { var overlay = 0; }
var mag= encodeURI(document.getElementById('mag').value);
var myaccount= <?php echo $_SESSION['euserid'] ?>;
var fx= encodeURI(document.getElementById('fx').value);
$("#check").html("Crunching...");
$("#check").html("Applying Effect"+effect+"...");
$("#notify").html("Applying | 3secs...");
$('#picme').css("opacity","0.30");
$('#picme').css("filter","alpha(opacity=30)");
$('#preview img').load(function() {}).attr('src', Server+'<?php echo $script ?>?mag=yes&AppNo=' + AppNo + '&x=' + x + '&y=' + y + '&pic=<?php echo $original ?>&gratitude=posted&filter=mood&cl=<?php echo $title; ?>&overlay='+ overlay+'&fx='+ fx+'&nani='+ myaccount+'#<?php rand(1,3);?>');
setTimeout( function(){
$('#picme').css("opacity","1");
$('#picme').css("filter","alpha(opacity=100)");
$("#check").html("");
$("#notify").html("Effect: "+effect);
$("#notify2").html("Effect:<span class='text-info'>"+effect+"</span>");
$('#submitX').css("display","block");
loading_hide();
},2500 );
});
});
</script>
<form id="magazine" method="POST">
<input type="hidden" id="mag" name="mag" value="yes" />
<?php if(!empty($_GET["fx"])) {?><input id="effecto" name="effecto" type="hidden" value="<?php echo $result[0]["description"]; ?>" autocomplete="off">
</input><?php }?><?php if(empty($_GET["fx"])) {?><input id="effecto" name="effecto" type="hidden" value="<?php echo $result[0]["description"]; ?>" autocomplete="off">
</input><?php }?>
<input id="fx" name="fx" type="hidden" value="<?php echo $result[0]["fx"]; ?>" autocomplete="off">
</input>
<input id="photo" name="photo" type="hidden" value="">
</input>
<input id="twist" name="twist" type="hidden" value="normal" >
</input>
<input type="hidden" id="newsid" name="newsid" value="MTQwODY1MTE3Mw,," />
<input type="hidden" id="step" name="step" value="7" />
<input type="hidden" id="brand" name="brand" value="watermark.png" />
<input id="x" value="0" type="hidden">
<input id="y" value="0" type="hidden">
</form>
<div id="loadingReportaM"></div>
<table width="100%" border="0" cellpadding="0" cellspacing="0" >
<tr>
<td width="400" valign="top">
<h2 style="padding-top:0px" class="post-title" id="notify2"><i class="icon-asterisk"></i>
<?php if(!empty($_GET["fx"])) {?>
Choose Brand Effects
<?php } else { ?>
Choose Brand Layout
<?php }?><span class='text-info' style="text-transform: none ; "></span></h2>
</td><td valign="top">
<?php if(!empty($_GET["fx"])) {?><a id="submitX" style="background-color:#C39" class="btn-lg btn-warning pull-right m-r-lg "><i class="icon-save"></i>Save Brand</a><?php } else { ?>
<a id="submit" style="background-color:#C39" class="btn-lg btn-warning pull-right m-r-lg" ><i class="icon-chevron-right"></i>Proceed</a>
<?php }?>
<?php if(!empty($_GET["fx"])) {?>
<div class="input-group pull-right m-r-lg" style="width:300px; display:none"> <span class="input-group-addon lt no-border bg-info lter"> Title </span> <input name="rename" type="text" placeholder="rename" class="form-control input-lg" id="rename" maxlength="100" value="*<?php echo $user_nameX.rand(10,99)?>"></div>
<div class="input-group pull-right m-r-lg" style="width:300px;display:none"> <span class="input-group-addon lt no-border bg-info lter"> Rename </span>
<input name="mytitle" type="text" placeholder="Caption" class="form-control input-lg" <?php if(($isdisplay == 7) && ($viewnum > 10)) {?>disabled="disabled" <?php } ?> id="mytitle" maxlength="100" value="*<?php echo $result[0]["title"] ?>">
<?php /*?> <span class="input-group-addon"><label>Overlay?</label>
<input type="checkbox" id="overlay" checked="checked" >
</span><?php */?> </div><?php } ?>
</td>
</tr>
</table>
<table width="100%" border="0" >
<tr>
<td valign="top" width="600" style="overflow:hidden;"><div id="preview" class="animated fadeIn" > <span id="controls">
<div id="yincrement" class="preview_up"></div>
<div id="ydecrement" class="preview_down"></div>
<div id="xincrement" class="preview_left"></div>
<div id="xdecrement" class="preview_right"></div>
</span>
<div class="photo_wrp" style="min-width:600px; max-width:600px; background:none"> <img class="" src="" id="picme" style="min-width:600px; width:100%; max-width:600px"> </div>
</div>
<script>
$(document).ready(function(){
$('.switch').click(function(){
$(this).toggleClass("switchOn");
});
$('.switchBig').click(function(){
$(this).toggleClass("switchBigOn");
});
});
</script>
<center> <div class="input-group m-b padder m-t " style=" display:none;max-width:200px; background-color:transparent; border:0px solid none"> <span class="input-group-addon">Overlay? </span>
<span class="input-group-addon" style="max-width:200px; background-color:transparent">
<input type="checkbox" style="display:none" id="overlay" name="overlay" class="checkbox"/>
<div class="switch"></div>
</span> </div>
</center>
</td>
<td valign="top" style="padding-left:10px;"><?php
if (isset($_GET['msg'])) {?>
<div id="noticeMain" class="alert m-t alert-danger alert-block <?php if (isset($_GET['category'])) { echo $_GET['category']; } ?>"> <a onClick="noticeHide()" class="pull-right m-l"><i class="icon-remove"></i></a>
<h4><i class="icon-bell-alt"></i>Information!</h4>
<p id="msg"> <?php echo "$_GET[msg]"; ?> </p>
</div>
<?php
}
?>
<div class="wrapper">
<section class="panel">
<?php
if(!empty($_GET["fx"]))
{
include("pages/fx.php");
}
else
{
include("pages/themeMain.php");
}?>
<?php ?>
</section>
</div></td>
</tr>
</table></td>
</tr>
</table>
</body></html>