Commit 32beb6e9 authored by Franco Fichtner's avatar Franco Fichtner

routing: remove need for shortcuts #461

parent 85669dbd
...@@ -47,9 +47,8 @@ if (isset($_POST['filtertext'])) { ...@@ -47,9 +47,8 @@ if (isset($_POST['filtertext'])) {
$filtertext = htmlspecialchars($_POST['filtertext']); $filtertext = htmlspecialchars($_POST['filtertext']);
} }
$shortcut_section = "routing";
include("head.inc"); include("head.inc");
?> ?>
<body> <body>
......
...@@ -55,8 +55,6 @@ if (isset($_REQUEST['isAjax'])) { ...@@ -55,8 +55,6 @@ if (isset($_REQUEST['isAjax'])) {
exit; exit;
} }
$shortcut_section = "routing";
include('head.inc'); include('head.inc');
?> ?>
......
...@@ -121,9 +121,7 @@ function get_shortcut_log_link($shortcut_section, $addspace = true) { ...@@ -121,9 +121,7 @@ function get_shortcut_log_link($shortcut_section, $addspace = true) {
} }
$shortcuts['upnp'] = array(); $shortcuts['upnp'] = array();
$shortcuts['upnp']['main'] = "services_upnp.php";
$shortcuts['upnp']['log'] = "diag_logs_routing.php"; $shortcuts['upnp']['log'] = "diag_logs_routing.php";
$shortcuts['upnp']['status'] = "status_upnp.php";
$shortcuts['upnp']['service'] = "miniupnpd"; $shortcuts['upnp']['service'] = "miniupnpd";
...@@ -131,13 +129,10 @@ $shortcuts['relayd'] = array(); ...@@ -131,13 +129,10 @@ $shortcuts['relayd'] = array();
$shortcuts['relayd']['service'] = "relayd"; $shortcuts['relayd']['service'] = "relayd";
$shortcuts['dhcp'] = array(); $shortcuts['dhcp'] = array();
$shortcuts['dhcp']['main'] = "services_dhcp.php";
$shortcuts['dhcp']['log'] = "diag_logs_dhcp.php"; $shortcuts['dhcp']['log'] = "diag_logs_dhcp.php";
$shortcuts['dhcp']['status'] = "status_dhcp_leases.php";
$shortcuts['dhcp']['service'] = "dhcpd"; $shortcuts['dhcp']['service'] = "dhcpd";
$shortcuts['dhcp6'] = array(); $shortcuts['dhcp6'] = array();
$shortcuts['dhcp6']['main'] = "services_dhcpv6.php";
$shortcuts['dhcp6']['log'] = "diag_logs_dhcp.php"; $shortcuts['dhcp6']['log'] = "diag_logs_dhcp.php";
$shortcuts['dhcp6']['status'] = "status_dhcpv6_leases.php"; $shortcuts['dhcp6']['status'] = "status_dhcpv6_leases.php";
...@@ -156,11 +151,6 @@ $shortcuts['resolver']['service'] = 'unbound'; ...@@ -156,11 +151,6 @@ $shortcuts['resolver']['service'] = 'unbound';
$shortcuts['ntp'] = array(); $shortcuts['ntp'] = array();
$shortcuts['ntp']['service'] = 'ntpd'; $shortcuts['ntp']['service'] = 'ntpd';
$shortcuts['routing'] = array();
$shortcuts['routing']['main'] = "system_routes.php";
$shortcuts['routing']['log'] = "diag_logs_routing.php";
$shortcuts['routing']['status'] = "diag_routes.php";
$shortcuts['gateways'] = array(); $shortcuts['gateways'] = array();
$shortcuts['gateways']['service'] = "apinger"; $shortcuts['gateways']['service'] = "apinger";
......
...@@ -144,8 +144,6 @@ $a_gateways = return_gateways_array(true, true, true); ...@@ -144,8 +144,6 @@ $a_gateways = return_gateways_array(true, true, true);
legacy_html_escape_form_data($a_routes); legacy_html_escape_form_data($a_routes);
legacy_html_escape_form_data($a_gateways); legacy_html_escape_form_data($a_gateways);
$shortcut_section = "routing";
$main_buttons = array( $main_buttons = array(
array('label'=> gettext('Add route'), 'href'=>'system_routes_edit.php'), array('label'=> gettext('Add route'), 'href'=>'system_routes_edit.php'),
); );
......
...@@ -219,8 +219,6 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { ...@@ -219,8 +219,6 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
} }
} }
$shortcut_section = "routing";
legacy_html_escape_form_data($a_gateways); legacy_html_escape_form_data($a_gateways);
legacy_html_escape_form_data($pconfig); legacy_html_escape_form_data($pconfig);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment