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

include("../includes/processFunctionsX.php");

if(!empty($delete))
 {
 $delete = $db->base64url_decode($delete);
 $db->delconversation_data($delete);

 }
  $view1 = $db->base64url_decode($view);
if(!empty($msg_id))
{
 $theLayout = $db->base64url_decode($msg_id);
 $resultLayout = $db->getstar2($theLayout);
	 
 }
 else
 {
	$resultLayout = $db->getfavstartag();
	 
 }

?>


<input type="text"   style=" display: none"   id="convoIdX" value="">
<input type="text"   style=" display: none"   id="tweetIDX" value="">
<input type="text"   style=" display: none"   id="newthemeX" value="<?php echo ucwords($resultLayout[0]["id"]);?>">
<input type="text"   style=" display: none"   id="mythemeX" value="<?php echo ucwords($resultLayout[0]["title"]);?>">
<input type="text" style=" display: none"  id="postpictureX">

<input type="text" style=" display: none"  id="msg_idX">
<input type="text" style=" display: none"  id="wysiwygX">
<input type="text" style=" display: none"  id="realthemeX">
<input type="text" style=" display: none"  id="themeidX">
<input type="text" style=" display: none"  id="picX" value="<?php echo ucwords($resultLayout[0]["picture"]);?>">
<input type="text" style=" display: none"  id="updatevalX" value="HashBrand allows you to brand and beautify your social media posts..."> 
 


 
 
        
         
     
<?php $msg_id_0 = $db->Profile_Pic_ID(); 
      $msg_id_0 = $db->base64url_encode($msg_id_0);
	  $resultC = $db-> idtoCampaign($catalogidX,$view1); 
	   
 $resultTheme = $db-> getmytheme($resultC[0]["themeid"]);

 ?>
  
 
 
                           <?php $msg_id = $_GET["msg_id"]; $view = $_GET["view"];
	if(empty($msg_id) && empty($view))
 {?> <?php $campaign = $_GET["campaign"];
	if($campaign!="edit" && $campaign!="create")
 {?> 
 

	              <table width="100%" border="0">
  <tr>
    <td>  <script type="text/javascript" src="<?php echo $siteaddress;?>js/myPhotoshop.js"></script>
             <div id="containerReportaZ" >
                  <div id="loadingReportaM"></div>
             
                  <div class="dataReportaM" ></div>
                  <div class="paginationReportaM" ></div>
    </div></td>
  </tr>
</table>	     
     
 
  </header>

 
    
 
   <?php } ?>
                       
                        <?php } ?>
                       
           
	

 <?php $campaign = $_GET["campaign"];
	if(!empty($campaign) && ($campaign=="create"))
 {?> 


<div id="tabcontent" class="tab-content">

<div class="tab-pane fade  in <?php $campaign = $_GET["campaign"];
	if(!empty($campaign) && ($campaign == "create"))
 {?>active<?php } ?>" id="start">



    <?php $campaign = $_GET["campaign"];
    if(!empty($campaign))
    {?>


        <section class=" " >
            <header class="panel-heading " >
                <table width="100%" border="0">
                    <tr>
                        <td><b  class="text-success h4">Create Design and add JSON File</b></td>
                        <td><?php /*?>&nbsp;<button type="button" class="btn btn-white startCampaign pull-right"><i class="icon-chevron-left"></i>Back</button><?php */?></td>
                    </tr>
                </table>


                <?php /*?> <table width="100%" border="0">
  <tr>
    <td width="100%">  <b  class="text-success h4">Start a Campaign</b>    </td>
    <td>  </td>

    </tr></table><?php */?>  <?php /*?><div class="line line-dashed"></div><?php */?>
                <?php /*?> <div class="line line-dashed"></div><?php */?>
                <span class="h4 block m-b-lg<?php /*?> m-t-lg<?php */?> ">  </span>




                <div id="err"></div>

                <form id="form" action="<?php echo $siteaddress;?>v/ajaxupload.php" method="post" enctype="multipart/form-data">


                    <div class="form-group col-lg-12" >

                        <input type="text" name="title" id="title"  placeholder="Unique title of your design" class="form-control input-lg ">      </div>


                    <div class="form-group col-lg-12">

                        <input type="text" name="width" id="width"  placeholder="Width of your design in px" class="form-control input-lg ">      </div>

                    <div class="form-group col-lg-12">

                        <input type="text" name="height" id="height"  placeholder="Height of your design in px" class="form-control input-lg ">      </div>

                    <div class="form-group col-lg-12">
                        <input  class="btn btn-white" id="uploadImage" type="file" <?php /*?> accept="image/*" <?php */?>name="image" /></div>
                    <div id="preview" style="display: none"><img src="<?php echo $siteaddress;?>pages/splash/stock/list.png" /></div>




                    <input id="startCampaign" name="startCampaign" class="form-control" value="startCampaign" type="hidden">
                    <input id="realtheme" name="realtheme" class="form-control" value="<?php echo ucwords($resultLayout[0]["title"]);?>" type="hidden">
                    <input id="themeid" name="themeid" class="form-control" value="<?php echo ucwords($resultLayout[0]["id"]);?>" type="hidden"><input id="catalogid" name="catalogid" class="form-control" value="<?php echo $catalogidX;?>" type="hidden">

                    <input id="mytheme" name="mytheme" class="form-control" value="<?php if( $resultLayout[0]["isdisplay"] == 13) {?>machine<?php }else{?><?php echo ucwords($resultLayout[0]["title"]);?><?php }
                    ?>" type="hidden">







                    <div class="form-group col-lg-12" style="margin-top:20px;">
                        <input class="btn btn-warning " type="submit" value="Import Design"></div>
                </form>




                <script>

                    $(document).ready(function (e) {
                        $("#form").on('submit',(function(e) {
                            e.preventDefault();
                            $.ajax({
                                url: "<?php echo $siteaddress;?>v/ajaxuploadjson.php",
                                type: "POST",
                                data:  new FormData(this),
                                contentType: false,
                                cache: false,
                                processData:false,
                                beforeSend : function()
                                {
                                    //$("#preview").fadeOut();
                                    $("#err").fadeOut();
                                },
                                success: function(data)
                                {
                                    if(data=='invalid')
                                    {
                                        // invalid file format.
                                        $("#err").html("Invalid File !").fadeIn();
                                        $("#check").html("Invalid File !").fadeIn();
                                    }
                                    else
                                    {
                                        if(data=='0')
                                        {
                                            $("#err").html("Duplicate design title. Choose another  ").fadeIn();return;
                                        }
                                        window.location = "mode.php?mode=photoshop&design="+data;

                                        // view uploaded file.
                                        $("#preview").html(data).fadeIn();
                                        $("#form")[0].reset();

                                    }
                                },
                                error: function(e)
                                {
                                    $("#err").html(e).fadeIn();
                                }
                            });
                        }));
                    });
                </script>
















            </header></section>







        <?php /*?><div class="  checkbox " style="font-size:12px;  " >

              Use of Hashbrand signifies acceptance of our terms and conditions. HashBrands last a maximum of 12hours
          </div> <?php */?>
    <?php  } ?>



</div>

         
  <?php $campaign = $_GET["campaign"];
	if(!empty($campaign) && ($campaign != "create"))
 {?><div class="tab-pane fade in active" id="campaigns">
    
 
 
  		     <section class="panel panel-default">
    <header class="panel-heading  " style=" padding-right:3px" >
		   
 
               
  </header>

 
   
    </section>
 
 
          
 
</div>  <?php } ?>  
  </div> <?php } ?>    
  

 
		
		
   <?php $campaign = $_GET["campaign"];?> 
    <?php if ($campaign=="addMessage"){ include("../newdatasets/myDataAdd.php");   }?>
   <?php if ($campaign=="edit"){ include("../newdatasets/mydataEdit.php");   }?>
  
  
  
  
  
  
  
  
                                <?php $msg_id = $_GET["msg_id"]; $view = $_GET["view"];
	if(!empty($msg_id) && !empty($view))
 {?> <?php $campaign = $_GET["campaign"];
	if($campaign!="edit")
 {?>  <?php  include("../newdatasets/mydataconvo.php");  ?>  <?php } ?>
                       
                        <?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>
 
 

 
 <script src="<?php echo $siteaddress;?>js/elements/bootstrap.min.js"></script>