has_access(100)) { header("Location: http://" . conf('web_path') . "/index.php?access=denied"); exit(); } show_template('header'); show_menu_items('Admin'); show_admin_menu('Access Lists'); show_clear(); if ( $action == 'show_confirm_delete' ) { show_confirm_action(_("Do you really want to delete this Access Record?"), "admin/access.php", "access_id=" . $_REQUEST['access_id'] . "&action=delete_host"); } /*! @action delete_host @discussion deletes an access list entry */ elseif ( $action == 'delete_host' ) { $access->delete($_REQUEST['access_id']); show_confirmation(_("Entry Deleted"),_("Your Access List Entry has been removed"),"admin/access.php"); } // delete_host /*! @action add_host @discussion add a new access list entry */ elseif ($action == 'add_host') { $access->create($_REQUEST['name'], $_REQUEST['start'],$_REQUEST['end'],$_REQUEST['level']); show_confirmation(_("Entry Added"),_("Your new Access List Entry has been created"),"admin/access.php"); } // add_host /*! @action show_add_host @discussion show the add host box */ elseif ( $action == 'show_add_host' ) { include(conf('prefix') . "/templates/show_add_access.inc"); } else { $list = array(); $list = $access->get_access_list(); include(conf('prefix') ."/templates/show_access_list.inc"); } echo "

"; show_page_footer ('Admin', 'Access Lists',$user->prefs['display_menu']); ?>