2 if (!isset($config->auth_dbhost)) {
3 $config->auth_dbhost = "localhost";
5 if (!isset($config->auth_dbtype)) {
6 $config->auth_dbtype = "mysql";
8 if (!isset($config->auth_dbname)) {
9 $config->auth_dbname = "";
11 if (!isset($config->auth_dbuser)) {
12 $config->auth_dbuser = "";
14 if (!isset($config->auth_dbpass)) {
15 $config->auth_dbpass = "";
17 if (!isset($config->auth_dbtable)) {
18 $config->auth_dbtable = "";
20 if (!isset($config->auth_dbfielduser)) {
21 $config->auth_dbfielduser = "";
23 if (!isset($config->auth_dbfieldpass)) {
24 $config->auth_dbfieldpass = "";
26 if (!isset($config->auth_dbpasstype)) {
27 $config->auth_dbpasstype = "plaintext";
30 <tr valign="top" BGCOLOR="<?=$THEME->cellheading2 ?>">
31 <TD ALIGN=RIGHT><P>auth_dbhost:</TD>
33 <INPUT name=auth_dbhost TYPE=text SIZE=30 VALUE="<?=$config->auth_dbhost?>">
34 <? if (isset($err["auth_dbhost"])) formerr($err["auth_dbhost"]); ?>
37 <? print_string("auth_dbhost","auth") ?>
41 <TR VALIGN=TOP BGCOLOR="<?=$THEME->cellheading2 ?>">
42 <TD ALIGN=RIGHT><P>auth_dbtype:</TD>
44 <? $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");
45 foreach ($dbtypes as $dbtype) {
46 $dboptions[$dbtype] = $dbtype;
48 choose_from_menu($dboptions, "auth_dbtype", $config->auth_dbtype, "");
53 <? print_string("auth_dbtype","auth") ?>
57 <TR VALIGN=TOP BGCOLOR="<?=$THEME->cellheading2 ?>">
58 <TD ALIGN=RIGHT><P>auth_dbname:</TD>
60 <INPUT name=auth_dbname TYPE=text SIZE=30 VALUE="<?=$config->auth_dbname?>">
61 <? if (isset($err["auth_dbname"]))formerr($err["auth_dbname"]); ?>
64 <? print_string("auth_dbname","auth") ?>
68 <TR VALIGN=TOP BGCOLOR="<?=$THEME->cellheading2 ?>">
69 <TD ALIGN=RIGHT><P>auth_dbuser:</TD>
71 <INPUT name=auth_dbuser TYPE=text SIZE=30 VALUE="<?=$config->auth_dbuser?>">
72 <? if (isset($err["auth_dbuser"])) formerr($err["auth_dbuser"]); ?>
75 <? print_string("auth_dbuser","auth") ?>
79 <TR VALIGN=TOP BGCOLOR="<?=$THEME->cellheading2 ?>">
80 <TD ALIGN=RIGHT><P>auth_dbpass:</TD>
82 <INPUT name="auth_dbpass" TYPE="text" SIZE="30" VALUE="<?=$config->auth_dbpass?>">
83 <? if (isset($err["auth_dbpass"])) formerr($err["auth_dbpass"]); ?>
86 <? print_string("auth_dbpass","auth") ?>
90 <TR VALIGN=TOP BGCOLOR="<?=$THEME->cellheading2 ?>">
91 <TD ALIGN=RIGHT><P>auth_dbtable:</TD>
93 <INPUT name="auth_dbtable" TYPE="text" SIZE="30" VALUE="<?=$config->auth_dbtable?>">
94 <? if (isset($err["auth_dbtable"])) formerr($err["auth_dbtable"]); ?>
97 <? print_string("auth_dbtable","auth") ?>
101 <TR VALIGN=TOP BGCOLOR="<?=$THEME->cellheading2 ?>">
102 <TD ALIGN=RIGHT><P>auth_dbfielduser:</TD>
104 <INPUT name="auth_dbfielduser" TYPE="text" SIZE="30" VALUE="<?=$config->auth_dbfielduser?>">
105 <? if (isset($err["auth_dbfielduser"])) formerr($err["auth_dbfielduser"]); ?>
108 <? print_string("auth_dbfielduser","auth") ?>
112 <TR VALIGN=TOP BGCOLOR="<?=$THEME->cellheading2 ?>">
113 <TD ALIGN=RIGHT><P>auth_dbfieldpass:</TD>
115 <INPUT name="auth_dbfieldpass" TYPE="text" SIZE="30" VALUE="<?=$config->auth_dbfieldpass?>">
116 <? if (isset($err["auth_dbfieldpass"])) formerr($err["auth_dbfieldpass"]); ?>
119 <? print_string("auth_dbfieldpass","auth") ?>
123 <TR VALIGN=TOP BGCOLOR="<?=$THEME->cellheading2 ?>">
124 <TD ALIGN=RIGHT><P>auth_dbpasstype:</TD>
126 <? $passtype["plaintext"] = get_string("plaintext", "auth");
127 $passtype["md5"] = get_string("md5", "auth");
128 choose_from_menu($passtype, "auth_dbpasstype", $config->auth_dbpasstype, "");
133 <? print_string("auth_dbpasstype","auth") ?>
139 <TD ALIGN=RIGHT><P><? print_string("firstname") ?>:</TD>
141 <INPUT name="auth_user_firstname" TYPE="text" SIZE="30" VALUE="<?=$config->auth_user_firstname?>">
143 <TD rowspan=12 VALIGN=CENTER>
144 <? print_string("auth_dbextrafields","auth") ?>
149 <TD ALIGN=RIGHT><P><? print_string("lastname") ?>:</TD>
151 <INPUT name="auth_user_lastname" TYPE="text" SIZE="30" VALUE="<?=$config->auth_user_lastname?>">
156 <TD ALIGN=RIGHT><P><? print_string("email") ?>:</TD>
158 <INPUT name="auth_user_email" TYPE="text" SIZE="30" VALUE="<?=$config->auth_user_email?>">
163 <TD ALIGN=RIGHT><P><? print_string("phone") ?> 1:</TD>
165 <INPUT name="auth_user_phone1" TYPE="text" SIZE="30" VALUE="<?=$config->auth_user_phone1?>">
170 <TD ALIGN=RIGHT><P><? print_string("phone") ?> 2:</TD>
172 <INPUT name="auth_user_phone2" TYPE="text" SIZE="30" VALUE="<?=$config->auth_user_phone2?>">
177 <TD ALIGN=RIGHT><P><? print_string("department") ?>:</TD>
179 <INPUT name="auth_user_department" TYPE="text" SIZE="30" VALUE="<?=$config->auth_user_department?>">
184 <TD ALIGN=RIGHT><P><? print_string("address") ?>:</TD>
186 <INPUT name="auth_user_address" TYPE="text" SIZE="30" VALUE="<?=$config->auth_user_address?>">
191 <TD ALIGN=RIGHT><P><? print_string("city") ?>:</TD>
193 <INPUT name="auth_user_city" TYPE="text" SIZE="30" VALUE="<?=$config->auth_user_city?>">
198 <TD ALIGN=RIGHT><P><? print_string("country") ?>:</TD>
200 <INPUT name="auth_user_country" TYPE="text" SIZE="30" VALUE="<?=$config->auth_user_country?>">
205 <TD ALIGN=RIGHT><P><? print_string("description") ?>:</TD>
207 <INPUT name="auth_user_description" TYPE="text" SIZE="30" VALUE="<?=$config->auth_user_description?>">
212 <TD ALIGN=RIGHT><P><? print_string("idnumber") ?>:</TD>
214 <INPUT name="auth_user_idnumber" TYPE="text" SIZE="30" VALUE="<?=$config->auth_user_idnumber?>">
219 <TD ALIGN=RIGHT><P><? print_string("language") ?>:</TD>
221 <INPUT name="auth_user_lang" TYPE="text" SIZE="30" VALUE="<?=$config->auth_user_lang?>">
227 <TD ALIGN=RIGHT><P><? print_string("instructions", "auth") ?>:</TD>
229 <TEXTAREA NAME=auth_instructions COLS=30 ROWS=10 WRAP=virtual><? p($config->auth_instructions) ?></TEXTAREA>
232 <? print_string("authinstructions","auth") ?>
233 <? helpbutton("text", get_string("helptext")) ?>