Commit 4f06b9bd authored by Franco Fichtner's avatar Franco Fichtner

menu: eradicate the top diagnostics section

parent 64f99a60
...@@ -70,9 +70,17 @@ ...@@ -70,9 +70,17 @@
</Servers> </Servers>
<Settings url="/system_usermanager_settings.php"/> <Settings url="/system_usermanager_settings.php"/>
</Users> </Users>
<Diagnostics order="900" cssClass="fa fa-medkit">
<Activity VisibleName="Activity Monitor" url="/diag_system_activity.php"/>
<Authentication VisibleName="Authentication" url="/diag_authentication.php"/>
<Factory VisibleName="Factory Defaults" url="/diag_defaults.php"/>
<Halt VisibleName="Halt System" url="/diag_halt.php"/>
<Reboot VisibleName="Reboot System" url="/diag_reboot.php"/>
<SmartStatus VisibleName="SMART Status" url="/diag_smart.php"/>
</Diagnostics>
</System> </System>
<Interfaces order="2" cssClass="fa fa-sitemap"> <Interfaces order="2" cssClass="fa fa-sitemap">
<Assign VisibleName="(Assign)" order="999" url="/interfaces_assign.php"> <Assign VisibleName="(Assignments)" order="899" url="/interfaces_assign.php" cssClass="fa fa-pencil">
<Bridge url="/interfaces_bridge.php"/> <Bridge url="/interfaces_bridge.php"/>
<BridgeEdit url="/interfaces_bridge_edit.php*"/> <BridgeEdit url="/interfaces_bridge_edit.php*"/>
<GIF url="/interfaces_gif.php"/> <GIF url="/interfaces_gif.php"/>
...@@ -92,6 +100,16 @@ ...@@ -92,6 +100,16 @@
<Wireless url="/interfaces_wireless.php"/> <Wireless url="/interfaces_wireless.php"/>
<WirelessEdit url="/interfaces_wireless_edit.php*"/> <WirelessEdit url="/interfaces_wireless_edit.php*"/>
</Assign> </Assign>
<Diagnostics VisibleName="(Diagnostics)" order="900" cssClass="fa fa-medkit">
<ARPTable VisibleName="ARP Table" url="/diag_arp.php"/>
<DNSLookup VisibleName="DNS Lookup" url="/diag_dns.php"/>
<NDPTable VisibleName="NDP Table" url="/diag_ndp.php"/>
<PacketCapture VisibleName="Packet Capture" url="/diag_packet_capture.php"/>
<Ping url="/diag_ping.php"/>
<TestPort VisibleName="Test Port" url="/diag_testport.php"/>
<Traceroute url="/diag_traceroute.php"/>
</Diagnostics>
<Status VisibleName="(Summary)" order="901" url="/status_interfaces.php" cssClass="glyphicon glyphicon-tasks"/>
</Interfaces> </Interfaces>
<Firewall order="3" cssClass="glyphicon glyphicon-fire"> <Firewall order="3" cssClass="glyphicon glyphicon-fire">
<Aliases cssClass="fa fa-list-alt"> <Aliases cssClass="fa fa-list-alt">
...@@ -130,13 +148,18 @@ ...@@ -130,13 +148,18 @@
<VirtualIPs VisibleName="Virtual IPs" url="/firewall_virtual_ip.php" cssClass="fa fa-clone"> <VirtualIPs VisibleName="Virtual IPs" url="/firewall_virtual_ip.php" cssClass="fa fa-clone">
<VirtualIPEdit url="/firewall_virtual_ip_edit.php*"/> <VirtualIPEdit url="/firewall_virtual_ip_edit.php*"/>
</VirtualIPs> </VirtualIPs>
<Diagnostics order="900" VisibleName="Diagnostics" cssClass="glyphicon glyphicon-wrench"> <Diagnostics order="900" cssClass="fa fa-medkit">
<LimiterInfo VisibleName="Limiter Info" url="/diag_limiter_info.php"/>
<pfInfo url="/diag_pf_info.php" VisibleName="pfInfo"/> <pfInfo url="/diag_pf_info.php" VisibleName="pfInfo"/>
<pfTop url="/diag_system_pftop.php" VisibleName="pfTop"/> <pfTop url="/diag_system_pftop.php" VisibleName="pfTop"/>
<Tables url="/diag_tables.php"> <Tables url="/diag_tables.php">
<TablesDetails url="/diag_tables.php*"/> <TablesDetails url="/diag_tables.php*"/>
</Tables> </Tables>
<Sockets url="/diag_sockets.php">
<SocketsDetails url="/diag_sockets.php?*"/>
</Sockets>
<StatesSummary VisibleName="States Summary" url="/diag_states_summary.php"/> <StatesSummary VisibleName="States Summary" url="/diag_states_summary.php"/>
<StatesDump VisibleName="States Dump" url="/diag_dump_states.php"/>
</Diagnostics> </Diagnostics>
</Firewall> </Firewall>
<Services order="4" cssClass="glyphicon glyphicon-cog"> <Services order="4" cssClass="glyphicon glyphicon-cog">
...@@ -232,7 +255,6 @@ ...@@ -232,7 +255,6 @@
<DHCPv6LeasesDetails url="/status_dhcpv6_leases.php?*"/> <DHCPv6LeasesDetails url="/status_dhcpv6_leases.php?*"/>
</DHCPv6Leases> </DHCPv6Leases>
<FilterReload VisibleName="Filter Reload" url="/status_filter_reload.php"/> <FilterReload VisibleName="Filter Reload" url="/status_filter_reload.php"/>
<Interfaces url="/status_interfaces.php"/>
<IPsec url="/diag_ipsec.php"> <IPsec url="/diag_ipsec.php">
<IPsecACT url="/diag_ipsec.php?*"/> <IPsecACT url="/diag_ipsec.php?*"/>
<Leases url="/diag_ipsec_leases.php"/> <Leases url="/diag_ipsec_leases.php"/>
...@@ -276,26 +298,6 @@ ...@@ -276,26 +298,6 @@
</TrafficGraphs> </TrafficGraphs>
<UPnP VisibleName="Universal Plug and Play" url="/status_upnp.php"/> <UPnP VisibleName="Universal Plug and Play" url="/status_upnp.php"/>
</Status> </Status>
<Diagnostics order="7" cssClass="glyphicon glyphicon-stats">
<ARPTable VisibleName="ARP Table" url="/diag_arp.php"/>
<Authentication url="/diag_authentication.php"/>
<DNSLookup VisibleName="DNS Lookup" url="/diag_dns.php"/>
<FactoryDefaults VisibleName="Factory Defaults" url="/diag_defaults.php"/>
<HaltSystem VisibleName="Halt System" url="/diag_halt.php"/>
<LimiterInfo VisibleName="Limiter Info" url="/diag_limiter_info.php"/>
<NDPTable VisibleName="NDP Table" url="/diag_ndp.php"/>
<PacketCapture VisibleName="Packet Capture" url="/diag_packet_capture.php"/>
<Ping url="/diag_ping.php"/>
<Reboot url="/diag_reboot.php"/>
<SmartStatus VisibleName="SMART Status" url="/diag_smart.php"/>
<Sockets url="/diag_sockets.php">
<SocketsDetails url="/diag_sockets.php?*"/>
</Sockets>
<States url="/diag_dump_states.php"/>
<SystemActivity VisibleName="System Activity" url="/diag_system_activity.php"/>
<TestPort VisibleName="Test Port" url="/diag_testport.php"/>
<Traceroute url="/diag_traceroute.php"/>
</Diagnostics>
<Help order="8" cssClass="glyphicon glyphicon-question-sign"> <Help order="8" cssClass="glyphicon glyphicon-question-sign">
<AboutThisPage VisibleName="About this Page" url="/help.php" IsExternal="Y"/> <AboutThisPage VisibleName="About this Page" url="/help.php" IsExternal="Y"/>
<DevelopersWiki VisibleName="Developers Wiki" url="https://wiki.opnsense.org/index.php/developers" <DevelopersWiki VisibleName="Developers Wiki" url="https://wiki.opnsense.org/index.php/developers"
......
...@@ -39,16 +39,16 @@ require_once("services.inc"); ...@@ -39,16 +39,16 @@ require_once("services.inc");
if ($_POST['if'] && $_POST['submit']) { if ($_POST['if'] && $_POST['submit']) {
$interface = $_POST['if']; $interface = $_POST['if'];
if ($_POST['status'] == "up") if ($_POST['status'] == 'up') {
interface_bring_down($interface); interface_bring_down($interface);
else } else {
interface_configure($interface); interface_configure($interface);
}
header("Location: status_interfaces.php"); header("Location: status_interfaces.php");
exit; exit;
} }
$pgtitle = array(gettext("Status"),gettext("Interfaces")); $pgtitle = array(gettext('Interfaces'), gettext('Summary'));
$shortcut_section = "interfaces";
include("head.inc"); include("head.inc");
?> ?>
......
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