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
+
+DNS Admin
+
+if (level(10))
+{
+ ?>User Admin Synchronize Database
+}
+?>
+
+Type a hostname or a record in the box below and press search to see if the record exists in the system.
+
+
+
+
';
+
+ // let's check if we found any domains ...
+ if (count($search_result) == 2 && count($search_result['domains']))
+ {
+ ?>
+ Domains found:
+
+
+
+ |
+ Name |
+ Records |
+ Owner |
+
+
+
+
+ ';
+ }
+ else
+ {
+ echo ' ';
+ }
+ ?>
+ |
+ =$d['name']?> |
+ =$d['numrec']?> |
+ =get_owner_from_id($d['owner'])?> |
+
+
+
+
+
+ Records found:
+
+
+
+ |
+ Name |
+ Type |
+ Content |
+ Priority |
+ TTL |
+
+
+
+
+
+
+
+
+ |
+ =$r['name']?> |
+ =$r['type']?> |
+ =$r['content']?> |
+ =$r['prio']?> | | =$r['ttl']?> |
+
+
+
+
+
+
+
+ Nothing found for query "=$_POST['q']?>"
+ |
+
+
+
+ }
+
+}
+include_once('inc/footer.inc.php');
+?>
+