src.dualinventive.com/mtinfo/dist/webroot/rc-4.05/scripts/page/menu_system_search.php

47 lines
1.3 KiB
PHP

<?php
/** \file scripts\page\menu_system_search.php
* \brief DI webinterface menu system search script.
* \author Rob Schalken, Core|Vision
* \version $Revision: 26247 $
* \date $Date: 2016-02-29 10:40:22 +0100 (Mon, 29 Feb 2016) $
*
* This file contains the menu system search script. This file creates a search
* engine for equipment types.
*/
if(
!is_valid_action(
"equipment_new",
"equipment_info","equipment_change","equipment_delete"
)
) {
// Redirect page back to login page
force_logout(_("No valid rights"), "Invalid action: " . $_SESSION[$_PAGE_INFO['id']]['action']);
}
$page = new MTinfoSearchScreen();
//===========================================
// Clear previous session info
unset($_SESSION[$_PAGE_INFO['id']]['system_info']);
// Verify project/rights and log
if( $page->user_has_rights() ) {
// Redirect when creating new equipment type
if( is_valid_action("equipment_new") ) {
// Redirect to equipment new page
header("Location: ?id=" . $_PAGE_INFO['id'] . "&href=page/menu_system_info&action=" . $_SESSION[$_PAGE_INFO['id']]['action'] . "");
}
else {
// Show page header
print_xml_header();
// Include search content
include("menu_system_search_content.php");
// Show page footer
print_page_footer();
}
}
?>