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
ddca1ca8
Commit
ddca1ca8
authored
Feb 06, 2016
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configuration: add more backup/restore sections; closes #747
(cherry picked from commit
7c5db320
)
parent
ba555a53
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
21 deletions
+42
-21
diag_backup.php
src/www/diag_backup.php
+42
-21
No files found.
src/www/diag_backup.php
View file @
ddca1ca8
...
@@ -130,27 +130,48 @@ function restore_rrddata() {
...
@@ -130,27 +130,48 @@ function restore_rrddata() {
}
}
}
}
$areas
=
array
(
"aliases"
=>
gettext
(
"Aliases"
),
$areas
=
array
(
"dnsmasq"
=>
gettext
(
"DNS Forwarder"
),
'OPNsense'
=>
gettext
(
'OPNsense Additions'
),
/* XXX need specifics */
"dhcpd"
=>
gettext
(
"DHCP Server"
),
'aliases'
=>
gettext
(
'Aliases'
),
"dhcpdv6"
=>
gettext
(
"DHCPv6 Server"
),
'bridges'
=>
gettext
(
'Bridge Devices'
),
"filter"
=>
gettext
(
"Firewall Rules"
),
'ca'
=>
gettext
(
'SSL Certificate Authorities'
),
"interfaces"
=>
gettext
(
"Interfaces"
),
'cert'
=>
gettext
(
'SSL Certificates'
),
"ipsec"
=>
gettext
(
"IPSEC"
),
'cron'
=>
gettext
(
'Scheduled Tasks'
),
"nat"
=>
gettext
(
"NAT"
),
'dhcpd'
=>
gettext
(
'DHCP Server'
),
"openvpn"
=>
gettext
(
"OpenVPN"
),
'dhcpdv6'
=>
gettext
(
'DHCPv6 Server'
),
"pptpd"
=>
gettext
(
"PPTP Server"
),
'dhcrelay'
=>
gettext
(
'DHCP Relay'
),
"rrddata"
=>
gettext
(
"RRD Data"
),
'dhcrelay6'
=>
gettext
(
'DHCPv6 Relay'
),
"cron"
=>
gettext
(
"Scheduled Tasks"
),
'dnsmasq'
=>
gettext
(
'DNS Forwarder'
),
"syslog"
=>
gettext
(
"Syslog"
),
'dyndnses'
=>
gettext
(
'Dynamic DNS'
),
"system"
=>
gettext
(
"System"
),
'filter'
=>
gettext
(
'Firewall Rules'
),
"staticroutes"
=>
gettext
(
"Static routes"
),
'gateways'
=>
gettext
(
'Gateways'
),
"sysctl"
=>
gettext
(
"System tunables"
),
'gifs'
=>
gettext
(
'GIF Devices'
),
"snmpd"
=>
gettext
(
"SNMP Server"
),
'igmpproxy'
=>
gettext
(
'IGMP Proxy'
),
"vlans"
=>
gettext
(
"VLANS"
),
'installedpackages'
=>
gettext
(
'Universal Plug and Play'
),
/* XXX only one, reduce depth! */
"wol"
=>
gettext
(
"Wake on LAN"
)
'interfaces'
=>
gettext
(
'Interfaces'
),
);
'ipsec'
=>
gettext
(
'IPSEC'
),
'laggs'
=>
gettext
(
'LAGG Devices'
),
'load_balancer'
=>
gettext
(
'Load Balancer'
),
'nat'
=>
gettext
(
'Network Address Translation'
),
'notifications'
=>
gettext
(
'System Notifications'
),
'ntpd'
=>
gettext
(
'Network Time'
),
'opendns'
=>
gettext
(
'DNS Filter'
),
'openvpn'
=>
gettext
(
'OpenVPN'
),
'ppps'
=>
gettext
(
'Point-to-Point Devices'
),
'pptpd'
=>
gettext
(
'PPTP Server'
),
'proxyarp'
=>
gettext
(
'Proxy ARP'
),
'rrddata'
=>
gettext
(
'RRD Data'
),
'snmpd'
=>
gettext
(
'SNMP Server'
),
'staticroutes'
=>
gettext
(
'Static routes'
),
'sysctl'
=>
gettext
(
'System tunables'
),
'syslog'
=>
gettext
(
'Syslog'
),
'system'
=>
gettext
(
'System'
),
'unbound'
=>
gettext
(
'DNS Resolver'
),
'vlans'
=>
gettext
(
'VLAN Devices'
),
'widgets'
=>
gettext
(
'Dashboard Widgets'
),
'wireless'
=>
gettext
(
'Wireless Devices'
),
'wol'
=>
gettext
(
'Wake on LAN'
),
);
if
(
$_SERVER
[
'REQUEST_METHOD'
]
===
'GET'
)
{
if
(
$_SERVER
[
'REQUEST_METHOD'
]
===
'GET'
)
{
$pconfig
=
array
();
$pconfig
=
array
();
...
...
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