2004-09-12 01:34:24 +00:00
|
|
|
<?php
|
2007-01-04 04:52:42 +00:00
|
|
|
|
|
|
|
// set to defaults if undefined
|
|
|
|
if (!isset($config->host)) {
|
|
|
|
$config->host = "127.0.0.1";
|
|
|
|
}
|
|
|
|
if (!isset($config->fppport)) {
|
|
|
|
$config->fppport = "3333";
|
2004-09-12 01:34:24 +00:00
|
|
|
}
|
2007-01-04 04:52:42 +00:00
|
|
|
if (!isset($config->userid)) {
|
|
|
|
$config->userid = "fcMoodle";
|
2004-09-12 01:34:24 +00:00
|
|
|
}
|
2007-01-04 04:52:42 +00:00
|
|
|
if (!isset($config->passwd)) {
|
|
|
|
$config->passwd = "";
|
2004-09-12 01:34:24 +00:00
|
|
|
}
|
2007-01-04 04:52:42 +00:00
|
|
|
if (!isset($config->creators)) {
|
|
|
|
$config->creators = "";
|
2007-02-20 17:03:36 +00:00
|
|
|
}
|
2007-01-04 04:52:42 +00:00
|
|
|
if (!isset($config->changepasswordurl)) {
|
|
|
|
$config->changepasswordurl = '';
|
2007-02-20 17:03:36 +00:00
|
|
|
}
|
2007-01-04 04:52:42 +00:00
|
|
|
if (!isset($config->changepasswordurl)) {
|
|
|
|
$config->changepasswordurl = '';
|
|
|
|
}
|
|
|
|
|
2004-09-12 01:34:24 +00:00
|
|
|
?>
|
2007-04-20 07:54:42 +00:00
|
|
|
<table cellspacing="0" cellpadding="5" border="0">
|
2004-09-12 01:34:24 +00:00
|
|
|
|
2005-02-09 12:55:34 +00:00
|
|
|
<tr valign="top" class="required">
|
2012-07-27 18:12:47 +08:00
|
|
|
<td align="right"><label for="host"><?php print_string("auth_fchost_key", "auth_fc") ?>:</label></td>
|
2006-09-20 20:31:09 +00:00
|
|
|
<td>
|
2012-07-27 18:12:47 +08:00
|
|
|
<input name="host" id="host" type="text" size="30" value="<?php echo $config->host?>" />
|
2009-08-20 13:14:05 +00:00
|
|
|
<?php if (isset($err["host"])) echo $OUTPUT->error_text($err["host"]); ?>
|
2006-09-20 20:31:09 +00:00
|
|
|
</td>
|
2004-09-12 01:34:24 +00:00
|
|
|
<td>
|
2009-06-11 03:34:46 +00:00
|
|
|
<?php print_string("auth_fchost", "auth_fc") ?>
|
2004-09-12 01:34:24 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
2005-02-09 12:55:34 +00:00
|
|
|
<tr valign="top" class="required">
|
2012-07-27 18:12:47 +08:00
|
|
|
<td align="right"><label for="fppport"><?php print_string("auth_fcfppport_key", "auth_fc") ?>: </label></td>
|
2006-09-20 20:31:09 +00:00
|
|
|
<td>
|
2012-07-27 18:12:47 +08:00
|
|
|
<input name="fppport" id="fppport" type="text" size="30" value="<?php echo $config->fppport?>" />
|
2009-08-20 13:14:05 +00:00
|
|
|
<?php if (isset($err["fppport"])) echo $OUTPUT->error_text($err["host"]); ?>
|
2006-09-20 20:31:09 +00:00
|
|
|
</td>
|
2004-09-12 01:34:24 +00:00
|
|
|
<td>
|
2009-06-11 03:34:46 +00:00
|
|
|
<?php print_string("auth_fcfppport", "auth_fc") ?>
|
2004-09-12 01:34:24 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
2005-02-09 12:55:34 +00:00
|
|
|
<tr valign="top" class="required">
|
2012-07-27 18:12:47 +08:00
|
|
|
<td align="right"><label for="userid"><?php print_string("auth_fcuserid_key", "auth_fc") ?>:</label></td>
|
2006-09-20 20:31:09 +00:00
|
|
|
<td>
|
2012-07-27 18:12:47 +08:00
|
|
|
<input name="userid" id="userid" type="text" size="30" maxlength="15" value="<?php echo $config->userid?>" />
|
2009-08-20 13:14:05 +00:00
|
|
|
<?php if (isset($err["userid"])) echo $OUTPUT->error_text($err["userid"]); ?>
|
2006-09-20 20:31:09 +00:00
|
|
|
</td>
|
2004-09-12 01:34:24 +00:00
|
|
|
<td>
|
2009-06-11 03:34:46 +00:00
|
|
|
<?php print_string("auth_fcuserid", "auth_fc") ?>
|
2004-09-12 01:34:24 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
2005-02-09 12:55:34 +00:00
|
|
|
<tr valign="top" class="required">
|
2012-07-27 18:12:47 +08:00
|
|
|
<td align="right"><label for="passwd"><?php print_string("auth_fcpasswd_key", "auth_fc") ?>:</label></td>
|
2006-09-20 20:31:09 +00:00
|
|
|
<td>
|
2013-10-18 15:11:53 +02:00
|
|
|
<input name="passwd" id="passwd" type="password" size="30" maxlength="12" value="<?php echo $config->passwd?>" autocomplete="off"/>
|
2009-08-20 13:14:05 +00:00
|
|
|
<?php if (isset($err["passwd"])) echo $OUTPUT->error_text($err["passwd"]); ?>
|
2006-09-20 20:31:09 +00:00
|
|
|
</td>
|
2004-09-12 01:34:24 +00:00
|
|
|
<td>
|
2009-06-11 03:34:46 +00:00
|
|
|
<?php print_string("auth_fcpasswd", "auth_fc") ?>
|
2004-09-12 01:34:24 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
2005-02-09 12:55:34 +00:00
|
|
|
<tr valign="top" class="required">
|
2012-07-27 18:12:47 +08:00
|
|
|
<td align="right"><label for="creators"><?php print_string("auth_fccreators_key", "auth_fc") ?>: </label></td>
|
2006-09-20 20:31:09 +00:00
|
|
|
<td>
|
2012-07-27 18:12:47 +08:00
|
|
|
<input name="creators" id="creators" type="text" size="30" value="<?php echo $config->creators?>" />
|
2009-08-20 13:14:05 +00:00
|
|
|
<?php if (isset($err["creators"])) echo $OUTPUT->error_text($err["creators"]); ?>
|
2006-09-20 20:31:09 +00:00
|
|
|
</td>
|
2004-09-12 01:34:24 +00:00
|
|
|
<td>
|
2009-06-11 03:34:46 +00:00
|
|
|
<?php print_string("auth_fccreators", "auth_fc") ?>
|
2004-09-12 01:34:24 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr valign="top">
|
2012-07-27 18:12:47 +08:00
|
|
|
<td align="right"><label for="changepasswordurl"><?php print_string('auth_fcchangepasswordurl', 'auth_fc') ?>: </label></td>
|
2004-09-12 01:34:24 +00:00
|
|
|
<td>
|
2012-07-27 18:12:47 +08:00
|
|
|
<input name="changepasswordurl" id="changepasswordurl" type="text" value="<?php echo $config->changepasswordurl ?>" />
|
2007-01-04 04:52:42 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
if (isset($err['changepasswordurl'])) {
|
2009-08-20 13:14:05 +00:00
|
|
|
echo $OUTPUT->error_text($err['changepasswordurl']);
|
2007-01-04 04:52:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
?>
|
2004-09-12 01:34:24 +00:00
|
|
|
</td>
|
2007-01-04 04:52:42 +00:00
|
|
|
<td><?php print_string('changepasswordhelp', 'auth') ?></td>
|
2004-09-12 01:34:24 +00:00
|
|
|
</tr>
|
2007-01-04 04:52:42 +00:00
|
|
|
|
2007-02-20 17:03:36 +00:00
|
|
|
<?php
|
2007-01-04 04:52:42 +00:00
|
|
|
|
2012-03-17 10:58:43 +01:00
|
|
|
print_auth_lock_options($this->authtype, $user_fields, get_string('auth_fieldlocks_help', 'auth'), false, false);
|
2007-01-04 04:52:42 +00:00
|
|
|
|
|
|
|
?>
|
|
|
|
</table>
|