HEX
Server: Apache
System: Linux msm5694.mjhst.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User: camjab_ssh (1000)
PHP: 5.3.29
Disabled: NONE
Upload Files
File: /home/httpd/html/baretube.com/admin/pornstars.php
<? 
require "header.php"; 

if($_POST['niche']) {
	foreach($_POST['niche'] as $i) {
		if(is_numeric($i)) {
			mysql_query("DELETE FROM pornstars WHERE record_num = '$i'");
			mysql_query("DELETE FROM content_pornstars WHERE pornstar = '$i'");
		}
	}
}
?>

     <div id="right_column">
        <!-- RIGHT -->
        <div id="right_top">
        	<div id="right_home"></div>
            <div id="right_right">  
            <a href="index.php">Admin Home</a>          
            <span><a href="pornstars.php">Pornstars</a></span>  
            </div>
        </div>
        
        
        
        <div id="right_bg">
        
      		<h2>Edit<strong>Pornstars</strong></h2>
            
            <div id="index_left" style='width: 100%;'>            
           
<form method="post" action=''>        

  <table border="0" align="center" cellpadding="3" cellspacing="0" class='pagetable'>
  	<thead>
    <tr>
      <th width="131" align='left'>Thumbnail</th>
      <th width="446" align='left'>Name</th>
      <th width="47" align="center">Edit</th>
      <th width="52" align="center">Delete</th>
    </tr>
    </thead>
    
<?
$bgcolor = '#ffffff';
$result = mysql_query("SELECT * FROM pornstars ORDER BY name ASC");
while($row = mysql_fetch_array($result)) { 
?>
    <tr bgcolor = '<? echo $bgcolor; ?>'>
      <td valign="top" class="style4"><? if($row[thumb]) { ?>
        	<img src="<? echo $misc_url; ?>/<? echo $row[thumb]; ?>" alt="<? echo $row[name]; ?>" height="90" width="120" border=0 />						 		<? } else { ?>
            <img src="<? echo $misc_url; ?>/catdefault.jpg" alt="<? echo $row[name]; ?>" height="90" width="120" border=0 />
        <? } ?></td>
      <td valign="top" class="style4">
	  <? echo $row[name]; ?>
      </td>
      <td align="center" valign="top"><a href="edit_pornstar.php?id=<? echo $row[record_num]; ?>">Edit</a></td>
      <td align="center" valign="top"><input name="niche[]" type="checkbox" class="style4" value="<? echo $row[record_num]; ?>" /></td>
    </tr>
<? 
if($bgcolor == '#ffffff') { $bgcolor = "#EBEBEB"; } else { $bgcolor = '#ffffff'; }
}
?>
    <tr bgcolor = '<? echo $bgcolor; ?>'>
      <td colspan="5" class="style4"><center><br />
           <input name="Submit" type="submit" value="Delete Selected" />
      </center></td>
    </tr>
</table>
</form>
           
           
            </div>
            
          
        
        </div>
        
        <div id="right_bottom"></div>
       
        <!-- RIGHT -->
        
        
        
        <!-- STATYSTYKI -->
      
        
      
        </div>
       <!-- STATYSTYKI -->       
        
    
    
    </div>
  



</div>


      
        





<? require "footer.php"; ?>