- <td colspan="2">
- <label for="bantype">Apply action: </label>
- <select name="bantype" id="bantype">
- <option value=""></option>
- <optgroup label="Bans">
- <option value="gline">GLine</option>
- <option value="gzline">GZLine</option>
- <option value="kill">Kill</option>
- </optgroup>
- </select></td><td colspan="2">
- <label for="banlen_w">Duration: </label>
- <select name="banlen_w" id="banlen_w">
- <?php
- for ($i = 0; $i <= 56; $i++)
- {
- if (!$i)
- echo "<option value=\"0w\"></option>";
- else
+ <td colspan="2" class="<?php echo $can_ban ? "" : "disabled"?>">
+ <label for="bantype">Apply action: </label>
+ <select name="bantype" id="bantype">
+ <option value=""></option>
+ <optgroup label="Bans">
+ <option value="gline">GLine</option>
+ <option value="gzline">GZLine</option>
+ <option value="kill">Kill</option>
+ </optgroup>
+ </select></td><td colspan="2">
+ <label for="banlen_w">Duration: </label>
+ <select name="banlen_w" id="banlen_w">
+ <?php
+ for ($i = 0; $i <= 56; $i++)