Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
7552aa99
Commit
7552aa99
authored
Oct 14, 2015
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntp: cluster service pages
parent
b8d27634
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
16 additions
and
38 deletions
+16
-38
Menu.xml
src/opnsense/mvc/app/models/OPNsense/Base/Menu/Menu.xml
+5
-4
diag_logs_tabs.inc
src/www/diag_logs_tabs.inc
+0
-1
services_ntpd.php
src/www/services_ntpd.php
+8
-13
services_ntpd_gps.php
src/www/services_ntpd_gps.php
+1
-8
services_ntpd_pps.php
src/www/services_ntpd_pps.php
+1
-8
shortcuts.inc
src/www/shortcuts.inc
+1
-4
No files found.
src/opnsense/mvc/app/models/OPNsense/Base/Menu/Menu.xml
View file @
7552aa99
...
@@ -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>
...
...
src/www/diag_logs_tabs.inc
View file @
7552aa99
...
@@ -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
);
src/www/services_ntpd.php
View file @
7552aa99
<?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"
>
...
...
src/www/services_ntpd_gps.php
View file @
7552aa99
<?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"
>
...
...
src/www/services_ntpd_pps.php
View file @
7552aa99
<?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"
>
...
...
src/www/shortcuts.inc
View file @
7552aa99
...
@@ -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"
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment