Project

General

Profile

Download (29.1 KB) Statistics
| Branch: | Tag: | Revision:
1
<?php
2
/* 
3
	Redirector for Contextual Help System
4
 */
5
/* ====================================================================
6
 *  Copyright (c)  2004-2015  Electric Sheep Fencing, LLC. All rights reserved. 
7
 *  c) 2009 Jim Pingle <jimp@pfsense.org>
8
 *
9
 *  Redistribution and use in source and binary forms, with or without modification, 
10
 *  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
 *
55
 */
56
 
57
require_once("guiconfig.inc");
58

    
59
/* Define hash of jumpto url maps */
60

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

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

    
370
);
371

    
372
$pagename = "";
373
/* Check for parameter "page". */
374
if ($_GET && isset($_GET['page'])) {
375
	$pagename = $_GET['page'];
376
}
377

    
378
/* If "page" is not found, check referring URL */
379
if (empty($pagename)) {
380
	/* Attempt to parse out filename */
381
	$uri_split = "";
382
	preg_match("/\/(.*)\?(.*)/", $_SERVER["HTTP_REFERER"], $uri_split);
383

    
384
	/* If there was no match, there were no parameters, just grab the filename
385
		Otherwise, use the matched filename from above. */
386
	if (empty($uri_split[0])) {
387
		$pagename = ltrim(parse_url($_SERVER["HTTP_REFERER"], PHP_URL_PATH), '/');
388
	} else {
389
		$pagename = $uri_split[1];
390
	}
391

    
392
	/* If the page name is still empty, the user must have requested / (index.php) */
393
	if (empty($pagename)) {
394
		$pagename = "index.php";
395
	}
396

    
397
	/* If the filename is pkg_edit.php or wizard.php, reparse looking
398
		for the .xml filename */
399
	if (($pagename == "pkg.php") || ($pagename == "pkg_edit.php") || ($pagename == "wizard.php")) {
400
		$param_split = explode('&', $uri_split[2]);
401
		foreach ($param_split as $param) {
402
			if (substr($param, 0, 4) == "xml=") {
403
				$xmlfile = explode('=', $param);
404
				$pagename = $xmlfile[1];
405
			}
406
		}
407
	}
408
}
409

    
410
/* Using the derived page name, attempt to find in the URL mapping hash */
411
if (array_key_exists($pagename, $helppages)) {
412
	$helppage = $helppages[$pagename];
413
}
414

    
415
/* If we haven't determined a proper page, use a generic help page
416
	 stating that a given page does not have help yet. */
417

    
418
if (empty($helppage)) {
419
	$helppage = 'https://doc.pfsense.org/index.php/No_Help_Found';
420
}
421

    
422
/* Redirect to help page. */
423
header("Location: {$helppage}");
424

    
425
?>
(80-80/235)