From e3734f063ed58356f9653a81f6dea86aa55931f4 Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Sat, 17 Jun 2006 16:32:04 +0000 Subject: moved init.php improved vainfo a bit, removed checkboxes from search page --- admin/access.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'admin/access.php') diff --git a/admin/access.php b/admin/access.php index f0fa7d9b..f9e3d2be 100644 --- a/admin/access.php +++ b/admin/access.php @@ -1,7 +1,7 @@ has_access(100)) { - header("Location: http://" . conf('web_path') . "/index.php?access=denied"); +if (!$GLOBALS['user']->has_access(100)) { + access_denied(); exit(); } @@ -39,7 +39,7 @@ show_template('header'); switch ($action ) { case 'show_confirm_delete': - show_confirm_action(_('Do you really want to delete this Access Reocrd?'),'admin/access.php','access_id=' . scrub_out($_REQUEST['access_id']) . '&action=delete_host'); + show_confirmation(_('Confirm Delete'),_('Do you really want to delete this Access Record?'),'admin/access.php?access_id=' . scrub_out($_REQUEST['access_id']) . '&action=delete_host','1'); break; case 'delete_host': $access->delete($_REQUEST['access_id']); @@ -62,7 +62,7 @@ switch ($action ) { default: $list = array(); $list = $access->get_access_list(); - include(conf('prefix') ."/templates/show_access_list.inc"); + include(conf('prefix') .'/templates/show_access_list.inc'); break; } // end switch on action show_footer(); -- cgit