Project

General

Profile

Download (26.6 KB) Statistics
| Branch: | Tag: | Revision:
1
<?php
2
/* Redirector for Contextual Help System
3
 * Copyright (C) 2013-2015 Electric Sheep Fencing, LP
4
 * (c) 2009 Jim Pingle <jimp@pfsense.org>
5
 *
6
 */
7

    
8
require_once("guiconfig.inc");
9

    
10
/* Define hash of jumpto url maps */
11

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

    
241
	/* From here down are packages. Not checking these as strictly, 
242
	any information is better than nothing. */
243
	'olsrd.xml' => 'https://doc.pfsense.org/index.php/OLSR_Daemon',
244
	'routed.xml' => 'https://doc.pfsense.org/index.php/Routing_Information_Protocol_(RIP)', # RIP
245
	'autoconfigbackup.xml' => 'https://doc.pfsense.org/index.php/AutoConfigBackup',
246
	'phpservice.xml' => 'https://doc.pfsense.org/index.php/PHPService',
247
	'anyterm.xml' => 'https://doc.pfsense.org/index.php/AnyTerm_package',
248
	'avahi.xml' => 'https://doc.pfsense.org/index.php/Avahi_package',
249
	'squid.xml' => 'https://doc.pfsense.org/index.php/Category:Squid',
250
	'squid_auth.xml' => 'https://doc.pfsense.org/index.php/Category:Squid',
251
	'squid_cache.xml' => 'https://doc.pfsense.org/index.php/Category:Squid',
252
	'squid_extauth.xml' => 'https://doc.pfsense.org/index.php/Category:Squid',
253
	'squid_nac.xml' => 'https://doc.pfsense.org/index.php/Category:Squid',
254
	'squid_ng.xml' => 'https://doc.pfsense.org/index.php/Category:Squid',
255
	'squid_traffic.xml' => 'https://doc.pfsense.org/index.php/Category:Squid',
256
	'squid_upstream.xml' => 'https://doc.pfsense.org/index.php/Category:Squid',
257
	'squid_users.xml' => 'https://doc.pfsense.org/index.php/Category:Squid',
258
	'squidGuard.xml' => 'https://doc.pfsense.org/index.php/SquidGuard_package',
259
	'squidguard.xml' => 'https://doc.pfsense.org/index.php/SquidGuard_package',
260
	'squidguard_acl.xml' => 'https://doc.pfsense.org/index.php/SquidGuard_package',
261
	'squidguard_default.xml' => 'https://doc.pfsense.org/index.php/SquidGuard_package',
262
	'squidguard_dest.xml' => 'https://doc.pfsense.org/index.php/SquidGuard_package',
263
	'squidguard_log.xml' => 'https://doc.pfsense.org/index.php/SquidGuard_package',
264
	'squidguard_rewr.xml' => 'https://doc.pfsense.org/index.php/SquidGuard_package',
265
	'squidguard_time.xml' => 'https://doc.pfsense.org/index.php/SquidGuard_package',
266
	'bandwidthd.xml' => 'https://doc.pfsense.org/index.php/How_can_I_monitor_bandwidth_usage',
267
	'pfflowd.xml' => 'https://doc.pfsense.org/index.php/How_can_I_monitor_bandwidth_usage',
268
	'darkstat.xml' => 'https://doc.pfsense.org/index.php/How_can_I_monitor_bandwidth_usage',
269
	'rate.xml' => 'https://doc.pfsense.org/index.php/How_can_I_monitor_bandwidth_usage',
270
	'ntop.xml' => 'https://doc.pfsense.org/index.php/How_can_I_monitor_bandwidth_usage',
271
	'ntopng.xml' => 'https://doc.pfsense.org/index.php/How_can_I_monitor_bandwidth_usage',
272
	'vnstat.xml' => 'https://doc.pfsense.org/index.php/How_can_I_monitor_bandwidth_usage',
273
	'widentd.xml' => 'https://doc.pfsense.org/index.php/Widentd_package',
274
	'tinydns.xml' => 'https://doc.pfsense.org/index.php/Tinydns_package',
275
	'tinydns_domains.xml' => 'https://doc.pfsense.org/index.php/Tinydns_package',
276
	'tinydns_sync.xml' => 'https://doc.pfsense.org/index.php/Tinydns_package',
277
	'blinkled.xml' => 'https://doc.pfsense.org/index.php/BlinkLED_Package',
278
	'havp.xml' => 'https://doc.pfsense.org/index.php/HAVP_Package_for_HTTP_Anti-Virus_Scanning',
279
	'havp_avset.xml' => 'https://doc.pfsense.org/index.php/HAVP_Package_for_HTTP_Anti-Virus_Scanning',
280
	'havp_blacklist.xml' => 'https://doc.pfsense.org/index.php/HAVP_Package_for_HTTP_Anti-Virus_Scanning',
281
	'havp_fscan.xml' => 'https://doc.pfsense.org/index.php/HAVP_Package_for_HTTP_Anti-Virus_Scanning',
282
	'havp_trans_exclude.xml' => 'https://doc.pfsense.org/index.php/HAVP_Package_for_HTTP_Anti-Virus_Scanning',
283
	'havp_whitelist.xml' => 'https://doc.pfsense.org/index.php/HAVP_Package_for_HTTP_Anti-Virus_Scanning',
284
	'snort.xml' => 'https://doc.pfsense.org/index.php/Setup_Snort_Package',
285
	'snort/snort_interfaces.php' => 'https://doc.pfsense.org/index.php/Snort_interfaces',
286
	'snort/snort_interfaces_global.php' => 'https://doc.pfsense.org/index.php/Snort_interfaces_global',
287
	'snort/snort_download_updates.php' => 'https://doc.pfsense.org/index.php/Snort_updates',
288
	'snort/snort_alerts.php' => 'https://doc.pfsense.org/index.php/Snort_alerts',
289
	'snort/snort_blocked.php' => 'https://doc.pfsense.org/index.php/Snort_blocked_hosts',
290
	'snort/snort_passlist.php' => 'https://doc.pfsense.org/index.php/Snort_passlist',
291
	'snort/snort_passlist_edit.php' => 'https://doc.pfsense.org/index.php/Snort_passlist',
292
	'snort/snort_interfaces_suppress.php' => 'https://doc.pfsense.org/index.php/Snort_suppress_list',
293
	'snort/snort_interfaces_suppress_edit.php' => 'https://doc.pfsense.org/index.php/Snort_suppress_list',
294
	'snort/snort_interfaces_edit.php' => 'https://doc.pfsense.org/index.php/Snort_interfaces_edit',
295
	'snort/snort_rulesets.php' => 'https://doc.pfsense.org/index.php/Snort_rulesets',
296
	'snort/snort_rules.php' => 'https://doc.pfsense.org/index.php/Snort_rules',
297
	'snort/snort_define_servers.php' => 'https://doc.pfsense.org/index.php/Snort_define_servers',
298
	'snort/snort_preprocessors.php' => 'https://doc.pfsense.org/index.php/Snort_preprocessors',
299
	'snort/snort_barnyard.php' => 'https://doc.pfsense.org/index.php/Snort_barnyard2',
300
	'snort/snort_ip_reputation.php' => 'https://doc.pfsense.org/index.php/Snort_ip_reputation_preprocessor',
301
	'snort/snort_ip_list_mgmt.php' => 'https://doc.pfsense.org/index.php/Snort_ip_list_mgmt',
302
	'snort/snort_sync.xml' => 'https://doc.pfsense.org/index.php/Snort_sync',
303
	'stunnel.xml' => 'https://doc.pfsense.org/index.php/Stunnel_package',
304
	'stunnel_certs.xml' => 'https://doc.pfsense.org/index.php/Stunnel_package',
305
	'openbgpd.xml' => 'https://doc.pfsense.org/index.php/OpenBGPD_package',
306
	'openbgpd_groups.xml' => 'https://doc.pfsense.org/index.php/OpenBGPD_package',
307
	'openbgpd_neighbors.xml' => 'https://doc.pfsense.org/index.php/OpenBGPD_package',
308
	'iperf.xml' => 'https://doc.pfsense.org/index.php/Iperf_package',
309
	'iperfserver.xml' => 'https://doc.pfsense.org/index.php/Iperf_package',
310
	'jail_template.xml' => 'https://doc.pfsense.org/index.php/PfJailctl_package',
311
	'jailctl.xml' => 'https://doc.pfsense.org/index.php/PfJailctl_package',
312
	'jailctl_defaults.xml' => 'https://doc.pfsense.org/index.php/PfJailctl_package',
313
	'jailctl_settings.xml' => 'https://doc.pfsense.org/index.php/PfJailctl_package',
314
	'siproxd.xml' => 'https://doc.pfsense.org/index.php/Siproxd_package',
315
	'siproxdusers.xml' => 'https://doc.pfsense.org/index.php/Siproxd_package',
316
	'open-vm-tools.xml' => 'https://doc.pfsense.org/index.php/Open_VM_Tools_package',
317
	'arping.xml' => 'https://doc.pfsense.org/index.php/Arping_package',
318
	'unbound.xml' => 'https://doc.pfsense.org/index.php/Unbound_package',
319

    
320
);
321

    
322
$pagename = "";
323
/* Check for parameter "page". */
324
if ($_GET && isset($_GET['page'])) {
325
	$pagename = $_GET['page'];
326
}
327

    
328
/* If "page" is not found, check referring URL */
329
if (empty($pagename)) {
330
	/* Attempt to parse out filename */
331
	$uri_split = "";
332
	preg_match("/\/(.*)\?(.*)/", $_SERVER["HTTP_REFERER"], $uri_split);
333

    
334
	/* If there was no match, there were no parameters, just grab the filename
335
		Otherwise, use the matched filename from above. */
336
	if (empty($uri_split[0])) {
337
		$pagename = ltrim(parse_url($_SERVER["HTTP_REFERER"], PHP_URL_PATH), '/');
338
	} else {
339
		$pagename = $uri_split[1];
340
	}
341

    
342
	/* If the page name is still empty, the user must have requested / (index.php) */
343
	if (empty($pagename)) {
344
		$pagename = "index.php";
345
	}
346

    
347
	/* If the filename is pkg_edit.php or wizard.php, reparse looking
348
		for the .xml filename */
349
	if (($pagename == "pkg.php") || ($pagename == "pkg_edit.php") || ($pagename == "wizard.php")) {
350
		$param_split = explode('&', $uri_split[2]);
351
		foreach ($param_split as $param) {
352
			if (substr($param, 0, 4) == "xml=") {
353
				$xmlfile = explode('=', $param);
354
				$pagename = $xmlfile[1];
355
			}
356
		}
357
	}
358
}
359

    
360
/* Using the derived page name, attempt to find in the URL mapping hash */
361
if (array_key_exists($pagename, $helppages)) {
362
	$helppage = $helppages[$pagename];
363
}
364

    
365
/* If we haven't determined a proper page, use a generic help page
366
	 stating that a given page does not have help yet. */
367

    
368
if (empty($helppage)) {
369
	$helppage = 'https://doc.pfsense.org/index.php/No_Help_Found';
370

    
371
}
372

    
373
/* Redirect to help page. */
374
header("Location: {$helppage}");
375

    
376
?>
(90-90/252)