diff --git a/src/pkg/shortcuts/miniupnpd.inc b/src/pkg/shortcuts/miniupnpd.inc
deleted file mode 100644
index d04710460..000000000
--- a/src/pkg/shortcuts/miniupnpd.inc
+++ /dev/null
@@ -1,9 +0,0 @@
-";
+ if (strtok($_SERVER['REQUEST_URI'],'?') != "/status_services.php")
+ return "{$space}Main page";
+ else
+ return "{$space}";
}
function get_shortcut_status_link($shortcut_section, $addspace = true, $service = array()) {
@@ -111,24 +114,29 @@ function get_shortcut_status_link($shortcut_section, $addspace = true, $service
break;
}
if(!empty($link))
- return "{$space}";
+ if (strtok($_SERVER['REQUEST_URI'],'?') != "/status_services.php")
+ return "{$space}Status";
+ else
+ return "{$space}";
}
function get_shortcut_log_link($shortcut_section, $addspace = true) {
global $g, $shortcuts;
$space = ($addspace) ? " " : "" ;
if(!empty($shortcut_section) && !empty($shortcuts[$shortcut_section]['log'])) {
- return "{$space}";
+ if (strtok($_SERVER['REQUEST_URI'],'?') != "/status_services.php")
+ return "{$space}Log";
+ else
+ return "{$space}";
}
}
-// Load shortcuts
-$dir_array = get_shortcut_files("/usr/local/pkg/shortcuts");
-foreach ($dir_array as $file) {
- if (!is_dir("/usr/local/pkg/shortcuts/{$file}") && stristr($file,".inc")) {
- include("/usr/local/pkg/shortcuts/{$file}");
- }
-}
+$shortcuts['upnp'] = array();
+$shortcuts['upnp']['main'] = "pkg_edit.php?xml=miniupnpd.xml";
+$shortcuts['upnp']['log'] = "diag_logs_routing.php";
+$shortcuts['upnp']['status'] = "status_upnp.php";
+$shortcuts['upnp']['service'] = "miniupnpd";
+
$shortcuts['relayd'] = array();
$shortcuts['relayd']['main'] = "load_balancer_pool.php";