-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathHelp.php
36 lines (32 loc) · 1.22 KB
/
Help.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
/*******************************************************************************
*
* filename : Help.php
* last change : 2003-01-17
* description : Online help system (eventually should be XML based)
*
* http://www.infocentral.org/
* Copyright 2001-2002 Phillip Hullquist, Deane Barker
*
* InfoCentral is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
******************************************************************************/
// Include the function library
require "Include/Config.php";
require "Include/Initialize.php";
// Valid pages to request via the 'page' GET variable. (prevent XSS)
$aValidPages = array('About', 'Admin', 'Cart', 'Class', 'Custom', 'Family', 'Geographic', 'Finances', 'Groups', 'Notes', 'People', 'Properties', 'Reports', 'Types', 'Canvass', 'Events');
if (in_array($_GET['page'], $aValidPages))
{
$sPageName = "Help/" . substr($sLanguage,0,2) . "/" . $_GET['page'] . ".php";
if (file_exists($sPageName))
include $sPageName;
else
include "Help/en/" . $_GET['page'] . ".php";
}
else
exit;
?>