( ′∀`)σ≡σ☆))Д′)レ(゚∀゚;)ヘ=З=З=Зε≡(ノ´_ゝ`)ノ HEX
HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux mail.thebrand.ai 6.8.0-107-generic #107-Ubuntu SMP PREEMPT_DYNAMIC Fri Mar 13 19:51:50 UTC 2026 x86_64
User: www-data (33)
PHP: 8.3.6
Disabled: NONE
Upload Files
File: /var/www/html/tmpr/../tmpr/../tmpr/../pimp.php
<?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 = "processMag.php";}
$result = $db->getnewsbyidr2($msg_id);
$catalogid = $result[0]["catalogid"];
$yanani= $result[0]["yanani"];
 $original= $result[0]["original"];
$title = $result[0]["title"];
$content = $result[0]["content"];
$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"];
$thumb= $result[0]["thumb"];
$post_id=  $_GET["msg_id3"];
 if($isdisplay == 3   ||  $isdisplay == 11)  { 

 }
 else
 {
	header("Location: ./index.php?msg=Sorry+this+Photo+is+already+posted+cannot+be+edited");
 
 }
 
 $pic ="v/uploads/raw/$original";
         
list($w, $h) = getimagesize($pic);

/*if ($w < 500)
{
  header("Location: ./index.php?mode=photos&msg=Your+Image+is+too+small.+Width+should+be+at+500+pixels.+Click+'Just+Publish'+to+use+this+photo");	
  exit();}*/
 
 

 

	if($action=="filter" || $action=="sticker" || $action=="custom")  
		
		 {
	  
      $maxWidtha	= 600;
	$maxHeighta	= 600;
         
		  }
         
	 if($action=="auto" || $action=="frame")  
		
		 {
	  
      $maxWidtha	= 500;
	$maxHeighta	= 666;
         
		  }
           
         
		      
          	if($action=="meme")  
		
		 {
	  
           $maxWidtha	= 640;
	$maxHeighta	= 400;
         
		  }
 
 
	      
          	if($action=="cards")  
		
		 {
	  
           $maxWidtha	= 640;
	$maxHeighta	= 430;
         
		  }
 
  



 if ($w > $maxWidtha)
 {
 

              	 
header("Location: ./autosize.php?maxWidtha=$maxWidtha&maxHeighta=$maxHeighta&action=$action&msg_id=$msg_id2&prepare=no");
exit();


}
  

 
/*END  PROCESS IMAGE*/ 
 
if($action=="filter")  
		
		 {
	  
    $default = "contrast";
         
		  }
         
		  	if($action=="auto")  
		
		 {
	  
        $default = "fresh";
         
		  }
           	if($action=="sticker")  
		
		 {
	  
        $default = "love";
         
		  }
         
		     	if($action=="frame")  
		
		 {
	  
       $default = "sweetgold";
         
		  }
          	if($action=="meme")  
		
		 {
	  
          $default = "print";
         
		  }
             	if($action=="custom")  
		
		 {
	  
          $default = "coke";
         
		  }
		  if($action=="cards")  
		
		 {
	  
          $default = "whiteheart";
         
		  }
         ?>             

       <script src="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)");
	 

<?php if ($action == "cards" || $action == "meme") {?>
var form = $("#captionForm"); 

var twist = "normal4";
var description = $("#description", form).val();
var description = encodeURI(description);
$('#twist').val(twist);
<?php } ?>


 $('#preview img').load(function() {}).attr('src', Server+'<?php echo $script ?>?mag=yes&AppNo=' + AppNo + '&<?php	 if ($action == "cards" || $action == "meme") {?>twist='+twist+'&description='+description+'&<?php } ?>x=' + x + '&y=' + y + '&image=<?php echo $original ?>&action=<?php echo $action; ?>&filter='+effect+'&nani='+ myaccount+'#<?php rand(1,3);?>');
 
	
setTimeout( function(){
$('#submitX').css("display","none");
$('#submit').css("display","block");
$('#picme').css("opacity","1");
$('#picme').css("filter","alpha(opacity=100)");
$("#check").html("");
$("#notify").html(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'] ?>;
$('#submitX').css("display","none");
$('#submit').css("display","none");	
$("#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 ($action == "cards" || $action == "meme") {?>
var form = $("#captionForm"); 

var twist = "normal4";
var description = $("#description", form).val();
var description = encodeURI(description);
$('#twist').val(twist);
<?php } ?>


 $('#preview img').load(function() {}).attr('src', Server+'<?php echo $script ?>?mag=yes&AppNo=' + AppNo + '&<?php	 if ($action == "cards" || $action == "meme") {?>twist='+twist+'&description='+description+'&<?php } ?>x=' + x + '&y=' + y + '&image=<?php echo $original ?>&action=<?php echo $action; ?>&filter=<?php echo $default; ?>&nani='+ myaccount+'#<?php rand(1,3);?>');



loading_show();

setTimeout( function(){
$('#submitX').css("display","none");
$('#submit').css("display","block");
$('#picme').css("opacity","1");
$('#picme').css("filter","alpha(opacity=100)");
$("#check").html("");
$("#notify").html("Select effects on the right to get started");
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();
                });
					*/	
$("#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 x= encodeURI(document.getElementById('x').value);
var y= encodeURI(document.getElementById('y').value);
var newsid= "MTQwODY1MTE3Mw,,";
var myaccount= <?php echo $_SESSION['euserid'] ?>;
<?php	 if ($action == "cards" || $action == "meme") {?>
var form = $("#captionForm"); 
var twist = encodeURI(document.getElementById('twist').value);
var description = $("#description", form).val();
var description = encodeURI(description);
<?php } ?>
 
 $("#check").html("Saving..."); 
$("#notify").html("Please wait");
<?php /*?>$("#check").html(Server+'<?php echo $script ?>?execute=yes&<?php	 if ($action == "cards" || $action == "meme") {?>twist='+twist+'&description='+description+'&<?php } ?>AppNo=' + AppNo + '&x=' + x + '&y=' + y + '&action=<?php echo $action; ?>&mag=no&image=<?php echo $original ?>&filter=' + effect+ '&nani='+ myaccount); return;<?php */?>
         $.ajax
                    ({
                        type: "GET",
                         url: Server+'<?php echo $script ?>?execute=yes&<?php	 if ($action == "cards" || $action == "meme") {?>twist='+twist+'&description='+description+'&<?php } ?>AppNo=' + AppNo + '&x=' + x + '&y=' + y + '&action=<?php echo $action; ?>&mag=no&image=<?php echo $original ?>&filter=' + effect+ '&nani='+ myaccount,
                        data: "page=4",
                        success: function(msg)
                        {
                      
		
			
			loading_hide();
 
	 window.location = "index.php?mode=updateReport&msg_id=<?php echo $msg_id2 ?>&action=<?php echo $action; ?>&filter=" + effect+ "";
	
		
                        }
                    });
					 
	
					 

/* $('#jsonform5').submit();*/
 });


$('.followme').click(function() {
	loading_show();
	noticeHide();
$('#submit').css("display","none");	
$('#submitX').css("display","none");			
var effect = $(this).attr("id");
var image = window.localStorage["picha"];
$('#effecto').val(effect);
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'] ?>;
<?php	 if ($action == "cards" || $action == "meme") {?>
var form = $("#captionForm"); 
 
var description = $("#description", form).val();
var description = encodeURI(description);
var twist = $(this).attr("rel");
$('#twist').val(twist);
<?php } ?>
 
	 $("#check").html("Crunching..."); 
	  $("#check").html("Applying "+effect+"..."); 
	  $("#notify").html("Applying | 3secs...");
	 $('#picme').css("opacity","0.30");
	 $('#picme').css("filter","alpha(opacity=30)");
  	
		
		
<?php if ($action == "cards" || $action == "meme") {?>
var form = $("#captionForm"); 

var twist = "normal4";
var description = $("#description", form).val();
var description = encodeURI(description);
$('#twist').val(twist);
<?php } ?>


 $('#preview img').load(function() {}).attr('src', Server+'<?php echo $script ?>?mag=yes&AppNo=' + AppNo + '&<?php	 if ($action == "cards" || $action == "meme") {?>twist='+twist+'&description='+description+'&<?php } ?>x=' + x + '&y=' + y + '&image=<?php echo $original ?>&action=<?php echo $action; ?>&filter='+ effect+'&nani='+ myaccount+'#<?php rand(1,3);?>'); 
 
	
setTimeout( function(){
$('#submitX').css("display","none");
$('#submit').css("display","block");
$('#picme').css("opacity","1");
$('#picme').css("filter","alpha(opacity=100)");
$("#check").html("");
$("#notify").html(effect);
$("#notify2").html("Effect:<span class='text-info'>"+effect+"</span>");
loading_hide();
 },2500 );	
		 

});


$('.followme2').click(function() {
	
$('#submit').css("display","none");	
$('#submitX').css("display","none");			
 var effect= encodeURI(document.getElementById('effecto').value);
 var twist = encodeURI(document.getElementById('twist').value);
 loading_show();
$('#effecto').val(effect);
 
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'] ?>;
 
var form = $("#captionForm"); 
 
var description = $("#description", form).val();
var description = encodeURI(description);
 
 
	 $("#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() {
$('p').remove();
}).attr('src', Server+'<?php echo $script ?>?mag=no&AppNo=' + AppNo + '&<?php	 if ($action == "cards" || $action == "meme") {?>twist='+twist+'&description='+description+'&<?php } ?>x=' + x + '&y=' + y + '&image=<?php echo $original ?>&action=<?php echo $action; ?>&filter=' + effect+ '&nani='+ myaccount+'#<?php rand(1,3);?>');
 
 
	
setTimeout( function(){
$('#submitX').css("display","none");
$('#submit').css("display","block");
$('#picme').css("opacity","1");
$('#picme').css("filter","alpha(opacity=100)");
$("#check").html("");
$("#notify").html(effect);
$("#notify2").html("Effect:<span class='text-info'>"+effect+"</span>");
loading_hide();
 },2500 );	
 
					
					
					
 

});



$('.followps').click(function() {
	loading_show();
	noticeHide();
$('#submitX').css("display","none");
$('#submit').css("display","none");			
var effect = $(this).attr("id");
var image = window.localStorage["picha"];
$('#effecto').val(effect);
var mag= encodeURI(document.getElementById('mag').value);
var myaccount= <?php echo $_SESSION['euserid'] ?>;

 $("#check").html("Applying "+effect+"..."); 
 $("#notify").html("Applying | 5secs...");
 $('#picme').css("opacity","0.10");
	 $('#picme').css("filter","alpha(opacity=10)");

		
		
		
 $('#preview img').load(function() {
$('p').remove();
}).attr('src', Server+'photoshop.php?mag=no&AppNo=' + AppNo + '&image=<?php echo $original ?>&action=' + effect+ '&filter=none&nani='+ myaccount);
 
 
 
 
	
setTimeout( function(){
$('#submitX').css("display","block"); 
$('#submit').css("display","none"); 
$('#picme').css("opacity","1");
$('#picme').css("filter","alpha(opacity=100)");
$("#check").html("");
$("#notify").html(effect);
loading_hide();
 },5000 );	
		
		
    
 

});









$("#submitX").click(function() { 
loading_show();
noticeHide();
var effect= encodeURI(document.getElementById('effecto').value);
var image= window.localStorage["picha"];
var mag= encodeURI(document.getElementById('mag').value);
var newsid= "MTQwODY1MTE3Mw,,";
var myaccount= <?php echo $_SESSION['euserid'] ?>;
 $("#check").html("Saving..."); 
$("#notify").html("Please wait");
  			
                $.ajax
                    ({
                        type: "GET",
                         url: Server+'photoshop.php?finish=yes&AppNo=' + AppNo + '&action=' + effect+ '&filter=none&mag=yes&image=<?php echo $original ?>&filter=' + effect+ '&nani='+ myaccount,
                        data: "page=4",
                        success: function(msg)
                        {
                      
		
					  $("#check").ajaxComplete(function(event, request, settings)
                            {
                              
						 
 loading_hide();
 
	 window.location = "index.php?mode=updateReport&msg_id=<?php echo $msg_id2 ?>&action=<?php echo $action; ?>&filter=" + effect+ "";
	
		

                               
								
                            });  
	
		
                        }
                    });
					 
	




/* $('#jsonform5').submit();*/
 });





 
			
});


	</script> 
    
 <?php	 if ($action == "auto" || $action == "frame") {?>
            <style type="text/css">
      .swiper-nav img {
	margin-top: 10px;
	width: 60px;
	height: 76px;
	border-radius: 5px;
	/*box-shadow: 0px 1px 2px #ebeef5;*/
}

.swiper-nav .swiper-slide {
	width: 80px;
	height: 96px;
	text-align: center;
	float:left;
 
}
       </style>
            
        <?php } ?>    
    <?php	 if ($action == "cards" ) {?>
            <style type="text/css">
      .swiper-nav img {
	margin-top: 10px;
	width: 76px;
	height: 60px;
	border-radius: 5px;
	/*box-shadow: 0px 1px 2px #ebeef5;*/
}

.swiper-nav .swiper-slide {
	height: 80px;
	width: 96px;
	text-align: center;
	float:left;
 
}
       </style>
            
        <?php } ?>   
       <form id="magazine" method="POST">
        <input type="hidden" id="mag" name="mag"  value="yes" />
        <input id="effecto"  name="effecto" type="hidden" value="<?php echo $default; ?>" 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%" height="100%"  border="0" cellpadding="0" cellspacing="0" >

      <tr>
        
    <td width="100%" height="100%"  style="min-height:200px; "   align="center" valign="top">
    
<table width="100%" border="0">
		
		  <tr>
		    <td width="348" ><h2 style="margin-top:0px" class="post-title" id="notify2">Effects:<span class='text-info' style="text-transform: none ; "><?php echo $_GET["action"]; ?></span></h2></td>
		    <td align="right"> 
            
      
            
            
              
		     <a  id="submit" style="background-color:#F2B601" class="btn-lg btn-warning pull-right  " >Apply</a>
          
          <a  id="submitX" style="display:none" class="btn-lg btn-warning pull-right ">Apply</a>
		      
	        </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:500px; max-width:600px; background:none"> 
  
       <img class="" src="" id="picme" style="min-width:600px; width:100%; max-width:500px<?php	 if ($action == "cards") {?>; max-width:640px;min-width:600px; <?php } ?>">
       
       
         
         </div> 
      </div> 
   
    <center> <div class="badge bg-info pull-none" id="notify" style="margin-top:3px; padding:5px; padding-top:3px; padding-right:7px;padding-left:7px"></div>
    
           <?php	 if ($action == "meme" || $action == "cards") {?>  <div style=" padding-top:20px">Note: Memes in this section are user-generated and submitted by users.</div>
          <form method="get" name="captionForm" id="captionForm" style="padding-top:10px">
        
        
        
         <div class="input-group m" style="width:80%"  >
                        <input placeholder="Caption this"  value="Caption this" class="form-control message" id="description">
                        <span class="input-group-btn">
                        <button class="btn btn-primary followme2" type="button"><i class="icon-refresh"></i></button>
                        </span> </div>
        
      
        </form> 
        <?php } ?>
        </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
	  }
	  ?> 
	  
          <?php	 if ($action == "custom" || $action == "meme") {?> <?php } ?> 
    
    
    
    
    
    
     <div class="swiper-container swiper-nav" >
        <div class="swiper-wrapper"  id="swiper-wrapper">
        
             
       
 <?php 
		if($action=="filter")  
		
		 {
	  
         include("pages/filters.php");
         
		  }
         
		  	if($action=="auto")  
		
		 {
	  
         include("pages/auto.php");
         
		  }
           	if($action=="sticker")  
		
		 {
	  
         include("pages/sticker.php");
         
		  }
         
		     	if($action=="frame")  
		
		 {
	  
         include("pages/frame.php");
         
		  }
          	if($action=="meme")  
		
		 {
	  
         include("pages/meme.php");
         
		  }
		  
		  if($action=="cards")  
		
		 {
	  
         include("pages/cards.php");
         
		  }
             	if($action=="custom")  
		
		 {
	  
     include("pages/custom.php");
         
		  }
         ?>           
        </div>
      </div></td>
  </tr>
</table>
  
		 
            
    
            
            
      
          
            
   
          </td>
  </tr>
       
    </table>
 
</body>
</html>