2002-12-31 08:45:37 +00:00
|
|
|
<?PHP
|
|
|
|
if (!isset($config->auth_dbhost)) {
|
|
|
|
$config->auth_dbhost = "localhost";
|
|
|
|
}
|
|
|
|
if (!isset($config->auth_dbtype)) {
|
|
|
|
$config->auth_dbtype = "mysql";
|
|
|
|
}
|
|
|
|
if (!isset($config->auth_dbname)) {
|
|
|
|
$config->auth_dbname = "";
|
|
|
|
}
|
|
|
|
if (!isset($config->auth_dbuser)) {
|
|
|
|
$config->auth_dbuser = "";
|
|
|
|
}
|
|
|
|
if (!isset($config->auth_dbpass)) {
|
|
|
|
$config->auth_dbpass = "";
|
|
|
|
}
|
|
|
|
if (!isset($config->auth_dbtable)) {
|
|
|
|
$config->auth_dbtable = "";
|
|
|
|
}
|
|
|
|
if (!isset($config->auth_dbfielduser)) {
|
|
|
|
$config->auth_dbfielduser = "";
|
|
|
|
}
|
|
|
|
if (!isset($config->auth_dbfieldpass)) {
|
|
|
|
$config->auth_dbfieldpass = "";
|
|
|
|
}
|
|
|
|
if (!isset($config->auth_dbpasstype)) {
|
|
|
|
$config->auth_dbpasstype = "plaintext";
|
|
|
|
}
|
|
|
|
?>
|
2003-09-09 05:37:39 +00:00
|
|
|
<tr valign="top" BGCOLOR="<?php echo $THEME->cellheading2 ?>">
|
2002-11-19 08:51:33 +00:00
|
|
|
<TD ALIGN=RIGHT><P>auth_dbhost:</TD>
|
|
|
|
<TD>
|
2003-09-09 05:37:39 +00:00
|
|
|
<INPUT name=auth_dbhost TYPE=text SIZE=30 VALUE="<?php echo $config->auth_dbhost?>">
|
|
|
|
<?php if (isset($err["auth_dbhost"])) formerr($err["auth_dbhost"]); ?>
|
2002-11-19 08:51:33 +00:00
|
|
|
</TD>
|
|
|
|
<TD>
|
2003-09-09 05:37:39 +00:00
|
|
|
<?php print_string("auth_dbhost","auth") ?>
|
2002-11-19 08:51:33 +00:00
|
|
|
</TD>
|
|
|
|
</TR>
|
|
|
|
|
2003-09-09 05:37:39 +00:00
|
|
|
<TR VALIGN=TOP BGCOLOR="<?php echo $THEME->cellheading2 ?>">
|
2002-11-19 08:51:33 +00:00
|
|
|
<TD ALIGN=RIGHT><P>auth_dbtype:</TD>
|
|
|
|
<TD>
|
2003-09-09 05:37:39 +00:00
|
|
|
<?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");
|
2002-11-21 11:12:55 +00:00
|
|
|
foreach ($dbtypes as $dbtype) {
|
|
|
|
$dboptions[$dbtype] = $dbtype;
|
|
|
|
}
|
|
|
|
choose_from_menu($dboptions, "auth_dbtype", $config->auth_dbtype, "");
|
2002-11-19 08:51:33 +00:00
|
|
|
?>
|
|
|
|
|
|
|
|
</TD>
|
|
|
|
<TD>
|
2003-09-09 05:37:39 +00:00
|
|
|
<?php print_string("auth_dbtype","auth") ?>
|
2002-11-19 08:51:33 +00:00
|
|
|
</TD>
|
|
|
|
</TR>
|
|
|
|
|
2003-09-09 05:37:39 +00:00
|
|
|
<TR VALIGN=TOP BGCOLOR="<?php echo $THEME->cellheading2 ?>">
|
2002-11-19 08:51:33 +00:00
|
|
|
<TD ALIGN=RIGHT><P>auth_dbname:</TD>
|
|
|
|
<TD>
|
2003-09-09 05:37:39 +00:00
|
|
|
<INPUT name=auth_dbname TYPE=text SIZE=30 VALUE="<?php echo $config->auth_dbname?>">
|
|
|
|
<?php if (isset($err["auth_dbname"]))formerr($err["auth_dbname"]); ?>
|
2002-11-19 08:51:33 +00:00
|
|
|
</TD>
|
|
|
|
<TD>
|
2003-09-09 05:37:39 +00:00
|
|
|
<?php print_string("auth_dbname","auth") ?>
|
2002-11-19 08:51:33 +00:00
|
|
|
</TD>
|
|
|
|
</TR>
|
|
|
|
|
2003-09-09 05:37:39 +00:00
|
|
|
<TR VALIGN=TOP BGCOLOR="<?php echo $THEME->cellheading2 ?>">
|
2002-11-19 08:51:33 +00:00
|
|
|
<TD ALIGN=RIGHT><P>auth_dbuser:</TD>
|
|
|
|
<TD>
|
2003-09-09 05:37:39 +00:00
|
|
|
<INPUT name=auth_dbuser TYPE=text SIZE=30 VALUE="<?php echo $config->auth_dbuser?>">
|
|
|
|
<?php if (isset($err["auth_dbuser"])) formerr($err["auth_dbuser"]); ?>
|
2002-11-19 08:51:33 +00:00
|
|
|
</TD>
|
|
|
|
<TD>
|
2003-09-09 05:37:39 +00:00
|
|
|
<?php print_string("auth_dbuser","auth") ?>
|
2002-11-19 08:51:33 +00:00
|
|
|
</TD>
|
|
|
|
</TR>
|
|
|
|
|
2003-09-09 05:37:39 +00:00
|
|
|
<TR VALIGN=TOP BGCOLOR="<?php echo $THEME->cellheading2 ?>">
|
2002-11-19 08:51:33 +00:00
|
|
|
<TD ALIGN=RIGHT><P>auth_dbpass:</TD>
|
|
|
|
<TD>
|
2003-09-09 05:37:39 +00:00
|
|
|
<INPUT name="auth_dbpass" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_dbpass?>">
|
|
|
|
<?php if (isset($err["auth_dbpass"])) formerr($err["auth_dbpass"]); ?>
|
2002-11-19 08:51:33 +00:00
|
|
|
</TD>
|
|
|
|
<TD>
|
2003-09-09 05:37:39 +00:00
|
|
|
<?php print_string("auth_dbpass","auth") ?>
|
2002-11-19 08:51:33 +00:00
|
|
|
</TD>
|
|
|
|
</TR>
|
|
|
|
|
2003-09-09 05:37:39 +00:00
|
|
|
<TR VALIGN=TOP BGCOLOR="<?php echo $THEME->cellheading2 ?>">
|
2002-11-19 08:51:33 +00:00
|
|
|
<TD ALIGN=RIGHT><P>auth_dbtable:</TD>
|
|
|
|
<TD>
|
2003-09-09 05:37:39 +00:00
|
|
|
<INPUT name="auth_dbtable" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_dbtable?>">
|
|
|
|
<?php if (isset($err["auth_dbtable"])) formerr($err["auth_dbtable"]); ?>
|
2002-11-19 08:51:33 +00:00
|
|
|
</TD>
|
|
|
|
<TD>
|
2003-09-09 05:37:39 +00:00
|
|
|
<?php print_string("auth_dbtable","auth") ?>
|
2002-11-19 08:51:33 +00:00
|
|
|
</TD>
|
|
|
|
</TR>
|
|
|
|
|
2003-09-09 05:37:39 +00:00
|
|
|
<TR VALIGN=TOP BGCOLOR="<?php echo $THEME->cellheading2 ?>">
|
2002-11-19 08:51:33 +00:00
|
|
|
<TD ALIGN=RIGHT><P>auth_dbfielduser:</TD>
|
|
|
|
<TD>
|
2003-09-09 05:37:39 +00:00
|
|
|
<INPUT name="auth_dbfielduser" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_dbfielduser?>">
|
|
|
|
<?php if (isset($err["auth_dbfielduser"])) formerr($err["auth_dbfielduser"]); ?>
|
2002-11-19 08:51:33 +00:00
|
|
|
</TD>
|
|
|
|
<TD>
|
2003-09-09 05:37:39 +00:00
|
|
|
<?php print_string("auth_dbfielduser","auth") ?>
|
2002-11-19 08:51:33 +00:00
|
|
|
</TD>
|
|
|
|
</TR>
|
|
|
|
|
2003-09-09 05:37:39 +00:00
|
|
|
<TR VALIGN=TOP BGCOLOR="<?php echo $THEME->cellheading2 ?>">
|
2002-11-19 08:51:33 +00:00
|
|
|
<TD ALIGN=RIGHT><P>auth_dbfieldpass:</TD>
|
|
|
|
<TD>
|
2003-09-09 05:37:39 +00:00
|
|
|
<INPUT name="auth_dbfieldpass" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_dbfieldpass?>">
|
|
|
|
<?php if (isset($err["auth_dbfieldpass"])) formerr($err["auth_dbfieldpass"]); ?>
|
2002-11-19 08:51:33 +00:00
|
|
|
</TD>
|
|
|
|
<TD>
|
2003-09-09 05:37:39 +00:00
|
|
|
<?php print_string("auth_dbfieldpass","auth") ?>
|
2002-11-19 08:51:33 +00:00
|
|
|
</TD>
|
|
|
|
</TR>
|
|
|
|
|
2003-09-09 05:37:39 +00:00
|
|
|
<TR VALIGN=TOP BGCOLOR="<?php echo $THEME->cellheading2 ?>">
|
2002-12-31 08:45:37 +00:00
|
|
|
<TD ALIGN=RIGHT><P>auth_dbpasstype:</TD>
|
|
|
|
<TD>
|
2003-09-09 05:37:39 +00:00
|
|
|
<?php $passtype["plaintext"] = get_string("plaintext", "auth");
|
2002-12-31 08:45:37 +00:00
|
|
|
$passtype["md5"] = get_string("md5", "auth");
|
|
|
|
choose_from_menu($passtype, "auth_dbpasstype", $config->auth_dbpasstype, "");
|
|
|
|
?>
|
|
|
|
|
|
|
|
</TD>
|
|
|
|
<TD>
|
2003-09-09 05:37:39 +00:00
|
|
|
<?php print_string("auth_dbpasstype","auth") ?>
|
2002-12-31 08:45:37 +00:00
|
|
|
</TD>
|
|
|
|
</TR>
|
|
|
|
|
|
|
|
|
2002-11-21 07:37:21 +00:00
|
|
|
<TR>
|
2003-09-09 05:37:39 +00:00
|
|
|
<TD ALIGN=RIGHT><P><?php print_string("firstname") ?>:</TD>
|
2002-11-21 07:37:21 +00:00
|
|
|
<TD>
|
2003-09-09 05:37:39 +00:00
|
|
|
<INPUT name="auth_user_firstname" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_user_firstname?>">
|
2002-11-21 07:37:21 +00:00
|
|
|
</TD>
|
|
|
|
<TD rowspan=12 VALIGN=CENTER>
|
2003-09-09 05:37:39 +00:00
|
|
|
<?php print_string("auth_dbextrafields","auth") ?>
|
2002-11-21 07:37:21 +00:00
|
|
|
</TD>
|
|
|
|
</TR>
|
|
|
|
|
|
|
|
<TR VALIGN=TOP>
|
2003-09-09 05:37:39 +00:00
|
|
|
<TD ALIGN=RIGHT><P><?php print_string("lastname") ?>:</TD>
|
2002-11-21 07:37:21 +00:00
|
|
|
<TD>
|
2003-09-09 05:37:39 +00:00
|
|
|
<INPUT name="auth_user_lastname" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_user_lastname?>">
|
2002-11-21 07:37:21 +00:00
|
|
|
</TD>
|
|
|
|
</TR>
|
|
|
|
|
|
|
|
<TR VALIGN=TOP>
|
2003-09-09 05:37:39 +00:00
|
|
|
<TD ALIGN=RIGHT><P><?php print_string("email") ?>:</TD>
|
2002-11-21 07:37:21 +00:00
|
|
|
<TD>
|
2003-09-09 05:37:39 +00:00
|
|
|
<INPUT name="auth_user_email" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_user_email?>">
|
2002-11-21 07:37:21 +00:00
|
|
|
</TD>
|
|
|
|
</TR>
|
|
|
|
|
|
|
|
<TR VALIGN=TOP>
|
2003-09-09 05:37:39 +00:00
|
|
|
<TD ALIGN=RIGHT><P><?php print_string("phone") ?> 1:</TD>
|
2002-11-21 07:37:21 +00:00
|
|
|
<TD>
|
2003-09-09 05:37:39 +00:00
|
|
|
<INPUT name="auth_user_phone1" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_user_phone1?>">
|
2002-11-21 07:37:21 +00:00
|
|
|
</TD>
|
|
|
|
</TR>
|
|
|
|
|
|
|
|
<TR VALIGN=TOP>
|
2003-09-09 05:37:39 +00:00
|
|
|
<TD ALIGN=RIGHT><P><?php print_string("phone") ?> 2:</TD>
|
2002-11-21 07:37:21 +00:00
|
|
|
<TD>
|
2003-09-09 05:37:39 +00:00
|
|
|
<INPUT name="auth_user_phone2" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_user_phone2?>">
|
2002-11-21 07:37:21 +00:00
|
|
|
</TD>
|
|
|
|
</TR>
|
|
|
|
|
|
|
|
<TR VALIGN=TOP>
|
2003-09-09 05:37:39 +00:00
|
|
|
<TD ALIGN=RIGHT><P><?php print_string("department") ?>:</TD>
|
2002-11-21 07:37:21 +00:00
|
|
|
<TD>
|
2003-09-09 05:37:39 +00:00
|
|
|
<INPUT name="auth_user_department" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_user_department?>">
|
2002-11-21 07:37:21 +00:00
|
|
|
</TD>
|
|
|
|
</TR>
|
|
|
|
|
|
|
|
<TR VALIGN=TOP>
|
2003-09-09 05:37:39 +00:00
|
|
|
<TD ALIGN=RIGHT><P><?php print_string("address") ?>:</TD>
|
2002-11-21 07:37:21 +00:00
|
|
|
<TD>
|
2003-09-09 05:37:39 +00:00
|
|
|
<INPUT name="auth_user_address" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_user_address?>">
|
2002-11-21 07:37:21 +00:00
|
|
|
</TD>
|
|
|
|
</TR>
|
|
|
|
|
|
|
|
<TR VALIGN=TOP>
|
2003-09-09 05:37:39 +00:00
|
|
|
<TD ALIGN=RIGHT><P><?php print_string("city") ?>:</TD>
|
2002-11-21 07:37:21 +00:00
|
|
|
<TD>
|
2003-09-09 05:37:39 +00:00
|
|
|
<INPUT name="auth_user_city" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_user_city?>">
|
2002-11-21 07:37:21 +00:00
|
|
|
</TD>
|
|
|
|
</TR>
|
|
|
|
|
|
|
|
<TR VALIGN=TOP>
|
2003-09-09 05:37:39 +00:00
|
|
|
<TD ALIGN=RIGHT><P><?php print_string("country") ?>:</TD>
|
2002-11-21 07:37:21 +00:00
|
|
|
<TD>
|
2003-09-09 05:37:39 +00:00
|
|
|
<INPUT name="auth_user_country" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_user_country?>">
|
2002-11-21 07:37:21 +00:00
|
|
|
</TD>
|
|
|
|
</TR>
|
|
|
|
|
|
|
|
<TR VALIGN=TOP>
|
2003-09-09 05:37:39 +00:00
|
|
|
<TD ALIGN=RIGHT><P><?php print_string("description") ?>:</TD>
|
2002-11-21 07:37:21 +00:00
|
|
|
<TD>
|
2003-09-09 05:37:39 +00:00
|
|
|
<INPUT name="auth_user_description" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_user_description?>">
|
2002-11-21 07:37:21 +00:00
|
|
|
</TD>
|
|
|
|
</TR>
|
|
|
|
|
|
|
|
<TR VALIGN=TOP>
|
2003-09-09 05:37:39 +00:00
|
|
|
<TD ALIGN=RIGHT><P><?php print_string("idnumber") ?>:</TD>
|
2002-11-21 07:37:21 +00:00
|
|
|
<TD>
|
2003-09-09 05:37:39 +00:00
|
|
|
<INPUT name="auth_user_idnumber" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_user_idnumber?>">
|
2002-11-21 07:37:21 +00:00
|
|
|
</TD>
|
|
|
|
</TR>
|
|
|
|
|
|
|
|
<TR VALIGN=TOP>
|
2003-09-09 05:37:39 +00:00
|
|
|
<TD ALIGN=RIGHT><P><?php print_string("language") ?>:</TD>
|
2002-11-21 07:37:21 +00:00
|
|
|
<TD>
|
2003-09-09 05:37:39 +00:00
|
|
|
<INPUT name="auth_user_lang" TYPE="text" SIZE="30" VALUE="<?php echo $config->auth_user_lang?>">
|
2002-11-21 07:37:21 +00:00
|
|
|
</TD>
|
|
|
|
</TR>
|
|
|
|
|
|
|
|
|
2002-11-19 08:51:33 +00:00
|
|
|
<TR VALIGN=TOP>
|
2003-09-09 05:37:39 +00:00
|
|
|
<TD ALIGN=RIGHT><P><?php print_string("instructions", "auth") ?>:</TD>
|
2002-11-19 08:51:33 +00:00
|
|
|
<TD>
|
2003-09-09 05:37:39 +00:00
|
|
|
<TEXTAREA NAME=auth_instructions COLS=30 ROWS=10 WRAP=virtual><?php p($config->auth_instructions) ?></TEXTAREA>
|
2002-11-19 08:51:33 +00:00
|
|
|
</TD>
|
|
|
|
<TD>
|
2003-09-09 05:37:39 +00:00
|
|
|
<?php print_string("authinstructions","auth") ?>
|
|
|
|
<?php helpbutton("text", get_string("helptext")) ?>
|
2002-11-19 08:51:33 +00:00
|
|
|
</TD>
|
|
|
|
</TR>
|