diff -r 2cd8c1649ba9 -r 58094faf794d search.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/search.php Tue Apr 10 22:40:43 2007 +0000 @@ -0,0 +1,183 @@ + trancer nl> | +// | Sjeemz sjeemz nl> | +// +--------------------------------------------------------------------+ + +// Filename: search.php +// Startdate: 9-01-2003 +// Searches the database for corresponding records or domains. +// +// The sourecode for this program was donated by DeViCeD, THANKS! +// +// $Id: search.php,v 1.1 2003/01/09 23:23:39 azurazu Exp $ +// + +require_once('inc/toolkit.inc.php'); + +if (isset($_POST['s_submit']) || isset($_POST['q'])) +{ + $submitted = true; + $search_result = search_record($_POST['q']); +} + + +// we will continue after the search form ... +include_once('inc/header.inc.php'); +?> +

Search zones or records

+
+Type a hostname or a record in the box below and press search to see if the record exists in the system. + + + + + + + + + + + +
Enter a hostname or IP address
 
+ + +
'; + + // let's check if we found any domains ... + if (count($search_result) == 2 && count($search_result['domains'])) + { + ?> + Domains found: +

+ + + + + + + + + + + + + + + +
 NameRecordsOwner
+ [ delete zone ]'; + } + else + { + echo ' '; + } + ?> +
+

+ + Records found: +

+ + + + + + + + + + + + + + + + + + +
 NameTypeContentPriorityTTL
+ + [ edit record ] + [ delete record ] + +
+ + + + + +
+ Nothing found for query "" +
+ +