Commit 7552aa99 authored by Franco Fichtner's avatar Franco Fichtner

ntp: cluster service pages

parent b8d27634
...@@ -150,6 +150,7 @@ ...@@ -150,6 +150,7 @@
</VirtualIPs> </VirtualIPs>
<Diagnostics order="900" cssClass="fa fa-medkit"> <Diagnostics order="900" cssClass="fa fa-medkit">
<LimiterInfo VisibleName="Limiter Info" url="/diag_limiter_info.php"/> <LimiterInfo VisibleName="Limiter Info" url="/diag_limiter_info.php"/>
<FilterReload VisibleName="Filter Reload" url="/status_filter_reload.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"/>
<pfTables url="/diag_tables.php"> <pfTables url="/diag_tables.php">
...@@ -207,9 +208,12 @@ ...@@ -207,9 +208,12 @@
<Monitors url="/load_balancer_monitor.php"/> <Monitors url="/load_balancer_monitor.php"/>
<Settings url="/load_balancer_setting.php"/> <Settings url="/load_balancer_setting.php"/>
</LoadBalancer> </LoadBalancer>
<NTP VisibleName="Network Time Protocol" url="/services_ntpd.php"> <NTP VisibleName="Network Time Protocol" cssClass="fa fa-clock-o">
<General url="/services_ntpd.php"/>
<GPS url="/services_ntpd_gps.php"/> <GPS url="/services_ntpd_gps.php"/>
<PPS url="/services_ntpd_pps.php"/> <PPS url="/services_ntpd_pps.php"/>
<Status url="/status_ntpd.php"/>
<Log url="/diag_logs_ntpd.php"/>
</NTP> </NTP>
<PPPoEServer VisibleName="PPPoE Server" url="/vpn_pppoe.php"> <PPPoEServer VisibleName="PPPoE Server" url="/vpn_pppoe.php">
<PPPoeServerEdit url="/vpn_pppoe_edit.php"/> <PPPoeServerEdit url="/vpn_pppoe_edit.php"/>
...@@ -281,11 +285,9 @@ ...@@ -281,11 +285,9 @@
<DHCPv6Leases VisibleName="DHCP IPv6 Leases" url="/status_dhcpv6_leases.php"> <DHCPv6Leases VisibleName="DHCP IPv6 Leases" url="/status_dhcpv6_leases.php">
<DHCPv6LeasesDetails url="/status_dhcpv6_leases.php?*"/> <DHCPv6LeasesDetails url="/status_dhcpv6_leases.php?*"/>
</DHCPv6Leases> </DHCPv6Leases>
<FilterReload VisibleName="Filter Reload" url="/status_filter_reload.php"/>
<LoadBalancer VisibleName="Load Balancer" url="/status_lb_pool.php"> <LoadBalancer VisibleName="Load Balancer" url="/status_lb_pool.php">
<VirtualServers url="/status_lb_vs.php"/> <VirtualServers url="/status_lb_vs.php"/>
</LoadBalancer> </LoadBalancer>
<NTP url="/status_ntpd.php"/>
<Services url="/status_services.php"> <Services url="/status_services.php">
<ServicesActions url="/status_services.php?*"/> <ServicesActions url="/status_services.php?*"/>
</Services> </Services>
...@@ -306,7 +308,6 @@ ...@@ -306,7 +308,6 @@
<VPN url="/diag_logs_vpn.php*"/> <VPN url="/diag_logs_vpn.php*"/>
<LoadBalancer url="/diag_logs_relayd.php"/> <LoadBalancer url="/diag_logs_relayd.php"/>
<OpenVPN url="/diag_logs_openvpn.php"/> <OpenVPN url="/diag_logs_openvpn.php"/>
<NTP url="/diag_logs_ntpd.php"/>
<Proxy url="/diag_logs_proxy.php"> <Proxy url="/diag_logs_proxy.php">
<ProxyActions url="/diag_logs_proxy.php?*"/> <ProxyActions url="/diag_logs_proxy.php?*"/>
</Proxy> </Proxy>
......
...@@ -36,7 +36,6 @@ $tab_array[] = array(gettext("PPP"), $active_tab == "/diag_logs_ppp.php", "diag_ ...@@ -36,7 +36,6 @@ $tab_array[] = array(gettext("PPP"), $active_tab == "/diag_logs_ppp.php", "diag_
$tab_array[] = array(gettext("VPN"), $active_tab == "/diag_logs_vpn.php", "diag_logs_vpn.php"); $tab_array[] = array(gettext("VPN"), $active_tab == "/diag_logs_vpn.php", "diag_logs_vpn.php");
$tab_array[] = array(gettext("Load Balancer"), $active_tab == "/diag_logs_relayd.php", "diag_logs_relayd.php"); $tab_array[] = array(gettext("Load Balancer"), $active_tab == "/diag_logs_relayd.php", "diag_logs_relayd.php");
$tab_array[] = array(gettext("OpenVPN"), $active_tab == "/diag_logs_openvpn.php", "diag_logs_openvpn.php"); $tab_array[] = array(gettext("OpenVPN"), $active_tab == "/diag_logs_openvpn.php", "diag_logs_openvpn.php");
$tab_array[] = array(gettext("NTP"), $active_tab == "/diag_logs_ntpd.php", "diag_logs_ntpd.php");
$tab_array[] = array(gettext("Proxy"), $active_tab == "/diag_logs_proxy.php", "diag_logs_proxy.php?type=cache"); $tab_array[] = array(gettext("Proxy"), $active_tab == "/diag_logs_proxy.php", "diag_logs_proxy.php?type=cache");
$tab_array[] = array(gettext("Settings"), $active_tab == "/diag_logs_settings.php", "diag_logs_settings.php"); $tab_array[] = array(gettext("Settings"), $active_tab == "/diag_logs_settings.php", "diag_logs_settings.php");
display_top_tabs($tab_array); display_top_tabs($tab_array);
<?php <?php
/* /*
Copyright (C) 2014-2015 Deciso B.V. Copyright (C) 2014-2015 Deciso B.V.
Copyright (C) 2013 Dagorlad Copyright (C) 2013 Dagorlad
...@@ -155,12 +156,15 @@ if ($_POST) { ...@@ -155,12 +156,15 @@ if ($_POST) {
} }
$closehead = false; $closehead = false;
$pconfig = &$config['ntpd']; $pconfig = &$config['ntpd'];
if (empty($pconfig['interface'])) if (empty($pconfig['interface'])) {
$pconfig['interface'] = array(); $pconfig['interface'] = array();
else } else {
$pconfig['interface'] = explode(",", $pconfig['interface']); $pconfig['interface'] = explode(",", $pconfig['interface']);
$pgtitle = array(gettext("Services"),gettext("NTP")); }
$shortcut_section = "ntp";
$shortcut_section = 'ntp';
$pgtitle = array(gettext('Services'), gettext('Network Time Protocol'));
include("head.inc"); include("head.inc");
?> ?>
...@@ -217,17 +221,8 @@ include("head.inc"); ...@@ -217,17 +221,8 @@ include("head.inc");
<section class="col-xs-12"> <section class="col-xs-12">
<?php
$tab_array = array();
$tab_array[] = array(gettext("NTP"), true, "services_ntpd.php");
$tab_array[] = array(gettext("Serial GPS"), false, "services_ntpd_gps.php");
$tab_array[] = array(gettext("PPS"), false, "services_ntpd_pps.php");
display_top_tabs($tab_array);
?>
<div class="tab-content content-box col-xs-12"> <div class="tab-content content-box col-xs-12">
<form action="services_ntpd.php" method="post" name="iform" id="iform" enctype="multipart/form-data" accept-charset="utf-8"> <form action="services_ntpd.php" method="post" name="iform" id="iform" enctype="multipart/form-data" accept-charset="utf-8">
<div class="table-responsive"> <div class="table-responsive">
......
<?php <?php
/* /*
Copyright (C) 2014-2015 Deciso B.V. Copyright (C) 2014-2015 Deciso B.V.
Copyright (C) 2013 Dagorlad Copyright (C) 2013 Dagorlad
...@@ -357,14 +358,6 @@ SureGPS = #Sure Electronics SKG16B ...@@ -357,14 +358,6 @@ SureGPS = #Sure Electronics SKG16B
<section class="col-xs-12"> <section class="col-xs-12">
<?php
$tab_array = array();
$tab_array[] = array(gettext("NTP"), false, "services_ntpd.php");
$tab_array[] = array(gettext("Serial GPS"), true, "services_ntpd_gps.php");
$tab_array[] = array(gettext("PPS"), false, "services_ntpd_pps.php");
display_top_tabs($tab_array);
?>
<div class="tab-content content-box col-xs-12"> <div class="tab-content content-box col-xs-12">
<form action="services_ntpd_gps.php" method="post" name="iform" id="iform" accept-charset="utf-8"> <form action="services_ntpd_gps.php" method="post" name="iform" id="iform" accept-charset="utf-8">
......
<?php <?php
/* /*
Copyright (C) 2014-2015 Deciso B.V. Copyright (C) 2014-2015 Deciso B.V.
Copyright (C) 2013 Dagorlad Copyright (C) 2013 Dagorlad
...@@ -105,14 +106,6 @@ include("head.inc"); ...@@ -105,14 +106,6 @@ include("head.inc");
<section class="col-xs-12"> <section class="col-xs-12">
<?php
$tab_array = array();
$tab_array[] = array(gettext("NTP"), false, "services_ntpd.php");
$tab_array[] = array(gettext("Serial GPS"), false, "services_ntpd_gps.php");
$tab_array[] = array(gettext("PPS"), true, "services_ntpd_pps.php");
display_top_tabs($tab_array);
?>
<div class="tab-content content-box col-xs-12"> <div class="tab-content content-box col-xs-12">
<form action="services_ntpd_pps.php" method="post" name="iform" id="iform"> <form action="services_ntpd_pps.php" method="post" name="iform" id="iform">
......
...@@ -212,10 +212,7 @@ $shortcuts['wireless']['log'] = "diag_logs_wireless.php"; ...@@ -212,10 +212,7 @@ $shortcuts['wireless']['log'] = "diag_logs_wireless.php";
$shortcuts['wireless']['status'] = "status_wireless.php"; $shortcuts['wireless']['status'] = "status_wireless.php";
$shortcuts['ntp'] = array(); $shortcuts['ntp'] = array();
$shortcuts['ntp']['main'] = "services_ntpd.php"; $shortcuts['ntp']['service'] = "ntpd"; /* really, hook it all up through some weird hint? */
$shortcuts['ntp']['log'] = "diag_logs_ntpd.php";
$shortcuts['ntp']['status'] = "status_ntpd.php";
$shortcuts['ntp']['service'] = "ntpd";
$shortcuts['pppoes'] = array(); $shortcuts['pppoes'] = array();
$shortcuts['pppoes']['main'] = "vpn_pppoe.php"; $shortcuts['pppoes']['main'] = "vpn_pppoe.php";
......
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