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

if ($Delsplashpicture=="yes") {
$db->delsplashpicture($newsid,$PicturePath);
}

if (!empty($addsplashpicture)) {

      
   $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','gif','png')))
{
header('Location: ?mode=splash&msg=Invalid File Type!<br>') ;
exit();
}

   $userfile = $tempuserfile;
   $userfile_name = $tempuserfile_name;
   }
   
   $newsid = $db->addsplashpicture($catalogid,$video,$thumb,$isdisplay);
   
   if ((!empty($userfile)) && (!empty($userfile_name))) {   
  
 $videouser = $_SESSION['user_id'];
   $userfile_name = preg_replace('/[\ ]/', '-', $userfile_name);
   $userfile_name = $videouser.$userfile_name;

   $dest1 = $PicturePath.$userfile_name;
     copy($userfile, $dest1); 
	 
	  



   $db->add_splashPicture($newsid,$userfile_name,$PicturePath);
   }
}

 

if (!empty($DP1)) {
   $db->del_splashPicture($newsid,$PicturePath);
}


 $picme2 = $db->getallsplashpictures($page,$record);

 
?>
 


 <table width="100%"   border="0" cellspacing="0" height="400" cellpadding="5"  style=" background-position:bottom; background-repeat:no-repeat; " >
  
  <tr>
    <td valign="top" > 
	 <img src="images/addsplash.png" width="503" height="54" /> 
    
      <?php
              if (!empty($picme2)) {
	        while ( list($key,$val)=each($picme2) ) {
	        $newsidme = stripslashes($val["newsid"]);
	        $catalogid = stripslashes($val["catalogid"]);
	        $title = stripslashes($val["title"]);
			 $picture = stripslashes($val["picture"]);	
			 $description = stripslashes($val["description"]);		        
	      
              ?>
 

   
   
   
   
   
     
        <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="<?php echo $siteaddress;?>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 text_limit($title,8); ?> http://mimi.co.ke/<?php while ($row_settings = mysql_fetch_array($rs_settings)) { echo  $row_settings['slug'];} ?></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=splash&newsid=<?php print "$newsidme"; ?>&catid=<?php print "$catid"; ?>&Delsplashpicture=yes" class="en_b style6 style6"><img src="images/declined.png" width="30" hspace="10" alt="delete" /></a></td>    
                  
              </tr></table>
              
              </td>    
                  
              </tr></table>
   
   
   
   
   
   
   
   
   
     
 
            
            
             <?php
              }
              }
              ?>                       
         
            
            <a href="?mode=gallery">Add Exclusive Gallery </a>
          <?php   
	  
              

$picme2 = $db->getsplashcount($page,$record); 
               if (!empty($picme2)) {
	        while ( list($key,$val)=each($picme2) ) {
			$mycount = stripslashes($val["mycount"]);
	       if ($mycount < 1)	{?>	
			
            
            
           
        
            <form action="?mode=splash" method="POST" ENCTYPE="multipart/form-data">               
        <table width="600" height="300" border="0" cellspacing="1" cellpadding="4"> 
			  
			  
			  
			  
			  
            
              <tr> 
                <td width="230"><span style="color:#FFF" > Add a Splash image for http://mimi.co.ke/<?php while ($row_settings = mysql_fetch_array($rs_settings)) { echo  $row_settings['slug'];} ?> </span></td>
                <td width="543"><input name="userfile" type="file" class="bigsearch" size="20"><input name="catalogid" type="hidden" class="bigsearch" value="<? echo $_SESSION['user_id'];?>">                          <input name="addsplashpicture" type="submit" class="large ezbutton green" style=" margin-top:2px;border:0px;width:105px; margin-right:5px" value="Add Photo" />&nbsp;</td>
              </tr>
			
             
			 
              </table>
    
          </p>
</form>

        
        
            
            
            
			<? } ?>
			
             <?php
              }
              }
              ?>    </td>
   </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>