Project

General

Profile

Download (28.3 KB) Statistics
| Branch: | Tag: | Revision:
1
<?php
2
/*
3
 * help.php
4
 *
5
 * part of pfSense (https://www.pfsense.org)
6
 * Copyright (c) 2004-2016 Electric Sheep Fencing, LLC
7
 * All rights reserved.
8
 *
9
 * Redistribution and use in source and binary forms, with or without
10
 * modification, are permitted provided that the following conditions are met:
11
 *
12
 * 1. Redistributions of source code must retain the above copyright notice,
13
 *    this list of conditions and the following disclaimer.
14
 *
15
 * 2. Redistributions in binary form must reproduce the above copyright
16
 *    notice, this list of conditions and the following disclaimer in
17
 *    the documentation and/or other materials provided with the
18
 *    distribution.
19
 *
20
 * 3. All advertising materials mentioning features or use of this software
21
 *    must display the following acknowledgment:
22
 *    "This product includes software developed by the pfSense Project
23
 *    for use in the pfSense® software distribution. (http://www.pfsense.org/).
24
 *
25
 * 4. The names "pfSense" and "pfSense Project" must not be used to
26
 *    endorse or promote products derived from this software without
27
 *    prior written permission. For written permission, please contact
28
 *    coreteam@pfsense.org.
29
 *
30
 * 5. Products derived from this software may not be called "pfSense"
31
 *    nor may "pfSense" appear in their names without prior written
32
 *    permission of the Electric Sheep Fencing, LLC.
33
 *
34
 * 6. Redistributions of any form whatsoever must retain the following
35
 *    acknowledgment:
36
 *
37
 * "This product includes software developed by the pfSense Project
38
 * for use in the pfSense software distribution (http://www.pfsense.org/).
39
 *
40
 * THIS SOFTWARE IS PROVIDED BY THE pfSense PROJECT ``AS IS'' AND ANY
41
 * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
42
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
43
 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE pfSense PROJECT OR
44
 * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
45
 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
46
 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
47
 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
48
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
49
 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
50
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
51
 * OF THE POSSIBILITY OF SUCH DAMAGE.
52
 */
53

    
54
require_once("guiconfig.inc");
55

    
56
/* Define hash of jumpto url maps */
57

    
58
/* Links to categories could probably be more specific. */
59
$helppages = array(
60
	/* These pages are confirmed to work and have usable content */
61
	'index.php' => 'https://doc.pfsense.org/index.php/Dashboard',
62
	'license.php' => 'https://www.pfsense.org/about-pfsense/#legal',
63
	'miniupnpd.xml' => 'https://doc.pfsense.org/index.php/What_are_UPnP_and_NAT-PMP',
64
	'status_upnp.php' => 'https://doc.pfsense.org/index.php/What_are_UPnP_and_NAT-PMP',
65
	'firewall_virtual_ip.php' => 'https://doc.pfsense.org/index.php/What_are_Virtual_IP_Addresses',
66
	'firewall_virtual_ip_edit.php' => 'https://doc.pfsense.org/index.php/What_are_Virtual_IP_Addresses',
67
	'firewall_aliases.php' => 'https://doc.pfsense.org/index.php/Aliases',
68
	'firewall_aliases_edit.php' => 'https://doc.pfsense.org/index.php/Aliases',
69
	'firewall_aliases_import.php' => 'https://doc.pfsense.org/index.php/Aliases',
70
	'firewall_nat_out.php' => 'https://doc.pfsense.org/index.php/Outbound_NAT',
71
	'firewall_nat_out_edit.php' => 'https://doc.pfsense.org/index.php/Outbound_NAT',
72
	'firewall_rules.php' => 'https://doc.pfsense.org/index.php/Firewall_Rule_Basics',
73
	'firewall_rules_edit.php' => 'https://doc.pfsense.org/index.php/Firewall_Rule_Basics',
74
	'firewall_schedule.php' => 'https://doc.pfsense.org/index.php/Firewall_Rule_Schedules',
75
	'firewall_schedule_edit.php' => 'https://doc.pfsense.org/index.php/Firewall_Rule_Schedules',
76
	'interfaces_vlan.php' => 'https://doc.pfsense.org/index.php/VLAN_Trunking',
77
	'interfaces_vlan_edit.php' => 'https://doc.pfsense.org/index.php/VLAN_Trunking',
78
	'diag_routes.php' => 'https://doc.pfsense.org/index.php/Viewing_Routes',
79
	'diag_packet_capture.php' => 'https://doc.pfsense.org/index.php/Sniffers,_Packet_Capture',
80
	'diag_pftop.php' => 'https://doc.pfsense.org/index.php/How_can_I_monitor_bandwidth_usage#pftop',
81
	'status_rrd_graph.php' => 'https://doc.pfsense.org/index.php/RRD_Graphs',
82
	'status_rrd_graph_img.php' => 'https://doc.pfsense.org/index.php/RRD_Graphs',
83
	'status_rrd_graph_settings.php' => 'https://doc.pfsense.org/index.php/RRD_Graphs',
84
	'firewall_nat.php' => 'https://doc.pfsense.org/index.php/How_can_I_forward_ports_with_pfSense',
85
	'firewall_nat_edit.php' => 'https://doc.pfsense.org/index.php/How_can_I_forward_ports_with_pfSense',
86
	'diag_arp.php' => 'https://doc.pfsense.org/index.php/ARP_Table',
87
	'diag_backup.php' => 'https://doc.pfsense.org/index.php/Configuration_Backup_and_Restore',
88
	'diag_confbak.php' => 'https://doc.pfsense.org/index.php/Configuration_History',
89
	'diag_defaults.php' => 'https://doc.pfsense.org/index.php/Factory_Defaults',
90
	'firewall_shaper.php' => 'https://doc.pfsense.org/index.php/Traffic_Shaping_Guide',
91
	'firewall_shaper_queues.php' => 'https://doc.pfsense.org/index.php/Traffic_Shaping_Guide',
92
	'firewall_shaper_vinterface.php' => 'https://doc.pfsense.org/index.php/Limiters',
93
	'firewall_shaper_wizards.php' => 'https://doc.pfsense.org/index.php/Traffic_Shaping_Guide',
94
	'status_queues.php' => 'https://doc.pfsense.org/index.php/Traffic_Shaping_Guide',
95
	'status_dhcp_leases.php' => 'https://doc.pfsense.org/index.php/DHCP_Leases',
96
	'diag_dns.php' => 'https://doc.pfsense.org/index.php/DNS_Lookup',
97
	'diag_dump_states.php' => 'https://doc.pfsense.org/index.php/Show_States',
98
	'diag_resetstate.php' => 'https://doc.pfsense.org/index.php/Reset_States',
99
	'status_logs.php' => 'https://doc.pfsense.org/index.php/System_Logs',
100
	'status_logs.php-dhcpd' => 'https://doc.pfsense.org/index.php/DHCP_Logs',
101
	'status_logs.php-gateways' => 'https://doc.pfsense.org/index.php/Gateway_Logs',
102
	'status_logs.php-ipsec' => 'https://doc.pfsense.org/index.php/IPsec_Logs',
103
	'status_logs.php-ntpd' => 'https://doc.pfsense.org/index.php/NTP_Logs',
104
	'status_logs.php-openvpn' => 'https://doc.pfsense.org/index.php/OpenVPN_Logs',
105
	'status_logs.php-portalauth' => 'https://doc.pfsense.org/index.php/Captive_Portal_Authentication_Logs',
106
	'status_logs.php-ppp' => 'https://doc.pfsense.org/index.php/PPP_Logs',
107
	'status_logs.php-relayd' => 'https://doc.pfsense.org/index.php/Load_Balancer_Logs',
108
	'status_logs.php-resolver' => 'https://doc.pfsense.org/index.php/Resolver_Logs',
109
	'status_logs.php-routing' => 'https://doc.pfsense.org/index.php/Routing_Logs',
110
	'status_logs.php-wireless' => 'https://doc.pfsense.org/index.php/Wireless_Logs',
111
	'status_logs_filter.php' => 'https://doc.pfsense.org/index.php/Firewall_Logs',
112
	'status_logs_filter_dynamic.php' => 'https://doc.pfsense.org/index.php/Firewall_Logs',
113
	'status_logs_filter_summary.php' => 'https://doc.pfsense.org/index.php/Firewall_Logs',
114
	'status_logs_settings.php' => 'https://doc.pfsense.org/index.php/Log_Settings',
115
	'status_logs_vpn.php' => 'https://doc.pfsense.org/index.php/PPTP_VPN_Logs',
116
	'diag_nanobsd.php' => 'https://doc.pfsense.org/index.php/NanoBSD_Diagnostics',
117
	'diag_ping.php' => 'https://doc.pfsense.org/index.php/Ping_Host',
118
	'status_pkglogs.php' => 'https://doc.pfsense.org/index.php/Package_Logs',
119
	'diag_tables.php' => 'https://doc.pfsense.org/index.php/Tables',
120
	'diag_system_activity.php' => 'https://doc.pfsense.org/index.php/System_Activity',
121
	'diag_traceroute.php' => 'https://doc.pfsense.org/index.php/Traceroute',
122
	'easyrule.php' => 'https://doc.pfsense.org/index.php/Easy_Rule',
123
	'diag_edit.php' => 'https://doc.pfsense.org/index.php/Edit_File',
124
	'diag_command.php' => 'https://doc.pfsense.org/index.php/Execute_Command',
125
	'firewall_nat_1to1.php' => 'https://doc.pfsense.org/index.php/1:1_NAT',
126
	'firewall_nat_1to1_edit.php' => 'https://doc.pfsense.org/index.php/1:1_NAT',
127
	'diag_halt.php' => 'https://doc.pfsense.org/index.php/Halt_System',
128
	'diag_reboot.php' => 'https://doc.pfsense.org/index.php/Reboot_System',
129
	'status_filter_reload.php' => 'https://doc.pfsense.org/index.php/Filter_Reload_Status',
130
	'status_gateway_groups.php' => 'https://doc.pfsense.org/index.php/Gateway_Status',
131
	'status_gateways.php' => 'https://doc.pfsense.org/index.php/Gateway_Status',
132
	'status_graph.php' => 'https://doc.pfsense.org/index.php/Traffic_Graph',
133
	'status_graph_cpu.php' => 'https://doc.pfsense.org/index.php/CPU_Load',
134
	'status_interfaces.php' => 'https://doc.pfsense.org/index.php/Interface_Status',
135
	'status_services.php' => 'https://doc.pfsense.org/index.php/Services_Status',
136
	'status_wireless.php' => 'https://doc.pfsense.org/index.php/Wireless_Status',
137
	'pkg_mgr.php' => 'https://doc.pfsense.org/index.php/Package_Manager',
138
	'pkg_mgr_install.php' => 'https://doc.pfsense.org/index.php/Package_Manager',
139
	'pkg_mgr_installed.php' => 'https://doc.pfsense.org/index.php/Package_Manager',
140
	'interfaces.php' => 'https://doc.pfsense.org/index.php/Interface_Settings',
141
	'interfaces_assign.php' => 'https://doc.pfsense.org/index.php/Assign_Interfaces',
142
	'interfaces_bridge.php' => 'https://doc.pfsense.org/index.php/Interface_Bridges',
143
	'interfaces_bridge_edit.php' => 'https://doc.pfsense.org/index.php/Interface_Bridges',
144
	'interfaces_gif.php' => 'https://doc.pfsense.org/index.php/GIF_Interfaces',
145
	'interfaces_gif_edit.php' => 'https://doc.pfsense.org/index.php/GIF_Interfaces',
146
	'interfaces_gre.php' => 'https://doc.pfsense.org/index.php/GRE_Interfaces',
147
	'interfaces_gre_edit.php' => 'https://doc.pfsense.org/index.php/GRE_Interfaces',
148
	'interfaces_groups.php' => 'https://doc.pfsense.org/index.php/Interface_Groups',
149
	'interfaces_groups_edit.php' => 'https://doc.pfsense.org/index.php/Interface_Groups',
150
	'interfaces_lagg.php' => 'https://doc.pfsense.org/index.php/LAGG_Interfaces',
151
	'interfaces_lagg_edit.php' => 'https://doc.pfsense.org/index.php/LAGG_Interfaces',
152
	'interfaces_ppps.php' => 'https://doc.pfsense.org/index.php/PPP_Interfaces',
153
	'interfaces_ppps_edit.php' => 'https://doc.pfsense.org/index.php/PPP_Interfaces',
154
	'interfaces_qinq.php' => 'https://doc.pfsense.org/index.php/QinQ_Interfaces',
155
	'interfaces_qinq_edit.php' => 'https://doc.pfsense.org/index.php/QinQ_Interfaces',
156
	'services_dyndns.php' => 'https://doc.pfsense.org/index.php/Dynamic_DNS',
157
	'services_dyndns_edit.php' => 'https://doc.pfsense.org/index.php/Dynamic_DNS',
158
	'services_rfc2136.php' => 'https://doc.pfsense.org/index.php/Dynamic_DNS',
159
	'services_rfc2136_edit.php' => 'https://doc.pfsense.org/index.php/Dynamic_DNS',
160
	'services_dhcp.php' => 'https://doc.pfsense.org/index.php/DHCP_Server',
161
	'services_dhcp_edit.php' => 'https://doc.pfsense.org/index.php/DHCP_Server',
162
	'services_dhcp_relay.php' => 'https://doc.pfsense.org/index.php/DHCP_Relay',
163
	'services_dnsmasq.php' => 'https://doc.pfsense.org/index.php/DNS_Forwarder',
164
	'services_dnsmasq_domainoverride_edit.php' => 'https://doc.pfsense.org/index.php/DNS_Forwarder',
165
	'services_dnsmasq_edit.php' => 'https://doc.pfsense.org/index.php/DNS_Forwarder',
166
	'services_igmpproxy.php' => 'https://doc.pfsense.org/index.php/IGMP_Proxy',
167
	'services_igmpproxy_edit.php' => 'https://doc.pfsense.org/index.php/IGMP_Proxy',
168
	'services_snmp.php' => 'https://doc.pfsense.org/index.php/SNMP_Daemon',
169
	'services_wol.php' => 'https://doc.pfsense.org/index.php/Wake_on_LAN',
170
	'services_wol_edit.php' => 'https://doc.pfsense.org/index.php/Wake_on_LAN',
171
	'system.php' => 'https://doc.pfsense.org/index.php/General_Setup',
172
	'system_advanced_admin.php' => 'https://doc.pfsense.org/index.php/Advanced_Setup',
173
	'system_advanced_firewall.php' => 'https://doc.pfsense.org/index.php/Advanced_Setup#Firewall.2FNAT',
174
	'system_advanced_misc.php' => 'https://doc.pfsense.org/index.php/Advanced_Setup#Miscellaneous',
175
	'system_advanced_network.php' => 'https://doc.pfsense.org/index.php/Advanced_Setup#Firewall.2FNAT',
176
	'system_advanced_notifications.php' => 'https://doc.pfsense.org/index.php/Advanced_Setup#Notifications',
177
	'system_advanced_sysctl.php' => 'https://doc.pfsense.org/index.php/Advanced_Setup#System_Tunables',
178
	'system_update_settings.php' => 'https://doc.pfsense.org/index.php/Firmware_Updates',
179
	'system_gateway_groups.php' => 'https://doc.pfsense.org/index.php/Gateway_Settings',
180
	'system_gateway_groups_edit.php' => 'https://doc.pfsense.org/index.php/Gateway_Settings',
181
	'system_gateways.php' => 'https://doc.pfsense.org/index.php/Gateway_Settings',
182
	'system_gateways_edit.php' => 'https://doc.pfsense.org/index.php/Gateway_Settings',
183
	'system_routes.php' => 'https://doc.pfsense.org/index.php/Static_Routes',
184
	'system_routes_edit.php' => 'https://doc.pfsense.org/index.php/Static_Routes',
185
	'system_authservers.php' => 'https://doc.pfsense.org/index.php/User_Authentication_Servers',
186
	'system_groupmanager.php' => 'https://doc.pfsense.org/index.php/Group_Manager',
187
	'system_groupmanager_addprivs.php' => 'https://doc.pfsense.org/index.php/Group_Manager',
188
	'system_usermanager.php' => 'https://doc.pfsense.org/index.php/User_Manager',
189
	'system_usermanager_addprivs.php' => 'https://doc.pfsense.org/index.php/User_Manager',
190
	'system_usermanager_settings.php' => 'https://doc.pfsense.org/index.php/User_Manager',
191
	'system_usermanager_settings_ldapacpicker.php' => 'https://doc.pfsense.org/index.php/User_Manager',
192
	'system_usermanager_settings_test.php' => 'https://doc.pfsense.org/index.php/User_Manager',
193
	'system_usermanager_passwordmg.php' => 'https://doc.pfsense.org/index.php/User_Manager',
194
	'system_camanager.php' => 'https://doc.pfsense.org/index.php/Certificate_Management',
195
	'system_certmanager.php' => 'https://doc.pfsense.org/index.php/Certificate_Management',
196
	'vpn_l2tp.php' => 'https://doc.pfsense.org/index.php/L2TP_VPN_Settings',
197
	'vpn_l2tp_users.php' => 'https://doc.pfsense.org/index.php/L2TP_VPN_Settings',
198
	'vpn_l2tp_users_edit.php' => 'https://doc.pfsense.org/index.php/L2TP_VPN_Settings',
199
	'services_pppoe.php' => 'https://doc.pfsense.org/index.php/PPPoE_Server_Settings',
200
	'services_pppoe_edit.php' => 'https://doc.pfsense.org/index.php/PPPoE_Server_Settings',
201
	'vpn_pptp.php' => 'https://doc.pfsense.org/index.php/PPTP_VPN_Settings',
202
	'vpn_pptp_users.php' => 'https://doc.pfsense.org/index.php/PPTP_VPN_Settings',
203
	'vpn_pptp_users_edit.php' => 'https://doc.pfsense.org/index.php/PPTP_VPN_Settings',
204
	'status_ipsec.php' => 'https://doc.pfsense.org/index.php/IPsec_Status',
205
	'status_ipsec_sad.php' => 'https://doc.pfsense.org/index.php/IPsec_Status',
206
	'status_ipsec_spd.php' => 'https://doc.pfsense.org/index.php/IPsec_Status',
207
	'vpn_ipsec.php' => 'https://doc.pfsense.org/index.php/IPsec_Tunnels',
208
	'vpn_ipsec_mobile.php' => 'https://doc.pfsense.org/index.php/IPsec_Mobile_Clients',
209
	'status_ipsec_leases.php' => 'https://doc.pfsense.org/index.php/IPsec_Mobile_Clients',
210
	'vpn_ipsec_phase1.php' => 'https://doc.pfsense.org/index.php/IPsec_Tunnels',
211
	'vpn_ipsec_phase2.php' => 'https://doc.pfsense.org/index.php/IPsec_Tunnels',
212
	'vpn_ipsec_keys.php' => 'https://doc.pfsense.org/index.php/IPsec_Tunnels',
213
	'vpn_ipsec_keys_edit.php' => 'https://doc.pfsense.org/index.php/IPsec_Tunnels',
214
	'vpn_ipsec_settings.php' => 'https://doc.pfsense.org/index.php/Advanced_IPsec_Settings',
215
	'services_captiveportal.php' => 'https://doc.pfsense.org/index.php/Captive_Portal',
216
	'services_captiveportal_filemanager.php' => 'https://doc.pfsense.org/index.php/Captive_Portal',
217
	'services_captiveportal_ip.php' => 'https://doc.pfsense.org/index.php/Captive_Portal',
218
	'services_captiveportal_ip_edit.php' => 'https://doc.pfsense.org/index.php/Captive_Portal',
219
	'services_captiveportal_mac.php' => 'https://doc.pfsense.org/index.php/Captive_Portal',
220
	'services_captiveportal_mac_edit.php' => 'https://doc.pfsense.org/index.php/Captive_Portal',
221
	'services_captiveportal_hostname.php' => 'https://doc.pfsense.org/index.php/Captive_Portal',
222
	'services_captiveportal_hostname_edit.php' => 'https://doc.pfsense.org/index.php/Captive_Portal',
223
	'status_captiveportal.php' => 'https://doc.pfsense.org/index.php/Captive_Portal_Status',
224
	'status_captiveportal_test.php' => 'https://doc.pfsense.org/index.php/Captive_Portal_Status',
225
	'services_captiveportal_vouchers.php' => 'https://doc.pfsense.org/index.php/Captive_Portal_Vouchers',
226
	'services_captiveportal_vouchers_edit.php' => 'https://doc.pfsense.org/index.php/Captive_Portal_Vouchers',
227
	'status_captiveportal_voucher_rolls.php' => 'https://doc.pfsense.org/index.php/Captive_Portal_Vouchers',
228
	'status_captiveportal_vouchers.php' => 'https://doc.pfsense.org/index.php/Captive_Portal_Vouchers',
229
	'status_openvpn.php' => 'https://doc.pfsense.org/index.php/OpenVPN_Status',
230
	'vpn_openvpn_client.php' => 'https://doc.pfsense.org/index.php/OpenVPN_Settings',
231
	'vpn_openvpn_csc.php' => 'https://doc.pfsense.org/index.php/OpenVPN_Settings',
232
	'vpn_openvpn_server.php' => 'https://doc.pfsense.org/index.php/OpenVPN_Settings',
233
	'openvpn-client-export.xml' => 'https://doc.pfsense.org/index.php/OpenVPN_Client_Exporter', /* Package */
234
	'vpn_openvpn_export.php' => 'https://doc.pfsense.org/index.php/OpenVPN_Client_Exporter', /* Package */
235
	'diag_authentication.php' => 'https://doc.pfsense.org/index.php/User_Authentication_Servers',
236
	'diag_limiter_info.php' => 'https://doc.pfsense.org/index.php/Limiters',
237
	'diag_pf_info.php' => 'https://doc.pfsense.org/index.php/Packet_Filter_Information',
238
	'diag_smart.php' => 'https://doc.pfsense.org/index.php/SMART_Status',
239
	'diag_states_summary.php' => 'https://doc.pfsense.org/index.php/States_Summary',
240
	'interfaces_wireless.php' => 'https://doc.pfsense.org/index.php/Wireless_Interfaces',
241
	'interfaces_wireless_edit.php' => 'https://doc.pfsense.org/index.php/Wireless_Interfaces',
242
	'system_crlmanager.php' => 'https://doc.pfsense.org/index.php/Certificate_Management',
243
	'crash_reporter.php' => 'https://doc.pfsense.org/index.php/Unexpected_Reboot_Troubleshooting',
244
	'diag_dump_states_sources.php' => 'https://doc.pfsense.org/index.php/Show_Source_Tracking',
245
	'diag_ndp.php' => 'https://doc.pfsense.org/index.php/NDP_Table',
246
	'diag_sockets.php' => 'https://doc.pfsense.org/index.php/Diag_Sockets',
247
	'diag_testport.php' => 'https://doc.pfsense.org/index.php/Test_Port',
248
	'firewall_nat_npt.php' => 'https://doc.pfsense.org/index.php/NPt',
249
	'firewall_nat_npt_edit.php' => 'https://doc.pfsense.org/index.php/NPt',
250
	'services_captiveportal_zones.php' => 'https://doc.pfsense.org/index.php/Captive_Portal',
251
	'services_captiveportal_zones_edit.php' => 'https://doc.pfsense.org/index.php/Captive_Portal',
252
	'status_captiveportal_expire.php' => 'https://doc.pfsense.org/index.php/Captive_Portal',
253
	'services_ntpd.php' => 'https://doc.pfsense.org/index.php/NTP_Server',
254
	'status_ntpd.php' => 'https://doc.pfsense.org/index.php/NTP_Server',
255
	'services_ntpd_gps.php' => 'https://doc.pfsense.org/index.php/NTP_Server',
256
	'services_ntpd_pps.php' => 'https://doc.pfsense.org/index.php/NTP_Server',
257
	'load_balancer_monitor.php' => 'https://doc.pfsense.org/index.php/Inbound_Load_Balancing',
258
	'load_balancer_monitor_edit.php' => 'https://doc.pfsense.org/index.php/Inbound_Load_Balancing',
259
	'load_balancer_pool.php' => 'https://doc.pfsense.org/index.php/Inbound_Load_Balancing#Set_up_Load_Balancing_Pool',
260
	'load_balancer_pool_edit.php' => 'https://doc.pfsense.org/index.php/Inbound_Load_Balancing#Set_up_Load_Balancing_Pool',
261
	'load_balancer_virtual_server.php' => 'https://doc.pfsense.org/index.php/Inbound_Load_Balancing#Set_up_Virtual_Server',
262
	'load_balancer_virtual_server_edit.php' => 'https://doc.pfsense.org/index.php/Inbound_Load_Balancing#Set_up_Virtual_Server',
263
	'load_balancer_setting.php' => 'https://doc.pfsense.org/index.php/Inbound_Load_Balancing#Advanced_Settings',
264
	'status_lb_pool.php' => 'https://doc.pfsense.org/index.php/Inbound_Load_Balancing_Status',
265
	'status_lb_vs.php' => 'https://doc.pfsense.org/index.php/Inbound_Load_Balancing_Status',
266
	'services_dhcpv6_relay.php' => 'https://doc.pfsense.org/index.php/DHCP_Relay',
267
	'status_dhcpv6_leases.php' => 'https://doc.pfsense.org/index.php/DHCPv6_Leases',
268
	'services_dhcpv6.php' => 'https://doc.pfsense.org/index.php/DHCPv6_Server',
269
	'services_dhcpv6_edit.php' => 'https://doc.pfsense.org/index.php/DHCPv6_Server',
270
	'services_router_advertisements.php' => 'https://doc.pfsense.org/index.php/Router_Advertisements',
271
	'status_carp.php' => 'https://doc.pfsense.org/index.php/CARP_Status',
272
	'system_hasync.php' => 'https://doc.pfsense.org/index.php/High_Availability',
273
	'services_unbound.php' => 'https://doc.pfsense.org/index.php/Unbound_DNS_Resolver',
274
	'services_unbound_advanced.php' => 'https://doc.pfsense.org/index.php/Unbound_DNS_Resolver#Advanced_Settings_Tab',
275
	'services_unbound_acls.php' => 'https://doc.pfsense.org/index.php/Unbound_DNS_Resolver#Access_Lists_Tab',
276
	'services_unbound_domainoverride_edit.php' => 'https://doc.pfsense.org/index.php/Unbound_DNS_Resolver',
277
	'services_unbound_host_edit.php' => 'https://doc.pfsense.org/index.php/Unbound_DNS_Resolver',
278
	'diag_gmirror.php' => 'https://doc.pfsense.org/index.php/Create_a_Software_RAID1_%28gmirror%29',
279

    
280
	/* From here down are packages. Not checking these as strictly,
281
	any information is better than nothing. */
282
	'olsrd.xml' => 'https://doc.pfsense.org/index.php/OLSR_Daemon',
283
	'routed.xml' => 'https://doc.pfsense.org/index.php/Routing_Information_Protocol_(RIP)', # RIP
284
	'autoconfigbackup.xml' => 'https://doc.pfsense.org/index.php/AutoConfigBackup',
285
	'phpservice.xml' => 'https://doc.pfsense.org/index.php/PHPService',
286
	'anyterm.xml' => 'https://doc.pfsense.org/index.php/AnyTerm_package',
287
	'avahi.xml' => 'https://doc.pfsense.org/index.php/Avahi_package',
288
	'squid.xml' => 'https://doc.pfsense.org/index.php/Category:Squid',
289
	'squid_auth.xml' => 'https://doc.pfsense.org/index.php/Category:Squid',
290
	'squid_cache.xml' => 'https://doc.pfsense.org/index.php/Category:Squid',
291
	'squid_extauth.xml' => 'https://doc.pfsense.org/index.php/Category:Squid',
292
	'squid_nac.xml' => 'https://doc.pfsense.org/index.php/Category:Squid',
293
	'squid_ng.xml' => 'https://doc.pfsense.org/index.php/Category:Squid',
294
	'squid_traffic.xml' => 'https://doc.pfsense.org/index.php/Category:Squid',
295
	'squid_upstream.xml' => 'https://doc.pfsense.org/index.php/Category:Squid',
296
	'squid_users.xml' => 'https://doc.pfsense.org/index.php/Category:Squid',
297
	'squidGuard.xml' => 'https://doc.pfsense.org/index.php/SquidGuard_package',
298
	'squidguard.xml' => 'https://doc.pfsense.org/index.php/SquidGuard_package',
299
	'squidguard_acl.xml' => 'https://doc.pfsense.org/index.php/SquidGuard_package',
300
	'squidguard_default.xml' => 'https://doc.pfsense.org/index.php/SquidGuard_package',
301
	'squidguard_dest.xml' => 'https://doc.pfsense.org/index.php/SquidGuard_package',
302
	'squidguard_log.xml' => 'https://doc.pfsense.org/index.php/SquidGuard_package',
303
	'squidguard_rewr.xml' => 'https://doc.pfsense.org/index.php/SquidGuard_package',
304
	'squidguard_time.xml' => 'https://doc.pfsense.org/index.php/SquidGuard_package',
305
	'bandwidthd.xml' => 'https://doc.pfsense.org/index.php/How_can_I_monitor_bandwidth_usage',
306
	'pfflowd.xml' => 'https://doc.pfsense.org/index.php/How_can_I_monitor_bandwidth_usage',
307
	'darkstat.xml' => 'https://doc.pfsense.org/index.php/How_can_I_monitor_bandwidth_usage',
308
	'rate.xml' => 'https://doc.pfsense.org/index.php/How_can_I_monitor_bandwidth_usage',
309
	'ntop.xml' => 'https://doc.pfsense.org/index.php/How_can_I_monitor_bandwidth_usage',
310
	'ntopng.xml' => 'https://doc.pfsense.org/index.php/How_can_I_monitor_bandwidth_usage',
311
	'vnstat.xml' => 'https://doc.pfsense.org/index.php/How_can_I_monitor_bandwidth_usage',
312
	'widentd.xml' => 'https://doc.pfsense.org/index.php/Widentd_package',
313
	'tinydns.xml' => 'https://doc.pfsense.org/index.php/Tinydns_package',
314
	'tinydns_domains.xml' => 'https://doc.pfsense.org/index.php/Tinydns_package',
315
	'tinydns_sync.xml' => 'https://doc.pfsense.org/index.php/Tinydns_package',
316
	'blinkled.xml' => 'https://doc.pfsense.org/index.php/BlinkLED_Package',
317
	'havp.xml' => 'https://doc.pfsense.org/index.php/HAVP_Package_for_HTTP_Anti-Virus_Scanning',
318
	'havp_avset.xml' => 'https://doc.pfsense.org/index.php/HAVP_Package_for_HTTP_Anti-Virus_Scanning',
319
	'havp_blacklist.xml' => 'https://doc.pfsense.org/index.php/HAVP_Package_for_HTTP_Anti-Virus_Scanning',
320
	'havp_fscan.xml' => 'https://doc.pfsense.org/index.php/HAVP_Package_for_HTTP_Anti-Virus_Scanning',
321
	'havp_trans_exclude.xml' => 'https://doc.pfsense.org/index.php/HAVP_Package_for_HTTP_Anti-Virus_Scanning',
322
	'havp_whitelist.xml' => 'https://doc.pfsense.org/index.php/HAVP_Package_for_HTTP_Anti-Virus_Scanning',
323
	'snort.xml' => 'https://doc.pfsense.org/index.php/Setup_Snort_Package',
324
	'snort/snort_interfaces.php' => 'https://doc.pfsense.org/index.php/Snort_interfaces',
325
	'snort/snort_interfaces_global.php' => 'https://doc.pfsense.org/index.php/Snort_interfaces_global',
326
	'snort/snort_download_updates.php' => 'https://doc.pfsense.org/index.php/Snort_updates',
327
	'snort/snort_alerts.php' => 'https://doc.pfsense.org/index.php/Snort_alerts',
328
	'snort/snort_blocked.php' => 'https://doc.pfsense.org/index.php/Snort_blocked_hosts',
329
	'snort/snort_passlist.php' => 'https://doc.pfsense.org/index.php/Snort_passlist',
330
	'snort/snort_passlist_edit.php' => 'https://doc.pfsense.org/index.php/Snort_passlist',
331
	'snort/snort_interfaces_suppress.php' => 'https://doc.pfsense.org/index.php/Snort_suppress_list',
332
	'snort/snort_interfaces_suppress_edit.php' => 'https://doc.pfsense.org/index.php/Snort_suppress_list',
333
	'snort/snort_interfaces_edit.php' => 'https://doc.pfsense.org/index.php/Snort_interfaces_edit',
334
	'snort/snort_rulesets.php' => 'https://doc.pfsense.org/index.php/Snort_rulesets',
335
	'snort/snort_rules.php' => 'https://doc.pfsense.org/index.php/Snort_rules',
336
	'snort/snort_define_servers.php' => 'https://doc.pfsense.org/index.php/Snort_define_servers',
337
	'snort/snort_preprocessors.php' => 'https://doc.pfsense.org/index.php/Snort_preprocessors',
338
	'snort/snort_barnyard.php' => 'https://doc.pfsense.org/index.php/Snort_barnyard2',
339
	'snort/snort_ip_reputation.php' => 'https://doc.pfsense.org/index.php/Snort_ip_reputation_preprocessor',
340
	'snort/snort_ip_list_mgmt.php' => 'https://doc.pfsense.org/index.php/Snort_ip_list_mgmt',
341
	'snort/snort_sync.xml' => 'https://doc.pfsense.org/index.php/Snort_sync',
342
	'stunnel.xml' => 'https://doc.pfsense.org/index.php/Stunnel_package',
343
	'stunnel_certs.xml' => 'https://doc.pfsense.org/index.php/Stunnel_package',
344
	'openbgpd.xml' => 'https://doc.pfsense.org/index.php/OpenBGPD_package',
345
	'openbgpd_groups.xml' => 'https://doc.pfsense.org/index.php/OpenBGPD_package',
346
	'openbgpd_neighbors.xml' => 'https://doc.pfsense.org/index.php/OpenBGPD_package',
347
	'iperf.xml' => 'https://doc.pfsense.org/index.php/Iperf_package',
348
	'iperfserver.xml' => 'https://doc.pfsense.org/index.php/Iperf_package',
349
	'jail_template.xml' => 'https://doc.pfsense.org/index.php/PfJailctl_package',
350
	'jailctl.xml' => 'https://doc.pfsense.org/index.php/PfJailctl_package',
351
	'jailctl_defaults.xml' => 'https://doc.pfsense.org/index.php/PfJailctl_package',
352
	'jailctl_settings.xml' => 'https://doc.pfsense.org/index.php/PfJailctl_package',
353
	'siproxd.xml' => 'https://doc.pfsense.org/index.php/Siproxd_package',
354
	'siproxdusers.xml' => 'https://doc.pfsense.org/index.php/Siproxd_package',
355
	'open-vm-tools.xml' => 'https://doc.pfsense.org/index.php/Open_VM_Tools_package',
356
	'arping.xml' => 'https://doc.pfsense.org/index.php/Arping_package',
357
	'unbound.xml' => 'https://doc.pfsense.org/index.php/Unbound_package',
358
	'nut.xml' => 'https://doc.pfsense.org/index.php/Nut_package',
359

    
360
);
361

    
362
$pagename = "";
363
/* Check for parameter "page". */
364
if ($_GET && isset($_GET['page'])) {
365
	$pagename = $_GET['page'];
366
}
367

    
368
/* If "page" is not found, check referring URL */
369
if (empty($pagename)) {
370
	/* Attempt to parse out filename */
371
	$uri_split = "";
372
	preg_match("/\/(.*)\?(.*)/", $_SERVER["HTTP_REFERER"], $uri_split);
373

    
374
	/* If there was no match, there were no parameters, just grab the filename
375
		Otherwise, use the matched filename from above. */
376
	if (empty($uri_split[0])) {
377
		$pagename = ltrim(parse_url($_SERVER["HTTP_REFERER"], PHP_URL_PATH), '/');
378
	} else {
379
		$pagename = $uri_split[1];
380
	}
381

    
382
	/* If the page name is still empty, the user must have requested / (index.php) */
383
	if (empty($pagename)) {
384
		$pagename = "index.php";
385
	}
386

    
387
	/* If the filename is pkg_edit.php or wizard.php, reparse looking
388
		for the .xml filename */
389
	if (($pagename == "pkg.php") || ($pagename == "pkg_edit.php") || ($pagename == "wizard.php")) {
390
		$param_split = explode('&', $uri_split[2]);
391
		foreach ($param_split as $param) {
392
			if (substr($param, 0, 4) == "xml=") {
393
				$xmlfile = explode('=', $param);
394
				$pagename = $xmlfile[1];
395
			}
396
		}
397
	}
398
}
399

    
400
/* Using the derived page name, attempt to find in the URL mapping hash */
401
if (array_key_exists($pagename, $helppages)) {
402
	$helppage = $helppages[$pagename];
403
}
404

    
405
/* If we haven't determined a proper page, use a generic help page
406
	 stating that a given page does not have help yet. */
407

    
408
if (empty($helppage)) {
409
	$helppage = 'https://doc.pfsense.org/index.php/No_Help_Found';
410
}
411

    
412
/* Redirect to help page. */
413
header("Location: {$helppage}");
414

    
415
?>
(65-65/227)