e222c290 |
1 | <HTML> |
2 | <FONT FACE="Arial,Helvetica"> |
3 | |
4 | <?php |
5 | |
6 | /** |
7 | ** help.php |
8 | ** |
9 | ** This checks if the user's preferred language has a directory and file present |
10 | ** then loads it or english if preferred is not found. |
11 | ** |
12 | **/ |
13 | |
14 | if (!isset($config_php)) |
15 | include("../config/config.php"); |
16 | |
17 | /** If it was a successful login, lets load their preferences **/ |
18 | include("../src/load_prefs.php"); |
19 | echo "<BODY TEXT=\"$color[8]\" BGCOLOR=\"$color[4]\" LINK=\"$color[7]\" VLINK=\"$color[7]\" ALINK=\"$color[7]\">\n"; |
20 | |
21 | /** |
22 | ** Check to see if the help files have been translated into the users language |
23 | ** If so, include them, if not, give them english. The po file should really have |
24 | ** The echo line put in it. |
25 | **/ |
26 | |
27 | if (file_exists("../help/$user_language/basic.hlp")) { |
28 | include ("../help/$user_language/basic.hlp"); |
29 | } else { |
30 | echo "<CENTER><B><FONT COLOR=$color[2]>Your preferred language is not yet translated. English will be substituted here.</FONT></B></CENTER><BR>"; |
31 | include ("../help/en/basic.hlp"); |
32 | } |
33 | if (file_exists("../help/$user_language/main_folder.hlp")) { |
34 | include ("../help/$user_language/main_folder.hlp"); |
35 | } else { |
36 | echo "<CENTER><B><FONT COLOR=$color[2]>Your preferred language is not yet translated. English will be substituted here.</FONT></B></CENTER><BR>"; |
37 | include ("../help/en/main_folder.hlp"); |
38 | } |
39 | if (file_exists("../help/$user_language/read_mail.hlp")) { |
40 | include ("../help/$user_language/read_mail.hlp"); |
41 | } else { |
42 | echo "<CENTER><B><FONT COLOR=$color[2]>Your preferred language is not yet translated. English will be substituted here.</FONT></B></CENTER><BR>"; |
43 | include ("../help/en/read_mail.hlp"); |
44 | } |
45 | if (file_exists("../help/$user_language/compose.hlp")) { |
46 | include ("../help/$user_language/compose.hlp"); |
47 | } else { |
48 | echo "<CENTER><B><FONT COLOR=$color[2]>Your preferred language is not yet translated. English will be substituted here.</FONT></B></CENTER><BR>"; |
49 | include ("../help/en/compose.hlp"); |
50 | } |
51 | if (file_exists("../help/$user_language/addresses.hlp")) { |
52 | include ("../help/$user_language/addresses.hlp"); |
53 | } else { |
54 | echo "<CENTER><B><FONT COLOR=$color[2]>Your preferred language is not yet translated. English will be substituted here.</FONT></B></CENTER><BR>"; |
55 | include ("../help/en/addresses.hlp"); |
56 | } |
57 | if (file_exists("../help/$user_language/folders.hlp")) { |
58 | include ("../help/$user_language/folders.hlp"); |
59 | } else { |
60 | echo "<CENTER><B><FONT COLOR=$color[2]>Your preferred language is not yet translated. English will be substituted here.</FONT></B></CENTER><BR>"; |
61 | include ("../help/en/folders.hlp"); |
62 | } |
63 | if (file_exists("../help/$user_language/options.hlp")) { |
64 | include ("../help/$user_language/options.hlp"); |
65 | } else { |
66 | echo "<CENTER><B><FONT COLOR=$color[2]>Your preferred language is not yet translated. English will be substituted here.</FONT></B></CENTER><BR>"; |
67 | include ("../help/en/options.hlp"); |
68 | } |
69 | if (file_exists("../help/$user_language/FAQ.hlp")) { |
70 | include ("../help/$user_language/FAQ.hlp"); |
71 | } else { |
72 | echo "<CENTER><B><FONT COLOR=$color[2]>Your preferred language is not yet translated. English will be substituted here.</FONT></B></CENTER><BR>"; |
73 | include ("../help/en/FAQ.hlp"); |
74 | } |
75 | |
76 | ?> |
77 | </FONT> |
78 | </BODY> |
79 | </HTML> |