( ′∀`)σ≡σ☆))Д′)レ(゚∀゚;)ヘ=З=З=Зε≡(ノ´_ゝ`)ノ 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/../catereporta.php
<?php
 $PicturePath = "photo/";
 if (empty($page)){
$page = 0;
}
$record = 20;

if ($_GET["delepisode"] =="yes") {
$db->delepisode($catid,$PicturePath);
}
if (!empty($addepisode)) {







					   $tempuserfile = $_FILES['userfile']['tmp_name'];
					   $tempuserfile_name = $_FILES['userfile']['name'];
					   
					   if ((!empty($tempuserfile)) && (!empty($tempuserfile_name))) {
								$pathinfo = pathinfo($tempuserfile_name, PATHINFO_EXTENSION);
					if(!in_array(strtolower($pathinfo), array('jpg','png','gif')))
					{
					header('Location: ?mode=cateme&msg=Invalid File Type!<br>') ;
					}
					   $userfile = $tempuserfile;
					   $userfile_name = $tempuserfile_name;
					   }
					   
					  
					   if ((!empty($userfile)) && (!empty($userfile_name))) {   
					  $videouser = $_SESSION['euserid'];
					   $userfile_name = preg_replace('/[\ ]/', '-', $userfile_name);
					   $userfile_name = $videouser.$userfile_name;
					
					   $dest1 = $PicturePath.$userfile_name;
						 copy($userfile, $dest1); 
						 session_start(); 
	  		$_SESSION['fn']= $userfile_name; 
					 
					$db->addepisode($cat,$description,$slug,$parentid,$userfile_name);
					  unset($_SESSION['fn']);
					    
					   
					   }









}
if (!empty($editepisode)) {
$db->editepisode($catalogname,$description,$catid);
}
$result = $db->getallepisodes($page,$record);
?>


<script language="JavaScript" type="text/javascript" src="js/jquery-1.3.2.min.js"></script>
<script language="JavaScript" type="text/javascript" src="js/jquery.validate.js"></script>
  <script>
  $(document).ready(function(){
    $("#myform").validate();
	
  });
  </script>
 
    
    <table id="Table_01" width="100%" height="537" border="0" cellpadding="0" cellspacing="0" style="  color:#FFF;background-position:bottom; background-repeat:no-repeat; "  >
	<tr>
		<td>
        
         
     

<table id="Table_01" width="100%" height="537" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td>
			<img src="images/categories.png" width="235" height="54"></td>
	  <td  width="678" height="54" align="center" background="images/mycontent_07.png">
	    <table width="678" border="0">
  <tr>
    <td align="center" style="color:#FFF">&nbsp;</td>
    <td width="100" align="right"> 
 
 
    
    
    
    
    
     </td>
  </tr>
</table>

             
             
             </td>
		<td width="50" height="54" >&nbsp;</td>
		<td width="51" height="54" >&nbsp;</td>
	</tr>
	<tr>
		<td colspan="4" width="919" height="482" valign="top" align="left" style="color:#FFF; font-size:14px" >
		  
		  
		  
		  
		  
		  
		  
		  
		   
		    
		    <?php
              if (!empty($result)) {
	        foreach ($result as $key => $val) {
	        $catalogid = stripslashes($val["catalogid"]);
	        $catalogname = stripslashes($val["catalogname"]);
	        $parentid  = stripslashes($val["parentid"]);
			 $picture  = stripslashes($val["picture"]);
	        $parentname = $db->getcatalognamebyid($parentid);
              ?>
              
              
              
              
              <table id="Table_01" width="896"  height="76" border="0" cellpadding="0" cellspacing="0" style="background-image:url(images/base.png);margin-left:100px;background-repeat:no-repeat; margin-bottom:5px; margin-top:5px">
	<tr>
		<td  width="896" height="76" style="padding:5px">
        
        
        <table width="870" cellspacing="0" cellpadding="0">
         
          <tr >
           
            <td width="64" valign="middle"> 
            
            
            
            
            
            
            
            
            <img src="taswira.php?width=100&height=60&cropratio=1.666666666666667:1&image=/v/uploads/gthumbs/<?php print "$picture"; ?>" alt="edit thumb"  title="Published: <?php echo $adddate ?>"  width="100" height="60" style=" margin-left:2px;-moz-border-radius : 3px 3px 3px 3px:-webkit-border-radius : 3px 3px 3px 3px;border-radius : 3px 3px 3px 3px;"/></td>
            <td width="100%" valign="middle"><div align="left" style=" padding-left:10px; color:#FFF; font-size:14px"  title="Published: <?php echo $adddate ?>" ><?php print "$catalogname"; ?></div></td>
          
               
               
           
           <!-- <td width="54" valign="middle" >
                          <?php
                switch($isdisplay){
				
				 case "3":
                ?>  
                          <img src="images/distributed.png" width="40"  alt="Pending Distribution" />
<?php
                break;
                
				
				 case "2":
                ?>  
                   <img src="images/distributionpending.png" width="40"  alt="New  Distribution Added But Pending" />
<?php
                break;
                
                
                case "1":
                ?>  
                        <img src="images/distribute.png" width="40"  alt="Distributed"/>
<?php
                break;
                
                case "0":
                ?> 
                       <img src="no.png" alt="not featured" />  
                          <?php
                break;                
                }
                ?>
               </td>  --> 
                 
                 
                 
                 
  
                 
                 
                 
                 
                 
              
                   <td  width="40"  valign="middle" >  </td>
               
                    <td width="30">
                    <a href="?mode=editcate&catid=<?php print "$catalogid"; ?>" class="en_b"><img src="images/edit.png" width="30" hspace="10" alt="delete" /></a> 
                     </td>    
                  
             
                    <td width="30">
                    <a href="?mode=cateme&delepisode=yes&catid=<?php print "$catalogid"; ?>" class="en_b"><img src="images/declined.png" width="30" hspace="10" alt="delete" /></a> 
                     </td>    
                  
              </tr></table>
              
              </td>    
                  
              </tr></table>
              
              
              
              
		    
		     
 
		      
                       
		    <?php
              }
              }
              ?>                       
		    
		   
		  
		  
		  
		  
		  
		  
		  
		  
		  
		  
		  
		  <?php
              if (empty($result)) {?> 
		  
		  <img src="images/notfound.png" width="170" height="41" />  
		 
		  <?php  } ?>
		  
		  
		  
		  <br>
		  <br>
		  <br>
		  
		  
		  
		  
		  
		  
		  
		  
		  
		  
		  
		  
		  
		  
		  
		  
		  
		  
		  
		  
		  
		  
		  
		  
		  
		  
		  
		  
		  
		  
		  
		  
		  
		  
		  
		  
		  
		  <br> 
		  <img src="images/addcat.png" width="503" height="54" /><br>
		  
		  
		  
		  <form action="?mode=cateme" method="POST" ENCTYPE="multipart/form-data">        
		    <table width="700" border="0"cellspacing="1" cellpadding="2" style="color:#FFF">
		      <tr > 
		        <td width="143"  >Category Name :</td>
		        <td width="546"  ><input name="cat" type="text" size="50"  style=" width:300px; height:50px; font-size:16px;-moz-border-radius : 5px 5px 5px 5px;-webkit-border-radius : 5px 5px 5px 5px;border-radius : 5px 5px 5px 5px;margin:10px"></td>
		        </tr>
		      <tr > 
		        <td ><?php print "$admin_description"; ?> :</td>
		        <td ><textarea name="description" cols="40" rows="5"v style=" width:300px; height:200px; font-size:16px;-moz-border-radius : 5px 5px 5px 5px;-webkit-border-radius : 5px 5px 5px 5px;border-radius : 5px 5px 5px 5px;margin:10px"></textarea></td>
		        </tr>
		      
		      
		      
		      <tr> 
		        <td >Category Picture</td>
		        <td ><input name="userfile" type="file"  size="30"></td>
		        </tr>
		      
		      <tr > 
		        <td >&nbsp;</td>
		        <td ><input name="addepisode" type="submit" class="large ezbutton green" style=" margin-top:2px;border:0px;width:200px; margin-right:5px" value="Add Category"></td>
		        </tr>
		      </table>
		 
		    </form>
		  
		  
		  
		  
		  
		  
		  
		  
		  </td>
	</tr>
	<tr>
		<td>
			<img src="images/spacer.gif" width="140" height="1" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="678" height="1" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="50" height="1" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="51" height="1" alt=""></td>
	</tr>
</table>  </td></tr></table>