diff options
-rw-r--r-- | etc/inc/service-utils.inc | 7 | ||||
-rw-r--r-- | usr/local/pkg/routed.inc | 2 | ||||
-rwxr-xr-x | usr/local/www/diag_authentication.php | 1 | ||||
-rw-r--r-- | usr/local/www/diag_limiter_info.php | 1 | ||||
-rw-r--r-- | usr/local/www/diag_tables.php | 1 | ||||
-rwxr-xr-x | usr/local/www/firewall_aliases.php | 2 | ||||
-rw-r--r-- | usr/local/www/firewall_shaper_vinterface.php | 2 | ||||
-rwxr-xr-x | usr/local/www/services_snmp.php | 1 | ||||
-rw-r--r-- | usr/local/www/shortcuts.inc | 16 | ||||
-rw-r--r-- | usr/local/www/shortcuts/pkg_routed.inc | 9 | ||||
-rw-r--r-- | usr/local/www/shortcuts/pkg_upnp.inc (renamed from usr/local/www/shortcuts/upnp.inc) | 0 | ||||
-rwxr-xr-x | usr/local/www/status_queues.php | 1 | ||||
-rw-r--r-- | usr/local/www/system_authservers.php | 1 |
13 files changed, 43 insertions, 1 deletions
diff --git a/etc/inc/service-utils.inc b/etc/inc/service-utils.inc index e4a942e..0b0ddd9 100644 --- a/etc/inc/service-utils.inc +++ b/etc/inc/service-utils.inc @@ -307,6 +307,13 @@ function get_services() { $services[] = $pconfig; } + if (isset($config['installedpackages']['routed']) && $config['installedpackages']['routed']['config'][0]['enable']) { + $pconfig = array(); + $pconfig['name'] = "routed"; + $pconfig['description'] = gettext("RIP Daemon"); + $services[] = $pconfig; + } + if (isset($config['ipsec']['enable'])) { $pconfig = array(); $pconfig['name'] = "racoon"; diff --git a/usr/local/pkg/routed.inc b/usr/local/pkg/routed.inc index cb349cd..15b3181 100644 --- a/usr/local/pkg/routed.inc +++ b/usr/local/pkg/routed.inc @@ -28,6 +28,8 @@ */ +$shortcut_section = "routed"; + function setup_routed() { global $config; $gw = ""; diff --git a/usr/local/www/diag_authentication.php b/usr/local/www/diag_authentication.php index a8f897c..26c2dca 100755 --- a/usr/local/www/diag_authentication.php +++ b/usr/local/www/diag_authentication.php @@ -67,6 +67,7 @@ if ($_POST) { } } $pgtitle = array(gettext("Diagnostics"),gettext("Authentication")); +$shortcut_section = "authentication"; include("head.inc"); ?> diff --git a/usr/local/www/diag_limiter_info.php b/usr/local/www/diag_limiter_info.php index b56a641..3d8c338 100644 --- a/usr/local/www/diag_limiter_info.php +++ b/usr/local/www/diag_limiter_info.php @@ -44,6 +44,7 @@ require("guiconfig.inc"); $pfSversion = str_replace("\n", "", file_get_contents("/etc/version")); $pgtitle = gettext("Diagnostics: Limiter Info"); +$shortcut_section = "trafficshaper-limiters"; if($_REQUEST['getactivity']) { $text = `/sbin/ipfw pipe show`; diff --git a/usr/local/www/diag_tables.php b/usr/local/www/diag_tables.php index 296084a..0bd5ddf 100644 --- a/usr/local/www/diag_tables.php +++ b/usr/local/www/diag_tables.php @@ -42,6 +42,7 @@ ##|-PRIV $pgtitle = array(gettext("Diagnostics"), gettext("Tables")); +$shortcut_section = "aliases"; require_once("guiconfig.inc"); diff --git a/usr/local/www/firewall_aliases.php b/usr/local/www/firewall_aliases.php index 4d46c1f..5d13ec2 100755 --- a/usr/local/www/firewall_aliases.php +++ b/usr/local/www/firewall_aliases.php @@ -152,6 +152,8 @@ function find_alias_reference($section, $field, $origname, &$is_alias_referenced } $pgtitle = array(gettext("Firewall"),gettext("Aliases")); +$shortcut_section = "aliases"; + include("head.inc"); ?> diff --git a/usr/local/www/firewall_shaper_vinterface.php b/usr/local/www/firewall_shaper_vinterface.php index 245b5ba..a722979 100644 --- a/usr/local/www/firewall_shaper_vinterface.php +++ b/usr/local/www/firewall_shaper_vinterface.php @@ -52,7 +52,7 @@ if($_GET['reset'] <> "") { } $pgtitle = array(gettext("Firewall"),gettext("Traffic Shaper"), gettext("Limiter")); -$shortcut_section = "trafficshaper"; +$shortcut_section = "trafficshaper-limiters"; read_dummynet_config(); /* diff --git a/usr/local/www/services_snmp.php b/usr/local/www/services_snmp.php index 8f39f66..6a7c208 100755 --- a/usr/local/www/services_snmp.php +++ b/usr/local/www/services_snmp.php @@ -157,6 +157,7 @@ if ($_POST) { } $pgtitle = array(gettext("Services"),gettext("SNMP")); +$shortcut_section = "snmp"; include("head.inc"); ?> diff --git a/usr/local/www/shortcuts.inc b/usr/local/www/shortcuts.inc index 0eb4bfd..112ac44 100644 --- a/usr/local/www/shortcuts.inc +++ b/usr/local/www/shortcuts.inc @@ -148,6 +148,10 @@ $shortcuts['trafficshaper'] = array(); $shortcuts['trafficshaper']['main'] = "firewall_shaper.php"; $shortcuts['trafficshaper']['status'] = "status_queues.php"; +$shortcuts['trafficshaper-limiters'] = array(); +$shortcuts['trafficshaper-limiters']['main'] = "firewall_shaper_vinterface.php"; +$shortcuts['trafficshaper-limiters']['status'] = "diag_limiter_info.php"; + $shortcuts['resolver'] = array(); $shortcuts['resolver']['main'] = "services_dnsmasq.php"; $shortcuts['resolver']['log'] = "diag_logs_resolver.php"; @@ -179,4 +183,16 @@ $shortcuts['l2tps']['log'] = "diag_logs_vpn.php?vpntype=l2tp"; $shortcuts['carp'] = array(); $shortcuts['carp']['main'] = "system_hasync.php"; $shortcuts['carp']['status'] = "carp_status.php"; + +$shortcuts['snmp'] = array(); +$shortcuts['snmp']['main'] = "services_snmp.php"; +$shortcuts['snmp']['service'] = "bsnmpd"; + +$shortcuts['authentication'] = array(); +$shortcuts['authentication']['main'] = "system_authservers.php"; +$shortcuts['authentication']['status'] = "diag_authentication.php"; + +$shortcuts['aliases'] = array(); +$shortcuts['aliases']['main'] = "firewall_aliases.php"; +$shortcuts['aliases']['status'] = "diag_tables.php"; ?>
\ No newline at end of file diff --git a/usr/local/www/shortcuts/pkg_routed.inc b/usr/local/www/shortcuts/pkg_routed.inc new file mode 100644 index 0000000..3449c60 --- /dev/null +++ b/usr/local/www/shortcuts/pkg_routed.inc @@ -0,0 +1,9 @@ +<?php + +global $shortcuts; + +$shortcuts['routed'] = array(); +$shortcuts['routed']['main'] = "pkg_edit.php?xml=routed.xml&id=0"; +$shortcuts['routed']['service'] = "routed"; + +?>
\ No newline at end of file diff --git a/usr/local/www/shortcuts/upnp.inc b/usr/local/www/shortcuts/pkg_upnp.inc index e0f7d2a..e0f7d2a 100644 --- a/usr/local/www/shortcuts/upnp.inc +++ b/usr/local/www/shortcuts/pkg_upnp.inc diff --git a/usr/local/www/status_queues.php b/usr/local/www/status_queues.php index 0772ce0..21908ef 100755 --- a/usr/local/www/status_queues.php +++ b/usr/local/www/status_queues.php @@ -99,6 +99,7 @@ if ($_REQUEST['getactivity']) { } $pgtitle = array(gettext("Status"),gettext("Traffic shaper"),gettext("Queues")); +$shortcut_section = "trafficshaper"; include("head.inc"); ?> diff --git a/usr/local/www/system_authservers.php b/usr/local/www/system_authservers.php index 644cdbc..158e615 100644 --- a/usr/local/www/system_authservers.php +++ b/usr/local/www/system_authservers.php @@ -42,6 +42,7 @@ require("guiconfig.inc"); require_once("auth.inc"); $pgtitle = array(gettext("System"), gettext("Authentication Servers")); +$shortcut_section = "authentication"; $id = $_GET['id']; if (isset($_POST['id'])) |