Location: PHPKode > projects > Maian Gallery > maian_gallery/admin/data_files/ban.php
<?php

/*++++++++++++++++++++++++++++++++++++++++

  Script: Maian Gallery v2.0
  Written by: David Ian Bennett
  E-Mail: hide@address.com
  Website: http://www.maianscriptworld.co.uk

  ++++++++++++++++++++++++++++++++++++++++
  
  This File: ban.php
  Description: Ban Options
  New in v2.0

  ++++++++++++++++++++++++++++++++++++++++*/

// Make sure that this file is being called from parent file
if (!defined('INCLUDE_FILES')) {
  accessDenied($msg_script18,$msg_script19);
  exit;
}
 
?>
<div align="center">
<table width="100%" border="0" cellpadding="0" cellspacing="1" style="border: 2px solid #083253">
<tr>
    <td align="left" class="msgBox">&raquo; <b><?php echo $msg_adminmenu16; ?></b><br><br><?php echo $msg_ban; ?></td>
</tr>
</table>
<table cellpadding="0" cellspacing="0" width="100%" class="menutable">
<tr>
    <td align="left" class="leftPad">&raquo; <b><?php echo strtoupper($msg_ban2); ?></b></td>
</tr>
</table>
<form method="post" action="index.php?cmd=ban">
<input type="hidden" name="process" value="1">
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
    <td align="left">
    <table border="0" cellpadding="0" cellspacing="1" width="100%" style="border: 2px solid #083253">
    <tr>
        <td align="left" class="msgBox">
        <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td width="30%" align="left" class="tdHeight"><b><?php echo $msg_ban8; ?></b>:</td>
          <td width="70%" align="left" class="tdHeight"><input class="formbox" type="text" name="data" size="25" maxlength="250" value=""></td>
        </tr>
        <tr>
          <td valign="top" class="tdHeight">&nbsp;</td>
          <td valign="top" align="left" class="tdHeight"><br><input type="submit" class="formbutton" value="<?php echo $msg_ban9; ?>" title="<?php echo $msg_ban9; ?>"></td>
        </tr>
        </table>
        </td>
    </tr>
    </table>
    </td>
</tr>
</table>
</form>
<?php
$q_banned = mysql_query("SELECT * FROM ".$database['prefix']."banned 
                         $SQL
                         ORDER BY address
                         LIMIT $limitvalue,$limit
                         ") or die(mysql_error());
?>
<table cellpadding="0" cellspacing="0" width="100%" class="menutable">
<tr>
    <td align="left" class="leftPad" style="border-right:0">&raquo; <b><?php echo strtoupper($msg_ban3); ?></b> <?php echo (rowCount('banned')>0 ? '( <a href="index.php?cmd=ban&amp;show=email" title="'.$msg_ban11.'">'.$msg_ban11.'</a> | <a href="index.php?cmd=ban&amp;show=ip" title="'.$msg_ban12.'">'.$msg_ban12.'</a> | <a href="index.php?cmd=ban&amp;show=wildcard" title="'.$msg_ban10.'">'.$msg_ban10.'</a> | <a href="index.php?cmd=ban" title="'.$msg_ban13.'">'.$msg_ban13.'</a> )' : ''); ?></td>
    <td align="right" class="leftPad" style="border-left:0"><?php echo (rowCount('banned')>0 ? '[ <a href="index.php?cmd=ban&amp;clear=1" title="'.$msg_ban7.'" onclick="return delete_confirm(\''.$msg_javascript.'\')">'.$msg_ban7.'</a> ]' : '&nbsp;'); ?></td>
</tr>
</table>
<form method="POST" action="index.php?cmd=ban" onsubmit="return delete_confirm('<?php echo $msg_javascript; ?>')">
<input type="hidden" name="process_del" value="1">
<table width="100%" border="0" cellpadding="0" cellspacing="1" style="border: 2px solid #083253">
<?php

if (mysql_num_rows($q_banned)>0)
{
  while ($BANNED = mysql_fetch_object($q_banned))
  {
  ?>
  <tr>
    <td align="center" class="msgBox">
    <table width="100%" cellspacing="0" cellpadding="0">
    <tr>
      <td align="left" width="95%"><?php echo (strpos($BANNED->address,'@')===FALSE ?  cleanData($BANNED->address) : '<a href="mailto:'.cleanData($BANNED->address).'" title="'.cleanData($BANNED->address).'">'.cleanData($BANNED->address)); ?><?php echo (strpos($BANNED->address,'@')===FALSE ? '' : '</a>'); ?> <?php echo (strpos($BANNED->address,'*')===FALSE ? '' : '<i>('.$msg_ban10.')</i>'); ?></td>
      <td align="center"><input type="checkbox" name="ban[]" value="<?php echo $BANNED->id; ?>"></td>
    </tr>
    </table>
    </td>
  </tr>
  <?php
  }
}
else
{

?>
<tr>
    <td align="center" class="msgBox">[ <?php echo $msg_ban4; ?> ]</td>
</tr>
<?php
}
?>
</table>
<?php
// page numbers..
if (rowCount('banned',' '.$SQL)>0) {
  echo '<p align="right" class="pbutton"><input class="formbutton" type="submit" value="'.$msg_ban6.'" title="'.$msg_ban6.'"></p>';
  echo admin_page_numbers(rowCount('banned',' '.$SQL),$limit,$page);
}
?>
</form>
</div>
Return current item: Maian Gallery