Added SMTP authentication for email delivery
[moodle.git] / admin / config.html
CommitLineData
74944b73 1<FORM METHOD="post" action="config.php" NAME="form">
2
3<TABLE cellpadding=9 cellspacing=0 >
faebaf0f 4<TR VALIGN=TOP>
5 <TD ALIGN=RIGHT><P>auth:</TD>
6 <TD>
7 <? $modules = get_list_of_plugins("auth");
8 foreach ($modules as $module) {
9 $options[$module] = $module;
10 }
11 choose_from_menu ($options, "auth", $config->auth, "", "", "");
12 formerr($err["auth"]);
13 unset($options);
14 ?>
15 </TD>
16 <TD>
17 <? print_string("configauth") ?>
18 </TD>
19</TR>
74944b73 20<TR VALIGN=TOP>
21 <TD ALIGN=RIGHT><P>lang:</TD>
22 <TD>
23 <? choose_from_menu (get_list_of_languages(), "lang", $config->lang, "", "", "");
24 formerr($err["lang"]);
25 ?>
26 </TD>
27 <TD>
28 <? print_string("configlang") ?>
29 </TD>
30</TR>
541117b6 31<TR VALIGN=TOP>
32 <TD ALIGN=RIGHT><P>langdir:</TD>
33 <TD>
34 <? unset($options);
35 $options["LTR"] = get_string("langltr");
36 $options["RTL"] = get_string("langrtl");
37
38 choose_from_menu ($options, "langdir", $config->langdir, "", "", "");
39 ?>
40 </TD>
41 <TD>
42 <? print_string("configlangdir") ?>
43 </TD>
44</TR>
74944b73 45<TR VALIGN=TOP>
46 <TD ALIGN=RIGHT><P>locale:</TD>
47 <TD>
0cb8bf3b 48 <INPUT NAME=locale TYPE=text SIZE=10 VALUE="<?=$config->locale?>">
74944b73 49 <? formerr($err["locale"]); ?>
50 </TD>
51 <TD>
52 <? print_string("configlocale") ?>
53 </TD>
54</TR>
55<TR VALIGN=TOP>
56 <TD ALIGN=RIGHT><P>smtphosts:</TD>
57 <TD>
58 <INPUT NAME=smtphosts TYPE=text SIZE=30 VALUE="<?=$config->smtphosts?>">
59 <? formerr($err["smtphosts"]); ?>
60 </TD>
61 <TD>
62 <? print_string("configsmtphosts") ?>
63 </TD>
64</TR>
9f58537a 65<TR VALIGN=TOP>
66 <TD ALIGN=RIGHT><P>smtpuser:</TD>
67 <TD>
68 <INPUT NAME=smtpuser TYPE=text SIZE=10 VALUE="<?=$config->smtpuser?>">
69 <? formerr($err["smtpuser"]); ?>
70 </TD>
71 <TD ROWSPAN=2>
72 <? print_string("configsmtpuser") ?>
73 </TD>
74</TR>
75<TR VALIGN=TOP>
76 <TD ALIGN=RIGHT><P>smtppass:</TD>
77 <TD>
78 <INPUT NAME=smtppass TYPE=text SIZE=10 VALUE="<?=$config->smtppass?>">
79 <? formerr($err["smtppass"]); ?>
80 </TD>
81</TR>
74944b73 82<TR VALIGN=TOP>
83 <TD ALIGN=RIGHT><P>gdversion:</TD>
84 <TD>
541117b6 85 <? unset($options);
86 $options[0] = get_string("gdnot");
74944b73 87 $options[1] = get_string("gd1");
88 $options[2] = get_string("gd2");
89
90 $installed = check_gd_version();
91
92 choose_from_menu ($options, "gdversion", $installed, "", "", "");
74944b73 93 ?>
94 </TD>
95 <TD>
96 <? print_string("configgdversion") ?>
97 </TD>
98</TR>
0095d5cd 99<TR VALIGN=TOP>
100 <TD ALIGN=RIGHT><P>htmleditor:</TD>
101 <TD>
102 <? unset($options);
103 $options[0] = get_string("allownot");
104 $options[1] = get_string("allow");
105 choose_from_menu ($options, "htmleditor", $config->htmleditor, "", "", "");
106 formerr($err["htmleditor"]);
107 ?>
108 </TD>
109 <TD>
110 <? print_string("confightmleditor") ?>
111 </TD>
112</TR>
74944b73 113<TR VALIGN=TOP>
114 <TD ALIGN=RIGHT><P>maxeditingtime:</TD>
115 <TD>
116 <? $options[3600] = get_string("numminutes", "", 60);
117 $options[2700] = get_string("numminutes", "", 45);
118 $options[1800] = get_string("numminutes", "", 30);
119 $options[900] = get_string("numminutes", "", 15);
120 $options[300] = get_string("numminutes", "", 5);
20aa2257 121 $options[60] = get_string("numminutes", "", 1);
74944b73 122
123 choose_from_menu ($options, "maxeditingtime", $config->maxeditingtime, "", "", "");
124 unset($options);
125 ?>
126 </TD>
127 <TD>
128 <? print_string("configmaxeditingtime") ?>
129 </TD>
130</TR>
131<TR VALIGN=TOP>
132 <TD ALIGN=RIGHT><P>longtimenosee:</TD>
133 <TD>
134 <? $options[1000] = get_string("numdays", "", 1000);
135 $options[365] = get_string("numdays", "", 365);
b92ea945 136 $options[180] = get_string("numdays", "", 180);
137 $options[150] = get_string("numdays", "", 150);
138 $options[120] = get_string("numdays", "", 120);
139 $options[90] = get_string("numdays", "", 90);
140 $options[60] = get_string("numdays", "", 60);
141 $options[30] = get_string("numdays", "", 30);
142 $options[7] = get_string("numdays", "", 7);
74944b73 143
144 choose_from_menu ($options, "longtimenosee", $config->longtimenosee, "", "", "");
145 unset($options);
146 ?>
147 </TD>
148 <TD>
149 <? print_string("configlongtimenosee") ?>
150 </TD>
151</TR>
152<TR VALIGN=TOP>
153 <TD ALIGN=RIGHT><P>zip:</TD>
154 <TD>
155 <INPUT name=zip TYPE=text SIZE=30 VALUE="<?=$config->zip?>">
156 <? formerr($err["zip"]); ?>
157 </TD>
158 <TD>
159 <? print_string("configzip") ?>
160 </TD>
161</TR>
162<TR VALIGN=TOP>
163 <TD ALIGN=RIGHT><P>unzip:</TD>
164 <TD>
165 <INPUT name=unzip TYPE=text SIZE=30 VALUE="<?=$config->unzip?>">
166 <? formerr($err["unzip"]); ?>
167 </TD>
168 <TD>
169 <? print_string("configunzip") ?>
170 </TD>
171</TR>
172<TR VALIGN=TOP>
173 <TD ALIGN=RIGHT><P>slasharguments:</TD>
174 <TD>
175 <? $options[0] = "file.php?file=/pic.jpg";
176 $options[1] = "file.php/pic.jpg";
177
178 $installed = check_gd_version();
179
180 choose_from_menu ($options, "slasharguments", $config->slasharguments, "", "", "");
181 unset($options);
182 ?>
183 </TD>
184 <TD>
185 <? print_string("configslasharguments") ?>
186 </TD>
187</TR>
188<TR VALIGN=TOP>
189 <TD ALIGN=RIGHT><P>proxyhost:</TD>
190 <TD>
191 <INPUT name=proxyhost TYPE=text SIZE=30 VALUE="<?=$config->proxyhost?>">
192 <? formerr($err["proxyhost"]); ?>
193 </TD>
194 <TD ROWSPAN=2>
195 <? print_string("configproxyhost") ?>
196 </TD>
197</TR>
198<TR VALIGN=TOP>
199 <TD ALIGN=RIGHT><P>proxyport:</TD>
200 <TD>
201 <INPUT name=proxyport TYPE=text SIZE=5 VALUE="<?=$config->proxyport?>">
202 <? formerr($err["proxyport"]); ?>
203 </TD>
204</TR>
205
206
207<TR>
208 <TD COLSPAN=3 ALIGN=CENTER>
209 <INPUT TYPE="submit" VALUE="<? print_string("savechanges") ?>"></TD>
210</TR>
211</TABLE>
212
213</FORM>