mirror of
https://github.com/tuxis-ie/nsedit.git
synced 2025-06-07 00:47:00 +03:00
Add search field, this may make things easier to find!
This commit is contained in:
parent
816790ce4e
commit
57a3929f10
3 changed files with 30 additions and 4 deletions
|
@ -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") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue