Location: PHPKode > projects > Instant PHP/MySQL Guestbook > ipmgb/template/default/admin/_ipfilter.tpl
<!-- $Include /admin/header.inc.tpl -->
<form name="mainForm" method="POST"><!-- 
$BeginBlock update_success_b -->
<i>Changes have been saved successfully.  Number of changes: ${num_of_changes}.</i><!-- 
$EndBlock update_success_b --><!--
$BeginBlock update_failure_b -->
<img class="admgb-icon" src="${gb_root_dir}/assets/attn16.png">
    <i>Update failed.  Please see error messages inline.</i><!--
$EndBlock update_failure_b -->
<table border="0" cellspacing="0" cellpadding="2">
  <tr>
    <td width="140" align="right">&nbsp;</td>
    <td align="left" class="admgb-help">
    <img class="admgb-icon" src="${gb_root_dir}/assets/info.gif">
You should be very careful with the settings when enabling features on this page. 
The same IP address does not necessarily represent the same guest.
For example, all guests behind the same proxy server or NAT router may appear
to have the same IP address.  Being too restrictive
may inadvertently drive your guests away.    
    </td>
  </tr>
  <tr>
    <td width="140" class="admgb-heading" align="right">Volume Control</td>
    <td align="left"><hr /></td>
  </tr>
  <tr>
    <td width="140" align="right">&nbsp;</td>
    <td align="left" nowrap><input type="checkbox" value="Y" name="vol_control" <!-- $BeginBlock vol_control_b -->checked<!-- $EndBlock vol_control_b -->>
    Enable Volume Control</td>
  </tr> 
  <tr>
    <td width="140" align="right">&nbsp;</td>
    <td align="left" nowrap>Allow up to <input type="text" size="5" maxlength="5" name="vol_control_minlen" value="${vol_control_minlen}"> message(s)
    in <input type="text" size="5" maxlength="5" name="vol_control_maxlen" value="${vol_control_maxlen}"> minute(s) from the same IP address.</td>
  </tr><!-- 
$BeginBlock vol_control_error_b -->
  <tr>
    <td width="140" align="right">&nbsp;</td>
    <td align="left" class="admgb-error">
    <img class="admgb-icon" src="${gb_root_dir}/assets/attn16.png">
    The number of messages must be at least 1 and must not exceed 65535.
    The time frame in minutes must be at least 1 and must not exceed 63355.
    </td>
  </tr><!-- 
$EndBlock vol_control_error_b -->
  <tr>
    <td width="140" class="admgb-heading" align="right">IP Address Filter</td>
    <td align="left"><hr /></td>
  </tr>
  <tr>
    <td width="140" align="right">&nbsp;</td>
    <td align="left" nowrap><input type="checkbox" name="ip_filter_enabled" value="Y" <!-- $BeginBlock ip_filter_b -->checked<!-- $EndBlock ip_filter_b -->>
        Enable IP Address Filter
    </td>
  </tr>
  <tr>
    <td width="140" align="right">&nbsp;</td>
    <td align="left" class="admgb-help">
<img class="admgb-icon" src="${gb_root_dir}/assets/info.gif">
When a guest's IP address matches any of the IP address patterns, he or she will not be allowed to sign your guestbook.</td>
  </tr>
  <tr>
    <td width="140" align="right">&nbsp;</td>
    <td align="left" nowrap><hr/></td>
  </tr>
  <tr>
    <td width="140" align="right">&nbsp;</td>
    <td align="left" class="admgb-help">
Enter a pattern and press <b>Add</b> to add the pattern to the list.
To remove patterns, select the patterns you want to remove and press <b>Remove</b>.
<br/><br/>
    </td>
  </tr><!--
$BeginBlock ip_pattern_error_b -->
  <tr>
    <td width="140" align="right">&nbsp;</td>
    <td align="left" class="admgb-error">
    <img class="admgb-icon" src="${gb_root_dir}/assets/attn16.png"><!--
$BeginBlock ip_format_error_b -->
    Invalid IP address pattern.<!--
$EndBlock ip_format_error_b --><!--
$BeginBlock ip_exists_error_b -->
    The IP address either exists or is already covered by an existing pattern.<!--
$EndBlock ip_exists_error_b -->
    </td>
  </tr><!--
$EndBlock ip_pattern_error_b -->
  <tr>
    <td width="140" align="right">&nbsp;</td>
    <td align="left">
    <table class="admgb-layout">
    <tr><td colspan="2" align="left">
    <input type="text" size="3" maxlength="3" name="octet0", value="${octet0}">.<input type="text" size="3" maxlength="3" name="octet1", value="${octet1}">.<input type="text" size="3" maxlength="3" name="octet2", value="${octet2}">.<input type="text" size="3" maxlength="3"  name="octet3", value="${octet3}">
    <input type="submit" name="add_ip" value="Add">
    </td></tr><!--
$BeginBlock ip_list_b --><!--
$BeginBlock ip_b -->
    <tr><td>${ip}</td><td align="center"><input type="checkbox" name="ip_id[]" value="${id}"></td></tr><!--
$EndBlock ip_b -->
    <tr><td colspan="2" align="right"><input type="submit" name="remove_ip" value="Remove"></td></tr><!--
$EndBlock ip_list_b -->
    </table>
    </td>
  </tr> 
  <tr>
    <td width="140" align="right">&nbsp;</td>
    <td align="left" nowrap>&nbsp;</td>
  </tr>
  <tr>
    <td width="140" align="right">&nbsp;</td>
    <td align="left" class="admgb-help">
1. Use <b>*</b> to represent the whole range of an octet.  If <b>*</b> is used for an octet, the lower octets must be set to <b>*</b> as well.
For example, <b>192.168.*.100</b> is not a valid pattern, while <b>192.168.*.*</b> is valid.
    </td>
  </tr>
  <tr>
    <td width="140" align="right">&nbsp;</td>
    <td align="left" class="admgb-help">
2. Pattern <b>*.*.*.*</b> is not allowed.
If you want to stop accepting new messages, go to <a class="admgb" href="composition.${php_extension}">Composition</a>
and select <i>No</i> for <i>Accept Messages</i>.
    </td>
  </tr>
  <tr>
    <td width="140" align="right">&nbsp;</td>
    <td align="left" nowrap><hr/></td>
  </tr>
  <tr>
    <td width="140" class="admgb-heading" align="right">&nbsp;</td>
    <td align="left">
    <input type="submit" name="update" value="Update"><!--
$BeginBlock update_reminder_b -->
<span class="admgb-help">
<img class="admgb-icon" src="${gb_root_dir}/assets/attn16.png"><i>
Reminder: You have made changes that can only be submitted by pressing the <b>Update</b> button.
Press <b>Update</b> if you want to submit the changes now.
</i></span><!--
$EndBlock update_reminder_b -->
    </td>
  </tr>         
  <tr>
    <td width="140" align="right">
    <img src="${gb_root_dir}/assets/t.gif" width="140" height="1" border="0" alt="" title=""/>
    </td>
    <td align="left">&nbsp;</td>
  </tr>       
</table>
</form><!-- 
$Include /admin/footer.inc.tpl -->
Return current item: Instant PHP/MySQL Guestbook