'interfaces_assign.php',
'LAN' => 'interfaces_lan.php',
'WAN' => 'interfaces_wan.php',
'OPTx' => 'interfaces_opt.php');
if ($_SERVER['REMOTE_USER'] === $config['system']['username']) {
$allowed = $if_menu;
}
if (array_intersect($if_menu,$allowed)) {
echo 'Interfaces';
if ((!isset($config['system']['webgui']['noassigninterfaces'])) &&
(in_array('interfaces_assign.php',$allowed))) {
echo ' (assign)';
}
echo ' ';
if (in_array('interfaces_lan.php',$allowed)) {
echo ' LAN ';
}
if (in_array('interfaces_wan.php',$allowed)) {
echo ' WAN ';
}
if (in_array('interfaces_opt.php',$allowed)) {
for ($i = 1; isset($config['interfaces']['opt' . $i]); $i++) {
echo ' '.htmlspecialchars($config['interfaces']['opt' . $i]['descr']).' ';
}
}
}
dynamic_menu($menu['Firewall'], 'Firewall');
dynamic_menu($menu['Services'], 'Services');
dynamic_menu($menu['VPN'], 'VPN');
dynamic_menu($menu['Status'], 'Status');
// If Extensions exist, add them to the menu
if (isset($menu['Extensions']))
dynamic_menu($menu['Extensions'], 'Extensions');
dynamic_menu($menu['Diagnostics'], 'Diagnostics');
?>
|
|
|