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"); |
f7942326 |
29 | } elseif(file_exists("../help/en/basic.hlp")) { |
802d73a4 |
30 | echo "<CENTER><B><FONT COLOR=$color[2]>"; |
31 | echo _("Your preferred language is not yet translated. English will be substituted here."); |
32 | echo "</FONT></B></CENTER><BR>"; |
e222c290 |
33 | include ("../help/en/basic.hlp"); |
f7942326 |
34 | } else { |
35 | $nohelp = true; |
e222c290 |
36 | } |
37 | if (file_exists("../help/$user_language/main_folder.hlp")) { |
38 | include ("../help/$user_language/main_folder.hlp"); |
f7942326 |
39 | } elseif(file_exists("../help/en/main_folder.hlp")) { |
802d73a4 |
40 | echo "<CENTER><B><FONT COLOR=$color[2]>"; |
41 | echo _("Your preferred language is not yet translated. English will be substituted here."); |
42 | echo "</FONT></B></CENTER><BR>"; |
e222c290 |
43 | include ("../help/en/main_folder.hlp"); |
f7942326 |
44 | } else { |
45 | $nohelp = true; |
e222c290 |
46 | } |
47 | if (file_exists("../help/$user_language/read_mail.hlp")) { |
48 | include ("../help/$user_language/read_mail.hlp"); |
f7942326 |
49 | } elseif(file_exists("../help/en/read_mail.hlp")) { |
802d73a4 |
50 | echo "<CENTER><B><FONT COLOR=$color[2]>"; |
51 | echo _("Your preferred language is not yet translated. English will be substituted here."); |
52 | echo "</FONT></B></CENTER><BR>"; |
e222c290 |
53 | include ("../help/en/read_mail.hlp"); |
f7942326 |
54 | } else { |
55 | $nohelp = true; |
e222c290 |
56 | } |
57 | if (file_exists("../help/$user_language/compose.hlp")) { |
58 | include ("../help/$user_language/compose.hlp"); |
f7942326 |
59 | } elseif(file_exists("../help/en/compose.hlp")) { |
e222c290 |
60 | echo "<CENTER><B><FONT COLOR=$color[2]>Your preferred language is not yet translated. English will be substituted here.</FONT></B></CENTER><BR>"; |
802d73a4 |
61 | echo "<CENTER><B><FONT COLOR=$color[2]>"; |
62 | echo _("Your preferred language is not yet translated. English will be substituted here."); |
63 | echo "</FONT></B></CENTER><BR>"; |
e222c290 |
64 | include ("../help/en/compose.hlp"); |
f7942326 |
65 | } else { |
66 | $nohelp = true; |
e222c290 |
67 | } |
68 | if (file_exists("../help/$user_language/addresses.hlp")) { |
69 | include ("../help/$user_language/addresses.hlp"); |
f7942326 |
70 | } elseif(file_exists("../help/en/addresses.hlp")) { |
802d73a4 |
71 | echo "<CENTER><B><FONT COLOR=$color[2]>"; |
72 | echo _("Your preferred language is not yet translated. English will be substituted here."); |
73 | echo "</FONT></B></CENTER><BR>"; |
e222c290 |
74 | include ("../help/en/addresses.hlp"); |
f7942326 |
75 | } else { |
76 | $nohelp = true; |
e222c290 |
77 | } |
78 | if (file_exists("../help/$user_language/folders.hlp")) { |
79 | include ("../help/$user_language/folders.hlp"); |
f7942326 |
80 | } elseif(file_exists("../help/en/folders.hlp")) { |
802d73a4 |
81 | echo "<CENTER><B><FONT COLOR=$color[2]>"; |
82 | echo _("Your preferred language is not yet translated. English will be substituted here."); |
83 | echo "</FONT></B></CENTER><BR>"; |
e222c290 |
84 | include ("../help/en/folders.hlp"); |
f7942326 |
85 | } else { |
86 | $nohelp = true; |
e222c290 |
87 | } |
88 | if (file_exists("../help/$user_language/options.hlp")) { |
89 | include ("../help/$user_language/options.hlp"); |
f7942326 |
90 | } elseif(file_exists("../help/en/options.hlp")) { |
802d73a4 |
91 | echo "<CENTER><B><FONT COLOR=$color[2]>"; |
92 | echo _("Your preferred language is not yet translated. English will be substituted here."); |
93 | echo "</FONT></B></CENTER><BR>"; |
e222c290 |
94 | include ("../help/en/options.hlp"); |
f7942326 |
95 | } else { |
96 | $nohelp = true; |
e222c290 |
97 | } |
98 | if (file_exists("../help/$user_language/FAQ.hlp")) { |
99 | include ("../help/$user_language/FAQ.hlp"); |
f7942326 |
100 | } elseif(file_exists("../help/en/FAQ.hlp")) { |
802d73a4 |
101 | echo "<CENTER><B><FONT COLOR=$color[2]>"; |
102 | echo _("Your preferred language is not yet translated. English will be substituted here."); |
103 | echo "</FONT></B></CENTER><BR>"; |
e222c290 |
104 | include ("../help/en/FAQ.hlp"); |
f7942326 |
105 | } else { |
106 | $nohelp = true; |
107 | } |
108 | // If any of the standard help files aren't there, tell them. |
109 | |
110 | if($nohelp) { |
111 | echo "<BR><CENTER><B><FONT COLOR=$color[2]>",_("ERROR: Some or all of the standard English help files ar missing."), "</FONT></B></CENTER><BR>"; |
e222c290 |
112 | } |
113 | |
114 | ?> |
115 | </FONT> |
116 | </BODY> |
117 | </HTML> |