( ′∀`)σ≡σ☆))Д′)レ(゚∀゚;)ヘ=З=З=Зε≡(ノ´_ゝ`)ノ 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/import.php
 <?php



 if(empty($_GET["design"]))
 {

	 header("Location: ".$siteaddress."mode.php?mode=importer&choose=data&campaign=create"); exit();

	 
 }


$catalogidX = $_COOKIE['euserid'];
$newsid = $_GET['design'];
 $newsid = $db->base64url_decode($newsid);

  $PhotoshopDetails = $db->checkPhotoshopDetails($catalogidX,$newsid);
   if(empty($PhotoshopDetails))
 {
	 header("Location: ".$siteaddress."mode.php?mode=importer&choose=data&campaign=create"); exit();

	 
 }
  
					if(!empty($PhotoshopDetails))
					{ 
						
					 
					$idImport= $PhotoshopDetails[0]["newsid"];
					   $titleImport= $PhotoshopDetails[0]["title"];
					  $titleImport= $PhotoshopDetails[0]["title"]; 
					   $widthDesign= $PhotoshopDetails[0]["w"]; 
					 $heightDesign= $PhotoshopDetails[0]["h"];
					   $fileImport= $PhotoshopDetails[0]["json"];
					  $picture= $PhotoshopDetails[0]["picture"];
					 
					 
  $url=$siteaddress2."/v/uploads/json/$fileImport";
// Initialize a CURL session. 
$ch = curl_init();  
  
// Return Page contents. 
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 
  
//grab URL and pass it to the variable. 
curl_setopt($ch, CURLOPT_URL, $url); 
  
$url = curl_exec($ch); 
/* $url = addslashes("[$url]");*/  
/*print_r( $characters = json_decode($url,true));	*/
  $url = curl_exec($ch); 
$urlArray = str_replace("'","",$url);
 $Description = json_decode($urlArray , true);
 //print_r($Description);
 $images = $Description['brandEngine']['brandLocation']['images'];
 
	
$arrSpits=explode("/", $images);
$arrSize=count($arrSpits);

$desc = $arrSpits[$arrSize-3];//Output: and more	
	
    $categorys = $Description['brandEngine']['categorys']['name'];
		$brandLayers = $Description['brandEngine']['brandLayers'];	
		$brandType = $Description['brandEngine']['brandType']['0'];
			$brandLayerOrders = $Description['brandEngine']['brandLayerOrders']['default'];	
			
						 
			}
		
		
 //print_r($brandLayers);

//photos
 foreach ($brandLayers as $value) {
			
			$name = $value['name'];
			  $attachment = $value['attachment'].".png";
			
 }
  foreach ($brandType as $value3) {
			
			$name = $value3['name'];
			 $attachment = $value3['attachment'].".png";
			
 }
/*  foreach ($brandLayerOrders as $value2) {
			
			echo $name = $value2['name'];
			 
			
 }
 
 */
 
 //photos
 foreach ($brandLayers as $value) {
			
			$name = $value['name'];
			  $attachment = $value['attachment'].".png";
			
 }
  ?>

    <link rel="stylesheet" href="pages/landing/mybrand/css/bootstrap.min.css"/>
    <link rel="stylesheet" href="pages/landing/mybrand/css/font.css"/>
    <link rel="stylesheet" href="pages/landing/mybrand/css/plugins.css"/>
    <link rel="stylesheet" href="pages/landing/mybrand/css/style.css"/>

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->

 
<div class="luna-loader-container">
    <div class="luna-loader"></div>
</div>
<div class='container' style="margin-top:70px">
   
    <div class='luna-signup-container'>
        <div class="row">
            <div class='col-sm-3'>

                <div class='luna-signup-left'>
                    
                    <div class="luna-navigation">
                        <a class="toPrev prevStep"><i class="icon icon-arrow-up2"></i></a>
                        <ul class="dots"></ul>
                        <a class="toNext nextStep"><i class="icon icon-arrow-down2"></i></a>
                    </div>
                </div>
            </div>
            <div class='col-sm-9'>
                <div class='luna-signup-right'>
                    <div class="container-fluid">
                        <div class='steps-count'>
                            STEP <span class="step-current">1</span>/<span class="step-count"></span>
                        </div>
   
		                   
                     
                     <!-- images upload form -->
<?php /*?><form method="post" id="uploadForm" enctype="multipart/form-data" action="upload.php">
    <label>Choose Images</label>
    <input type="file" name="images[]" id="images" multiple >
    <input type="submit" name="submit" value="UPLOAD"/>
</form><?php */?>

<!-- display upload status -->
<div id="uploadStatus"></div> <?php 


 
 ?>
                     
                     
                        <form action='' name='signupForm' autocomplete="off">
                            <div class="luna-steps">
                                 <input name="catalogid"  type="text" style="display:none"  value="<?php echo $resultX[0]['catalogid']; ?>">
                                
                                

         
                                	<?php include("pages/landing/photoshop/step1.php"); ?> 
                                	<?php include("pages/landing/photoshop/step2.php"); ?> 

                               
                            </div>
                        </form>
                        <div class='button-container'>
                            <div>
                                <a href="javascript:void(0)" class="btn btn-red btn-rounded nextStep" tabindex="0">Continue →</a>
                                
                              <?php /*?>  <span>or press "Enter"</span><?php */?>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div> 
    </div>
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    <?php if (!empty($_GET["alert"]))  {?>  <div class="alert alert-warning alert-block ">
              <button type="button" class="close" data-dismiss="alert" style="color:#666">Close</button>
              <h4><i class="icon-bell-alt"></i>Alert!</h4>
              <p><?php echo  $_GET["alert"] ;  ?>  </p>
            </div><?php } ?>  
    
    
    
    
    
    
  
<?php /*?>Limit yourself to not more than 4 colors, and use each color consistently throughout your branding.<br>
Be creative with  typography, but limit your font choices to not more than 3.
<?php */?>

</div>





       


<script type="text/javascript" src="pages/landing/photoshop/js/jquery-3.2.1.min.js"></script>
<script type="text/javascript" src="pages/landing/photoshop/js/bootstrap.min.js"></script>
<script type="text/javascript" src="pages/landing/photoshop/js/jquery.bxslider.min.html"></script>
<script type="text/javascript" src="pages/landing/photoshop/js/jquery.uniform.min.js"></script>
<script type="text/javascript" src="pages/landing/photoshop/js/jquery.mask.min.js"></script>
<script type="text/javascript" src="pages/landing/photoshop/js/bootstrap-select.min.js"></script>
<script type="text/javascript" src="pages/landing/photoshop/js/sweetalert.min.js"></script>
<script type="text/javascript" src="pages/landing/photoshop/js/jquery.validate.min.js"></script>
<script type="text/javascript" src="pages/landing/photoshop/js/bootstrap-datepicker.min.js"></script>
<script type="text/javascript" src="pages/landing/photoshop/js/main.js"></script>
<!-- endbuild -->