Tweaks to authentication system. Database method now allows other
[moodle.git] / auth / db / config.html
CommitLineData
34daec9b 1<tr valign="top" BGCOLOR="<?=$THEME->cellheading2 ?>">
35a48c9a 2 <TD ALIGN=RIGHT><P>auth_dbhost:</TD>
3 <TD>
4 <INPUT name=auth_dbhost TYPE=text SIZE=30 VALUE="<?=$config->auth_dbhost?>">
5 <? formerr($err["auth_dbhost"]); ?>
6 </TD>
7 <TD>
8 <? print_string("auth_dbhost","auth") ?>
9 </TD>
10</TR>
11
34daec9b 12<TR VALIGN=TOP BGCOLOR="<?=$THEME->cellheading2 ?>">
35a48c9a 13 <TD ALIGN=RIGHT><P>auth_dbtype:</TD>
14 <TD>
15 <? $dbtypes = array("access","ado_access", "ado", "ado_mssql", "borland_ibase", "csv", "db2", "fbsql", "firebird", "ibase", "informix72", "informix", "mssql", "mysql", "mysqlt", "oci805", "oci8", "oci8po", "odbc", "odbc_mssql", "odbc_oracle", "oracle", "postgres64", "postgres7", "postgres", "proxy", "sqlanywhere", "sybase", "vfp");
16 choose_from_menu($dbtypes, "auth_dbtype", $config->auth_dbtype, "");
17 ?>
18
19 </TD>
20 <TD>
21 <? print_string("auth_dbtype","auth") ?>
22 </TD>
23</TR>
24
34daec9b 25<TR VALIGN=TOP BGCOLOR="<?=$THEME->cellheading2 ?>">
35a48c9a 26 <TD ALIGN=RIGHT><P>auth_dbname:</TD>
27 <TD>
28 <INPUT name=auth_dbname TYPE=text SIZE=30 VALUE="<?=$config->auth_dbname?>">
29 <? formerr($err["auth_dbname"]); ?>
30 </TD>
31 <TD>
32 <? print_string("auth_dbname","auth") ?>
33 </TD>
34</TR>
35
34daec9b 36<TR VALIGN=TOP BGCOLOR="<?=$THEME->cellheading2 ?>">
35a48c9a 37 <TD ALIGN=RIGHT><P>auth_dbuser:</TD>
38 <TD>
39 <INPUT name=auth_dbuser TYPE=text SIZE=30 VALUE="<?=$config->auth_dbuser?>">
40 <? formerr($err["auth_dbuser"]); ?>
41 </TD>
42 <TD>
43 <? print_string("auth_dbuser","auth") ?>
44 </TD>
45</TR>
46
34daec9b 47<TR VALIGN=TOP BGCOLOR="<?=$THEME->cellheading2 ?>">
35a48c9a 48 <TD ALIGN=RIGHT><P>auth_dbpass:</TD>
49 <TD>
50 <INPUT name="auth_dbpass" TYPE="text" SIZE="30" VALUE="<?=$config->auth_dbpass?>">
51 <? formerr($err["auth_dbpass"]); ?>
52 </TD>
53 <TD>
54 <? print_string("auth_dbpass","auth") ?>
55 </TD>
56</TR>
57
34daec9b 58<TR VALIGN=TOP BGCOLOR="<?=$THEME->cellheading2 ?>">
35a48c9a 59 <TD ALIGN=RIGHT><P>auth_dbtable:</TD>
60 <TD>
61 <INPUT name="auth_dbtable" TYPE="text" SIZE="30" VALUE="<?=$config->auth_dbtable?>">
62 <? formerr($err["auth_dbtable"]); ?>
63 </TD>
64 <TD>
65 <? print_string("auth_dbtable","auth") ?>
66 </TD>
67</TR>
68
34daec9b 69<TR VALIGN=TOP BGCOLOR="<?=$THEME->cellheading2 ?>">
35a48c9a 70 <TD ALIGN=RIGHT><P>auth_dbfielduser:</TD>
71 <TD>
72 <INPUT name="auth_dbfielduser" TYPE="text" SIZE="30" VALUE="<?=$config->auth_dbfielduser?>">
73 <? formerr($err["auth_dbfielduser"]); ?>
74 </TD>
75 <TD>
76 <? print_string("auth_dbfielduser","auth") ?>
77 </TD>
78</TR>
79
34daec9b 80<TR VALIGN=TOP BGCOLOR="<?=$THEME->cellheading2 ?>">
35a48c9a 81 <TD ALIGN=RIGHT><P>auth_dbfieldpass:</TD>
82 <TD>
83 <INPUT name="auth_dbfieldpass" TYPE="text" SIZE="30" VALUE="<?=$config->auth_dbfieldpass?>">
84 <? formerr($err["auth_dbfieldpass"]); ?>
85 </TD>
86 <TD>
87 <? print_string("auth_dbfieldpass","auth") ?>
88 </TD>
89</TR>
90
34daec9b 91<TR>
92 <TD ALIGN=RIGHT><P><? print_string("firstname") ?>:</TD>
93 <TD>
94 <INPUT name="auth_user_firstname" TYPE="text" SIZE="30" VALUE="<?=$config->auth_user_firstname?>">
95 </TD>
96 <TD rowspan=12 VALIGN=CENTER>
97 <? print_string("auth_dbextrafields","auth") ?>
98 </TD>
99</TR>
100
101<TR VALIGN=TOP>
102 <TD ALIGN=RIGHT><P><? print_string("lastname") ?>:</TD>
103 <TD>
104 <INPUT name="auth_user_lastname" TYPE="text" SIZE="30" VALUE="<?=$config->auth_user_lastname?>">
105 </TD>
106</TR>
107
108<TR VALIGN=TOP>
109 <TD ALIGN=RIGHT><P><? print_string("email") ?>:</TD>
110 <TD>
111 <INPUT name="auth_user_email" TYPE="text" SIZE="30" VALUE="<?=$config->auth_user_email?>">
112 </TD>
113</TR>
114
115<TR VALIGN=TOP>
116 <TD ALIGN=RIGHT><P><? print_string("phone") ?> 1:</TD>
117 <TD>
118 <INPUT name="auth_user_phone1" TYPE="text" SIZE="30" VALUE="<?=$config->auth_user_phone1?>">
119 </TD>
120</TR>
121
122<TR VALIGN=TOP>
123 <TD ALIGN=RIGHT><P><? print_string("phone") ?> 2:</TD>
124 <TD>
125 <INPUT name="auth_user_phone2" TYPE="text" SIZE="30" VALUE="<?=$config->auth_user_phone2?>">
126 </TD>
127</TR>
128
129<TR VALIGN=TOP>
130 <TD ALIGN=RIGHT><P><? print_string("department") ?>:</TD>
131 <TD>
132 <INPUT name="auth_user_department" TYPE="text" SIZE="30" VALUE="<?=$config->auth_user_department?>">
133 </TD>
134</TR>
135
136<TR VALIGN=TOP>
137 <TD ALIGN=RIGHT><P><? print_string("address") ?>:</TD>
138 <TD>
139 <INPUT name="auth_user_address" TYPE="text" SIZE="30" VALUE="<?=$config->auth_user_address?>">
140 </TD>
141</TR>
142
143<TR VALIGN=TOP>
144 <TD ALIGN=RIGHT><P><? print_string("city") ?>:</TD>
145 <TD>
146 <INPUT name="auth_user_city" TYPE="text" SIZE="30" VALUE="<?=$config->auth_user_city?>">
147 </TD>
148</TR>
149
150<TR VALIGN=TOP>
151 <TD ALIGN=RIGHT><P><? print_string("country") ?>:</TD>
152 <TD>
153 <INPUT name="auth_user_country" TYPE="text" SIZE="30" VALUE="<?=$config->auth_user_country?>">
154 </TD>
155</TR>
156
157<TR VALIGN=TOP>
158 <TD ALIGN=RIGHT><P><? print_string("description") ?>:</TD>
159 <TD>
160 <INPUT name="auth_user_description" TYPE="text" SIZE="30" VALUE="<?=$config->auth_user_description?>">
161 </TD>
162</TR>
163
164<TR VALIGN=TOP>
165 <TD ALIGN=RIGHT><P><? print_string("idnumber") ?>:</TD>
166 <TD>
167 <INPUT name="auth_user_idnumber" TYPE="text" SIZE="30" VALUE="<?=$config->auth_user_idnumber?>">
168 </TD>
169</TR>
170
171<TR VALIGN=TOP>
172 <TD ALIGN=RIGHT><P><? print_string("language") ?>:</TD>
173 <TD>
174 <INPUT name="auth_user_lang" TYPE="text" SIZE="30" VALUE="<?=$config->auth_user_lang?>">
175 </TD>
176</TR>
177
178
35a48c9a 179<TR VALIGN=TOP>
34daec9b 180 <TD ALIGN=RIGHT><P><? print_string("instructions", "auth") ?>:</TD>
35a48c9a 181 <TD>
182 <TEXTAREA NAME=auth_instructions COLS=30 ROWS=10 WRAP=virtual><? p($config->auth_instructions) ?></TEXTAREA>
183 </TD>
184 <TD>
185 <? print_string("authinstructions","auth") ?>
186 <? helpbutton("text", get_string("helptext")) ?>
187 </TD>
188</TR>