Location: PHPKode > scripts > OekakiPoteto > oekakipoteto/banlist.php
<? 
include('dbconn.php');
include('flagchk.php');
$result = mysql_query("SELECT usrname,usrpass, usrflags FROM ".$OekakiPoteto_MemberPrefix."oekaki WHERE usrname='$OekakiU'");
$row = mysql_fetch_array($result);
$usrflags = $row[usrflags];
if($OekakiPass != $row[usrpass]){
header('Location: index.php');
exit;
}
if (!check_flag('O') && !check_flag('S') && !check_flag('A')) {
	header('Location: error.php?error='.urlencode("You do not have the credentials to ban users."));
exit;
}
mysql_close($dbconn);
$fd = fopen ("hosts.txt", "r");
$contents = fread ($fd, filesize ("hosts.txt"));
fclose ($fd);
$fd2 = fopen ("ips.txt", "r");
$contents2 = fread ($fd2, filesize ("ips.txt"));
fclose ($fd2);
?>
<html>
<?
include('header.php');
?>
<p></p>
<br><br>
<table width="<?=$hWidth?>" cellpadding="<?=$hCellPadding?>" align="center" cellspacing="2" class="infotable">
  <tr> 
    <td> 
      <form name="form1" method="post" action="functions.php">
        <table width="75%" border="0" cellspacing="0" cellpadding="0" align="center" class="infotable">
          <tr> 
            <td class="header"><?=$langop_banip_editiplist?></td>
          </tr>
          <tr> 
            <td> 
              <div align="center"><?=$langop_banip_editiplistsub?><br>
                <textarea name="ipban" cols="40" rows="5" class="multiline"><?=$contents2?></textarea>
              </div>
            </td>
          </tr>
          <tr> 
            <td class="header"><?=$langop_banip_edithostlist?></td>
          </tr>
          <tr> 
            <td> 
              <div align="center"><?=$langop_banip_edithostlistsub?><br>
                <textarea name="hostban" cols="40" rows="5" class="multiline"><?=$contents?></textarea>
                <br>
                <input type="submit" name="banlist" value="Edit" class="submit">
              </div>
            </td>
          </tr>
        </table></form>
    </td>
  </tr>
</table>
</body>
<? include('footer.php'); ?>
Return current item: OekakiPoteto