assign($lang); // search box if (isset($_POST['search'])) { $search = sanitize($_POST['search']); $_SESSION['search'] = $search; } else { if (isset($_SESSION['search'])) { $search = $_SESSION['search']; } else { $search = ''; } } $smarty->assign("config_version", $config_version); $smarty->assign("suser_name", $_SESSION['suser_displayname']); $smarty->assign("search", $search); // menu $menu = array(); if ($_SESSION['suser_menu_assets']) { $menu[] = '' . $lang['lang_assets'] . "\n"; } if ($_SESSION['suser_menu_assetclasses']) { $menu[] = '' . $lang['lang_assetclasses'] . "\n"; } if ($_SESSION['suser_menu_assetclassgroups']) { $menu[] = '' . $lang['lang_assetclassgroups'] . "\n"; } if ($_SESSION['suser_menu_locations']) { $menu[] = '' . $lang['lang_locations'] . "\n"; } if ($_SESSION['suser_menu_nodes']) { $menu[] = '' . $lang['lang_nodes'] . "\n"; } if ($_SESSION['suser_menu_subnets']) { $menu[] = '' . $lang['lang_subnets'] . "\n"; } if ($_SESSION['suser_menu_vlans']) { $menu[] = '' . $lang['lang_vlans'] . "\n"; } if ($_SESSION['suser_menu_cables']) { $menu[] = '' . $lang['lang_cables'] . "\n"; } if ($_SESSION['suser_menu_zones']) { $menu[] = '' . $lang['lang_zones'] . "\n"; } $smarty->assign("menu", implode(' | ', $menu)); $smarty->display("header.tpl");