Unsupported scripts and control panel web app for a hosting company
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

adminaddipban.php 1.1KB

12345678910111213141516171819202122232425262728293031
  1. <?PHP if (!defined('ADMIN') || !ADMIN) { die('Admins only'); } ?>
  2. <form action="<?PHP echo CP_PATH; ?>bans" method="post">
  3. <div class="block">
  4. <h2>Add IP ban</h2>
  5. <div class="innerblock">
  6. <p class="blurb">
  7. IP Addresses are strictly matched (i.e., no ranges are allowed).
  8. The reason specified is exposed to the banned user, so keep it civil.
  9. Expirary time should be formatted as specified <a href="http://www.gnu.org/software/tar/manual/html_node/tar_109.html">here</a>. Most commonly you'll just
  10. want '+1 day' or so.
  11. </p>
  12. <table class="form leftpad">
  13. <tr>
  14. <th><label for="ip">IP Address</label></th>
  15. <td><input type="text" name="ip" class="inflat"></td>
  16. </tr>
  17. <tr>
  18. <th><label for="reason">Reason</label></th>
  19. <td><input type="text" name="reason" class="inflat"></td>
  20. </tr>
  21. <tr>
  22. <th><label for="expirary">Expirary</label></th>
  23. <td><input type="text" name="expirary" class="inflat"></td>
  24. </tr>
  25. <tr><td colspan="2" style="text-align: right;">
  26. <input type="submit" value="Add">
  27. </td></tr>
  28. </table>
  29. </div>
  30. </div>
  31. </form>