diff -r c72d6d51f3d3 -r c255196bc447 search.php
--- a/search.php Wed Mar 12 20:45:56 2008 +0000
+++ b/search.php Tue Mar 25 22:45:31 2008 +0000
@@ -20,157 +20,117 @@
*/
require_once('inc/toolkit.inc.php');
+include_once('inc/header.inc.php');
-if (isset($_POST['s_submit']) || isset($_POST['q']))
-{
- $submitted=true;
- $search_result=search_record($_POST['q']);
+if (!(verify_permission(search))) {
+ error(ERR_PERM_SEARCH);
+ include_once('inc/footer.inc.php');
+ exit;
+
} else {
- $submitted = false;
-}
+ echo "
" . _('Search zones and records') . "
\n";
+
+ if ($_POST['submit']) {
-// we will continue after the search form ...
-include_once('inc/header.inc.php');
-?>
+ if (verify_permission(zone_content_view_others)) { $perm_view = "all" ; }
+ elseif (verify_permission(zone_content_view_own)) { $perm_view = "own" ; }
+ else { $perm_view = "none" ; }
-
- Query
-
-
-
';
+ if (is_array($result['zones'])) {
+ echo " " . _('Zones found') . ":
\n";
+ echo "