source: gm_system/help/help_setup.php@ 651

Last change on this file since 651 was 651, checked in by aleg, 15 years ago

Změněná cesta k GM a Char logům pro realmy 4 a 7.

File size: 1.9 KB
Line 
1<?php
2/*
3 $Id: help_setup.php 1963 2008-04-12 06:34:29Z andrewsimpson $
4
5 (c) 2003 - 2007 Andrew Simpson <andrew.simpson at paradise.net.nz>
6
7 WebCollab
8 ---------------------------------------
9 This program is free software; you can redistribute it and/or modify it under the
10 terms of the GNU General Public License as published by the Free Software Foundation;
11 either version 2 of the License, or (at your option) any later version.
12
13 This program is distributed in the hope that it will be useful, but WITHOUT ANY
14 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
15 PARTICULAR PURPOSE. See the GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License along with this
18 program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave,
19 Cambridge, MA 02139, USA.
20
21 Function:
22 ---------
23
24 Creates a singular interface for setup help access.
25
26*/
27
28//get our location
29require_once('path.php' );
30require_once(BASE.'path_config.php' );
31require_once(BASE_CONFIG.'config.php' );
32
33//language select
34switch($_GET['lang'] ) {
35
36 case 'es':
37 $lang_prefix = 'es';
38 break;
39
40 case 'nl':
41 $lang_prefix = 'nl';
42 break;
43
44 case 'pt':
45 $lang_prefix = 'pt';
46 break;
47
48 case 'pt-br':
49 $lang_prefix = 'pt-br';
50 break;
51
52 case 'en':
53 default:
54 $lang_prefix = 'en';
55 break;
56}
57
58//select file
59switch($_GET['type'] ) {
60
61 case 'setup2':
62 if(is_readable(BASE.'help/'.$lang_prefix.'_help_setup2.php') ) {
63 include_once(BASE.'help/'.$lang_prefix.'_help_setup2.php');
64 }
65 else {
66 include_once(BASE.'help/en_help_setup2.php');
67 }
68 break;
69
70 case 'setup3':
71 if(is_readable(BASE.'help/'.$lang_prefix.'_help_setup3.php') ) {
72 include_once(BASE.'help/'.$lang_prefix.'_help_setup3.php');
73 }
74 else {
75 include_once(BASE.'help/en_help_setup3.php');
76 }
77 break;
78
79 default:
80 //no matches
81 break;
82}
83
84?>
Note: See TracBrowser for help on using the repository browser.