Commit 98a0662d authored by Franco Fichtner's avatar Franco Fichtner

interfaces: zap legacy shortcuts

parent 25987211
...@@ -46,7 +46,7 @@ if ($_POST['clear']) { ...@@ -46,7 +46,7 @@ if ($_POST['clear']) {
} }
$pgtitle = array(gettext("Status"),gettext("System logs"),gettext("Wireless")); $pgtitle = array(gettext("Status"),gettext("System logs"),gettext("Wireless"));
$shortcut_section = "wireless";
include("head.inc"); include("head.inc");
?> ?>
......
...@@ -1618,7 +1618,6 @@ foreach ($mediaopts as $mediaopt){ ...@@ -1618,7 +1618,6 @@ foreach ($mediaopts as $mediaopt){
} }
$pgtitle = array(gettext("Interfaces"), $pconfig['descr']); $pgtitle = array(gettext("Interfaces"), $pconfig['descr']);
$shortcut_section = "interfaces";
$closehead = false; $closehead = false;
include("head.inc"); include("head.inc");
......
...@@ -29,7 +29,6 @@ ...@@ -29,7 +29,6 @@
*/ */
$pgtitle = array(gettext("Interfaces"),gettext("Assign network ports")); $pgtitle = array(gettext("Interfaces"),gettext("Assign network ports"));
$shortcut_section = "interfaces";
require_once("guiconfig.inc"); require_once("guiconfig.inc");
require_once("filter.inc"); require_once("filter.inc");
......
...@@ -76,9 +76,8 @@ if ($_GET['act'] == "del") { ...@@ -76,9 +76,8 @@ if ($_GET['act'] == "del") {
} }
} }
$pgtitle = array(gettext("Interfaces"),gettext("Bridge")); $pgtitle = array(gettext("Interfaces"),gettext("Bridge"));
$shortcut_section = "interfaces";
include("head.inc"); include("head.inc");
$main_buttons = array( $main_buttons = array(
......
...@@ -238,7 +238,7 @@ if ($_POST) { ...@@ -238,7 +238,7 @@ if ($_POST) {
} }
$pgtitle = array(gettext("Interfaces"),gettext("Bridge"),gettext("Edit")); $pgtitle = array(gettext("Interfaces"),gettext("Bridge"),gettext("Edit"));
$shortcut_section = "interfaces";
include("head.inc"); include("head.inc");
?> ?>
......
...@@ -68,7 +68,7 @@ if ($_GET['act'] == "del") { ...@@ -68,7 +68,7 @@ if ($_GET['act'] == "del") {
} }
$pgtitle = array(gettext("Interfaces"),gettext("GIF")); $pgtitle = array(gettext("Interfaces"),gettext("GIF"));
$shortcut_section = "interfaces";
include("head.inc"); include("head.inc");
$main_buttons = array( $main_buttons = array(
......
<?php <?php
/* /*
Copyright (C) 2014-2015 Deciso B.V. Copyright (C) 2014-2015 Deciso B.V.
Copyright (C) 2008 Ermal Luçi Copyright (C) 2008 Ermal Luçi
...@@ -128,7 +129,7 @@ if ($_POST) { ...@@ -128,7 +129,7 @@ if ($_POST) {
} }
$pgtitle = array(gettext("Interfaces"),gettext("GIF"),gettext("Edit")); $pgtitle = array(gettext("Interfaces"),gettext("GIF"),gettext("Edit"));
$shortcut_section = "interfaces";
include("head.inc"); include("head.inc");
?> ?>
......
<?php <?php
/* /*
Copyright (C) 2014-2015 Deciso B.V. Copyright (C) 2014-2015 Deciso B.V.
Copyright (C) 2008 Ermal Luçi Copyright (C) 2008 Ermal Luçi
...@@ -66,7 +67,7 @@ if ($_GET['act'] == "del") { ...@@ -66,7 +67,7 @@ if ($_GET['act'] == "del") {
} }
$pgtitle = array(gettext("Interfaces"),gettext("GRE")); $pgtitle = array(gettext("Interfaces"),gettext("GRE"));
$shortcut_section = "interfaces";
include("head.inc"); include("head.inc");
$main_buttons = array( $main_buttons = array(
......
<?php <?php
/* /*
Copyright (C) 2014-2015 Deciso B.V. Copyright (C) 2014-2015 Deciso B.V.
Copyright (C) 2008 Ermal Luçi Copyright (C) 2008 Ermal Luçi
...@@ -120,7 +121,7 @@ if ($_POST) { ...@@ -120,7 +121,7 @@ if ($_POST) {
} }
$pgtitle = array(gettext("Interfaces"),gettext("GRE"),gettext("Edit")); $pgtitle = array(gettext("Interfaces"),gettext("GRE"),gettext("Edit"));
$shortcut_section = "interfaces";
include("head.inc"); include("head.inc");
?> ?>
......
<?php <?php
/* /*
Copyright (C) 2014-2015 Deciso B.V. Copyright (C) 2014-2015 Deciso B.V.
Copyright (C) 2009 Ermal Luçi Copyright (C) 2009 Ermal Luçi
...@@ -52,7 +53,7 @@ if ($_GET['act'] == "del") { ...@@ -52,7 +53,7 @@ if ($_GET['act'] == "del") {
} }
$pgtitle = array(gettext("Interfaces"),gettext("Groups")); $pgtitle = array(gettext("Interfaces"),gettext("Groups"));
$shortcut_section = "interfaces";
include("head.inc"); include("head.inc");
$main_buttons = array( $main_buttons = array(
......
<?php <?php
/* /*
Copyright (C) 2014-2015 Deciso B.V. Copyright (C) 2014-2015 Deciso B.V.
Copyright (C) 2009 Ermal Luçi Copyright (C) 2009 Ermal Luçi
...@@ -31,7 +32,6 @@ require_once("guiconfig.inc"); ...@@ -31,7 +32,6 @@ require_once("guiconfig.inc");
require_once("interfaces.inc"); require_once("interfaces.inc");
$pgtitle = array(gettext("Interfaces"),gettext("Groups"),gettext("Edit")); $pgtitle = array(gettext("Interfaces"),gettext("Groups"),gettext("Edit"));
$shortcut_section = "interfaces";
if (!isset($config['ifgroups']['ifgroupentry']) || !is_array($config['ifgroups']['ifgroupentry'])) { if (!isset($config['ifgroups']['ifgroupentry']) || !is_array($config['ifgroups']['ifgroupentry'])) {
$config['ifgroups']['ifgroupentry'] = array(); $config['ifgroups']['ifgroupentry'] = array();
......
<?php <?php
/* /*
Copyright (C) 2014-2015 Deciso B.V. Copyright (C) 2014-2015 Deciso B.V.
Copyright (C) 2008 Ermal Luçi Copyright (C) 2008 Ermal Luçi
...@@ -72,7 +73,7 @@ if ($_GET['act'] == "del") { ...@@ -72,7 +73,7 @@ if ($_GET['act'] == "del") {
} }
$pgtitle = array(gettext("Interfaces"),gettext("LAGG")); $pgtitle = array(gettext("Interfaces"),gettext("LAGG"));
$shortcut_section = "interfaces";
include("head.inc"); include("head.inc");
$main_buttons = array( $main_buttons = array(
......
<?php <?php
/* /*
Copyright (C) 2014-2015 Deciso B.V. Copyright (C) 2014-2015 Deciso B.V.
Copyright (C) 2008 Ermal Luçi Copyright (C) 2008 Ermal Luçi
...@@ -129,7 +130,7 @@ if ($_POST) { ...@@ -129,7 +130,7 @@ if ($_POST) {
} }
$pgtitle = array(gettext("Interfaces"),gettext("LAGG"),gettext("Edit")); $pgtitle = array(gettext("Interfaces"),gettext("LAGG"),gettext("Edit"));
$shortcut_section = "interfaces";
include("head.inc"); include("head.inc");
?> ?>
......
<?php <?php
/* /*
Copyright (C) 2014-2015 Deciso B.V. Copyright (C) 2014-2015 Deciso B.V.
Copyright (C) 2003-2004 Manuel Kasper <mk@neon1.net>. Copyright (C) 2003-2004 Manuel Kasper <mk@neon1.net>.
...@@ -68,8 +69,9 @@ if (!is_array($config['ppps']['ppp'])) { ...@@ -68,8 +69,9 @@ if (!is_array($config['ppps']['ppp'])) {
$a_ppps = $config['ppps']['ppp']; $a_ppps = $config['ppps']['ppp'];
$pgtitle = gettext("Interfaces: PPPs"); $pgtitle = gettext("Interfaces: PPPs");
$shortcut_section = "interfaces";
include("head.inc"); include("head.inc");
$main_buttons = array( $main_buttons = array(
array('href'=>'interfaces_ppps_edit.php', 'label'=>'Add'), array('href'=>'interfaces_ppps_edit.php', 'label'=>'Add'),
); );
......
...@@ -384,7 +384,7 @@ if ($_POST) { ...@@ -384,7 +384,7 @@ if ($_POST) {
$closehead = false; $closehead = false;
$pgtitle = array(gettext("Interfaces"),gettext("PPPs"),gettext("Edit")); $pgtitle = array(gettext("Interfaces"),gettext("PPPs"),gettext("Edit"));
$shortcut_section = "interfaces";
include("head.inc"); include("head.inc");
$types = array("select" => gettext("Select"), "ppp" => "PPP", "pppoe" => "PPPoE", "pptp" => "PPTP", "l2tp" => "L2TP"/*, "tcp" => "TCP", "udp" => "UDP"*/ ); $types = array("select" => gettext("Select"), "ppp" => "PPP", "pppoe" => "PPPoE", "pptp" => "PPTP", "l2tp" => "L2TP"/*, "tcp" => "TCP", "udp" => "UDP"*/ );
......
<?php <?php
/* /*
Copyright (C) 2014-2015 Deciso B.V. Copyright (C) 2014-2015 Deciso B.V.
Copyright (C) 2009 Ermal Luçi Copyright (C) 2009 Ermal Luçi
...@@ -75,7 +76,7 @@ if ($_GET['act'] == "del") { ...@@ -75,7 +76,7 @@ if ($_GET['act'] == "del") {
} }
$pgtitle = array(gettext("Interfaces"),gettext("QinQ")); $pgtitle = array(gettext("Interfaces"),gettext("QinQ"));
$shortcut_section = "interfaces";
include("head.inc"); include("head.inc");
$main_buttons = array( $main_buttons = array(
......
...@@ -28,7 +28,6 @@ ...@@ -28,7 +28,6 @@
*/ */
$pgtitle = array(gettext("Interfaces"),gettext("QinQ"), gettext("Edit")); $pgtitle = array(gettext("Interfaces"),gettext("QinQ"), gettext("Edit"));
$shortcut_section = "interfaces";
require_once("guiconfig.inc"); require_once("guiconfig.inc");
require_once("interfaces.inc"); require_once("interfaces.inc");
......
...@@ -73,9 +73,8 @@ if ($_GET['act'] == "del") { ...@@ -73,9 +73,8 @@ if ($_GET['act'] == "del") {
} }
} }
$pgtitle = array(gettext("Interfaces"),gettext("VLAN")); $pgtitle = array(gettext("Interfaces"),gettext("VLAN"));
$shortcut_section = "interfaces";
include("head.inc"); include("head.inc");
$main_buttons = array( $main_buttons = array(
......
...@@ -150,7 +150,7 @@ if ($_POST) { ...@@ -150,7 +150,7 @@ if ($_POST) {
} }
$pgtitle = array(gettext("Interfaces"),gettext("VLAN"),gettext("Edit")); $pgtitle = array(gettext("Interfaces"),gettext("VLAN"),gettext("Edit"));
$shortcut_section = "interfaces";
include("head.inc"); include("head.inc");
?> ?>
......
<?php <?php
/* /*
Copyright (C) 2014-2015 Deciso B.V. Copyright (C) 2014-2015 Deciso B.V.
Copyright (C) 2010 Erik Fonnesbeck Copyright (C) 2010 Erik Fonnesbeck
...@@ -62,9 +63,8 @@ if ($_GET['act'] == "del") { ...@@ -62,9 +63,8 @@ if ($_GET['act'] == "del") {
} }
} }
$pgtitle = array(gettext("Interfaces"),gettext("Wireless")); $pgtitle = array(gettext("Interfaces"),gettext("Wireless"));
$shortcut_section = "wireless";
include("head.inc"); include("head.inc");
$main_buttons = array( $main_buttons = array(
......
...@@ -204,10 +204,6 @@ $shortcuts['gateway-groups']['main'] = "system_gateway_groups.php"; ...@@ -204,10 +204,6 @@ $shortcuts['gateway-groups']['main'] = "system_gateway_groups.php";
$shortcuts['gateway-groups']['log'] = "diag_logs_gateways.php"; $shortcuts['gateway-groups']['log'] = "diag_logs_gateways.php";
$shortcuts['gateway-groups']['status'] = "status_gateway_groups.php"; $shortcuts['gateway-groups']['status'] = "status_gateway_groups.php";
$shortcuts['interfaces'] = array();
$shortcuts['interfaces']['main'] = "interfaces_assign.php";
$shortcuts['interfaces']['status'] = "status_interfaces.php";
$shortcuts['forwarder'] = array(); $shortcuts['forwarder'] = array();
$shortcuts['forwarder']['main'] = "services_dnsmasq.php"; $shortcuts['forwarder']['main'] = "services_dnsmasq.php";
$shortcuts['forwarder']['log'] = "diag_logs_resolver.php"; $shortcuts['forwarder']['log'] = "diag_logs_resolver.php";
...@@ -218,11 +214,6 @@ $shortcuts['resolver']['main'] = "services_unbound.php"; ...@@ -218,11 +214,6 @@ $shortcuts['resolver']['main'] = "services_unbound.php";
$shortcuts['resolver']['log'] = "diag_logs_resolver.php"; $shortcuts['resolver']['log'] = "diag_logs_resolver.php";
$shortcuts['resolver']['service'] = "unbound"; $shortcuts['resolver']['service'] = "unbound";
$shortcuts['wireless'] = array();
$shortcuts['wireless']['main'] = "interfaces_wireless.php";
$shortcuts['wireless']['log'] = "diag_logs_wireless.php";
$shortcuts['wireless']['status'] = "status_wireless.php";
$shortcuts['ntp'] = array(); $shortcuts['ntp'] = array();
$shortcuts['ntp']['service'] = "ntpd"; /* really, hook it all up through some weird hint? */ $shortcuts['ntp']['service'] = "ntpd"; /* really, hook it all up through some weird hint? */
......
...@@ -30,7 +30,7 @@ require_once("guiconfig.inc"); ...@@ -30,7 +30,7 @@ require_once("guiconfig.inc");
require_once("interfaces.inc"); require_once("interfaces.inc");
$pgtitle = array(gettext("Status"),gettext("Wireless")); $pgtitle = array(gettext("Status"),gettext("Wireless"));
$shortcut_section = "wireless";
include("head.inc"); include("head.inc");
$if = $_POST['if']; $if = $_POST['if'];
......
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