Fixed some short tags
[moodle.git] / auth / db / config.html
CommitLineData
50c4bd41 1<?PHP
2 if (!isset($config->auth_dbhost)) {
3 $config->auth_dbhost = "localhost";
4 }
5 if (!isset($config->auth_dbtype)) {
6 $config->auth_dbtype = "mysql";
7 }
8 if (!isset($config->auth_dbname)) {
9 $config->auth_dbname = "";
10 }
11 if (!isset($config->auth_dbuser)) {
12 $config->auth_dbuser = "";
13 }
14 if (!isset($config->auth_dbpass)) {
15 $config->auth_dbpass = "";
16 }
17 if (!isset($config->auth_dbtable)) {
18 $config->auth_dbtable = "";
19 }
20 if (!isset($config->auth_dbfielduser)) {
21 $config->auth_dbfielduser = "";
22 }
23 if (!isset($config->auth_dbfieldpass)) {
24 $config->auth_dbfieldpass = "";
25 }
26 if (!isset($config->auth_dbpasstype)) {
27 $config->auth_dbpasstype = "plaintext";
28 }
29?>
16b8fe5b 30<tr valign="top" BGCOLOR="<?php echo $THEME->cellheading2 ?>">
35a48c9a 31 <TD ALIGN=RIGHT><P>auth_dbhost:</TD>
32 <TD>
16b8fe5b 33 <INPUT name=auth_dbhost TYPE=text SIZE=30 VALUE="<?php echo $config->auth_dbhost?>">
34 <?php if (isset($err["auth_dbhost"])) formerr($err["auth_dbhost"]); ?>
35a48c9a 35 </TD>
36 <TD>
16b8fe5b 37 <?php print_string("auth_dbhost","auth") ?>
35a48c9a 38 </TD>
39</TR>
40
16b8fe5b 41<TR VALIGN=TOP BGCOLOR="<?php echo $THEME->cellheading2 ?>">
35a48c9a 42 <TD ALIGN=RIGHT><P>auth_dbtype:</TD>
43 <TD>
16b8fe5b 44 <?php $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");
7ff671df 45 foreach ($dbtypes as $dbtype) {
46 $dboptions[$dbtype] = $dbtype;
47 }
48 choose_from_menu($dboptions, "auth_dbtype", $config->auth_dbtype, "");
35a48c9a 49 ?>
50
51 </TD>
52 <TD>
16b8fe5b 53 <?php print_string("auth_dbtype","auth") ?>
35a48c9a 54 </TD>
55</TR>
56
16b8fe5b 57<TR VALIGN=TOP BGCOLOR="<?php echo $THEME->cellheading2 ?>">
35a48c9a 58 <TD ALIGN=RIGHT><P>auth_dbname:</TD>
59 <TD>
16b8fe5b 60 <INPUT name=auth_dbname TYPE=text SIZE=30 VALUE="<?php echo $config->auth_dbname?>">
61 <?php if (isset($err["auth_dbname"]))formerr($err["auth_dbname"]); ?>
35a48c9a 62 </TD>
63 <TD>
16b8fe5b 64 <?php print_string("auth_dbname","auth") ?>
35a48c9a 65 </TD>
66</TR>
67
16b8fe5b 68<TR VALIGN=TOP BGCOLOR="<?php echo $THEME->cellheading2 ?>">
35a48c9a 69 <TD ALIGN=RIGHT><P>auth_dbuser:</TD>
70 <TD>
16b8fe5b 71 <INPUT name=auth_dbuser TYPE=text SIZE=30 VALUE="<?php echo $config->auth_dbuser?>">
72 <?php if (isset($err["auth_dbuser"])) formerr($err["auth_dbuser"]); ?>
35a48c9a 73 </TD>
74 <TD>
16b8fe5b 75 <?php print_string("auth_dbuser","auth") ?>
35a48c9a 76 </TD>
77</TR>
78
16b8fe5b 79<TR VALIGN=TOP BGCOLOR="<?php echo $THEME->cellheading2 ?>">
35a48c9a 80 <TD ALIGN=RIGHT><P>auth_dbpass:</TD>
81 <TD>
16b8fe5b 82 <INPUT name="auth_dbpass" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_dbpass?>">
83 <?php if (isset($err["auth_dbpass"])) formerr($err["auth_dbpass"]); ?>
35a48c9a 84 </TD>
85 <TD>
16b8fe5b 86 <?php print_string("auth_dbpass","auth") ?>
35a48c9a 87 </TD>
88</TR>
89
16b8fe5b 90<TR VALIGN=TOP BGCOLOR="<?php echo $THEME->cellheading2 ?>">
35a48c9a 91 <TD ALIGN=RIGHT><P>auth_dbtable:</TD>
92 <TD>
16b8fe5b 93 <INPUT name="auth_dbtable" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_dbtable?>">
94 <?php if (isset($err["auth_dbtable"])) formerr($err["auth_dbtable"]); ?>
35a48c9a 95 </TD>
96 <TD>
16b8fe5b 97 <?php print_string("auth_dbtable","auth") ?>
35a48c9a 98 </TD>
99</TR>
100
16b8fe5b 101<TR VALIGN=TOP BGCOLOR="<?php echo $THEME->cellheading2 ?>">
35a48c9a 102 <TD ALIGN=RIGHT><P>auth_dbfielduser:</TD>
103 <TD>
16b8fe5b 104 <INPUT name="auth_dbfielduser" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_dbfielduser?>">
105 <?php if (isset($err["auth_dbfielduser"])) formerr($err["auth_dbfielduser"]); ?>
35a48c9a 106 </TD>
107 <TD>
16b8fe5b 108 <?php print_string("auth_dbfielduser","auth") ?>
35a48c9a 109 </TD>
110</TR>
111
16b8fe5b 112<TR VALIGN=TOP BGCOLOR="<?php echo $THEME->cellheading2 ?>">
35a48c9a 113 <TD ALIGN=RIGHT><P>auth_dbfieldpass:</TD>
114 <TD>
16b8fe5b 115 <INPUT name="auth_dbfieldpass" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_dbfieldpass?>">
116 <?php if (isset($err["auth_dbfieldpass"])) formerr($err["auth_dbfieldpass"]); ?>
35a48c9a 117 </TD>
118 <TD>
16b8fe5b 119 <?php print_string("auth_dbfieldpass","auth") ?>
35a48c9a 120 </TD>
121</TR>
122
16b8fe5b 123<TR VALIGN=TOP BGCOLOR="<?php echo $THEME->cellheading2 ?>">
50c4bd41 124 <TD ALIGN=RIGHT><P>auth_dbpasstype:</TD>
125 <TD>
16b8fe5b 126 <?php $passtype["plaintext"] = get_string("plaintext", "auth");
50c4bd41 127 $passtype["md5"] = get_string("md5", "auth");
128 choose_from_menu($passtype, "auth_dbpasstype", $config->auth_dbpasstype, "");
129 ?>
130
131 </TD>
132 <TD>
16b8fe5b 133 <?php print_string("auth_dbpasstype","auth") ?>
50c4bd41 134 </TD>
135</TR>
136
137
34daec9b 138<TR>
16b8fe5b 139 <TD ALIGN=RIGHT><P><?php print_string("firstname") ?>:</TD>
34daec9b 140 <TD>
16b8fe5b 141 <INPUT name="auth_user_firstname" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_user_firstname?>">
34daec9b 142 </TD>
143 <TD rowspan=12 VALIGN=CENTER>
16b8fe5b 144 <?php print_string("auth_dbextrafields","auth") ?>
34daec9b 145 </TD>
146</TR>
147
148<TR VALIGN=TOP>
16b8fe5b 149 <TD ALIGN=RIGHT><P><?php print_string("lastname") ?>:</TD>
34daec9b 150 <TD>
16b8fe5b 151 <INPUT name="auth_user_lastname" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_user_lastname?>">
34daec9b 152 </TD>
153</TR>
154
155<TR VALIGN=TOP>
16b8fe5b 156 <TD ALIGN=RIGHT><P><?php print_string("email") ?>:</TD>
34daec9b 157 <TD>
16b8fe5b 158 <INPUT name="auth_user_email" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_user_email?>">
34daec9b 159 </TD>
160</TR>
161
162<TR VALIGN=TOP>
16b8fe5b 163 <TD ALIGN=RIGHT><P><?php print_string("phone") ?> 1:</TD>
34daec9b 164 <TD>
16b8fe5b 165 <INPUT name="auth_user_phone1" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_user_phone1?>">
34daec9b 166 </TD>
167</TR>
168
169<TR VALIGN=TOP>
16b8fe5b 170 <TD ALIGN=RIGHT><P><?php print_string("phone") ?> 2:</TD>
34daec9b 171 <TD>
16b8fe5b 172 <INPUT name="auth_user_phone2" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_user_phone2?>">
34daec9b 173 </TD>
174</TR>
175
176<TR VALIGN=TOP>
16b8fe5b 177 <TD ALIGN=RIGHT><P><?php print_string("department") ?>:</TD>
34daec9b 178 <TD>
16b8fe5b 179 <INPUT name="auth_user_department" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_user_department?>">
34daec9b 180 </TD>
181</TR>
182
183<TR VALIGN=TOP>
16b8fe5b 184 <TD ALIGN=RIGHT><P><?php print_string("address") ?>:</TD>
34daec9b 185 <TD>
16b8fe5b 186 <INPUT name="auth_user_address" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_user_address?>">
34daec9b 187 </TD>
188</TR>
189
190<TR VALIGN=TOP>
16b8fe5b 191 <TD ALIGN=RIGHT><P><?php print_string("city") ?>:</TD>
34daec9b 192 <TD>
16b8fe5b 193 <INPUT name="auth_user_city" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_user_city?>">
34daec9b 194 </TD>
195</TR>
196
197<TR VALIGN=TOP>
16b8fe5b 198 <TD ALIGN=RIGHT><P><?php print_string("country") ?>:</TD>
34daec9b 199 <TD>
16b8fe5b 200 <INPUT name="auth_user_country" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_user_country?>">
34daec9b 201 </TD>
202</TR>
203
204<TR VALIGN=TOP>
16b8fe5b 205 <TD ALIGN=RIGHT><P><?php print_string("description") ?>:</TD>
34daec9b 206 <TD>
16b8fe5b 207 <INPUT name="auth_user_description" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_user_description?>">
34daec9b 208 </TD>
209</TR>
210
211<TR VALIGN=TOP>
16b8fe5b 212 <TD ALIGN=RIGHT><P><?php print_string("idnumber") ?>:</TD>
34daec9b 213 <TD>
16b8fe5b 214 <INPUT name="auth_user_idnumber" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_user_idnumber?>">
34daec9b 215 </TD>
216</TR>
217
218<TR VALIGN=TOP>
16b8fe5b 219 <TD ALIGN=RIGHT><P><?php print_string("language") ?>:</TD>
34daec9b 220 <TD>
16b8fe5b 221 <INPUT name="auth_user_lang" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_user_lang?>">
34daec9b 222 </TD>
223</TR>
224
225
35a48c9a 226<TR VALIGN=TOP>
16b8fe5b 227 <TD ALIGN=RIGHT><P><?php print_string("instructions", "auth") ?>:</TD>
35a48c9a 228 <TD>
16b8fe5b 229 <TEXTAREA NAME=auth_instructions COLS=30 ROWS=10 WRAP=virtual><?php p($config->auth_instructions) ?></TEXTAREA>
35a48c9a 230 </TD>
231 <TD>
16b8fe5b 232 <?php print_string("authinstructions","auth") ?>
233 <?php helpbutton("text", get_string("helptext")) ?>
35a48c9a 234 </TD>
235</TR>