Add search field, this may make things easier to find!

This commit is contained in:
Mark Schouten 2014-07-03 16:05:01 +02:00
parent 816790ce4e
commit 57a3929f10
3 changed files with 30 additions and 4 deletions

View file

@ -182,6 +182,13 @@ if ($action == "list" or $action== "listslaves") {
if (check_owner($zone['name']) === FALSE)
continue;
if (isset($_POST['domsearch'])) {
$q = $_POST['domsearch'];
if (!preg_match("/$q/", $zone['name']) == 1) {
continue;
}
}
$zone['name'] = htmlspecialchars($zone['name']);
$zone['owner'] = get_zone_owner($zone['name']);
if ($action == "listslaves" and $zone['kind'] == "Slave") {