<?php
if( !defined('ISDVBBS') ){
	header('HTTP/1.0 404 Not Found');
	exit;
}
if($action=="add"){
?>
<table border="0" cellspacing="1" cellpadding="1"  align="center" class="tableborder">
  <form name="addform" method="post" action="?action=add&reaction=addok">
  <tr>
    <td colspan="2" class="tit1"><? echo $lang['ip.info1']?></td>
  </tr>
  <tr>
    <td colspan="2" height="40" class="forumrow"><b><? echo $lang['ip.info2']?></b><? echo $lang['ip.info3']?><font color="ff0000"><? echo $lang['ip.info6']?></font></td>
  </tr>
  <tr>
<td width="20%" class="forumrow"><? echo $lang['ip.info4']?></td>
    <td height="40" width="80%" class="forumrow">
      <input name="ip_address" type="text" id="ip_address" size="50">&nbsp;&nbsp;<? echo $lang['ip.info5']?>
</td>
  </tr>
  <tr>
  <td width="20%" class="forumrow1"></td>
    <td width="80%" class="td1"><input type="submit" name="Submit" value="   <?=$lang['ip.str7']?>  "></td>
  </tr>
 </form>
</table>
<?
}
else{
?>
<br>
<table width="95%" border="0" cellspacing="0" cellpadding="0"  align="center" class="tableborder">
<tr> 
<td height="23" align="left" colspan="6" class="tit1"><? echo $lang['ip.manage.info1']?></td>
</tr>
<tr align="left">
<td height="23" class="forumrow" style="text-align:center;width:15%">
<input type="submit" name="Submit" value="<? echo $lang['ip.str8']?>" style="color: #FF0000;width:80px;height:50px;border:1px outset;">
</td>
<td height="23" class="forumrow" style="LINE-HEIGHT: 140%">
<?=$lang['ip.manage.info3']?>
</td>
</tr>
<tr align="center">
<td height="25" align="center" bgcolor="#C9DEFA" width="10%"><font color="red"><?=$lang['ip.str9']?></font></a></td>
<td height="23" class="forumrow2" style="LINE-HEIGHT: 140%">
</td>
</tr>
</table>
<table border="0" cellspacing="0" cellpadding="0"  align="center" class="tableborder">
  <form name="manform" method="post" action="?reaction=editok">
  <?
	$result=$db->query("select forum_lockip from {$dv}setup");
	$ip_arr=$db->fetch_array($result);
	$iplist=str_replace("|","\r\n",$ip_arr['forum_lockip']);

	?>
  <tr>
    <td class="tdtit"><? echo $lang['ip.manage.info1']?></td>
  </tr>
  <tr>
    <td height="30" class="forumrow">
      <textarea name="ip_mem" cols="100" style="width:99%" rows="8" id="ip_mem"><? echo $iplist?></textarea></td>
  </tr>
  <tr>
    <td class="forumrow1" style="text-align:center;"><input type="submit" class="button" name="Submit" value="  <?=$lang['ip.str6']?>  "></td>
  </tr>
 </form>
</table>
<?}?>