3 // set to defaults if undefined
4 if (!isset($config->host
)) {
5 $config->host
= "127.0.0.1";
7 if (!isset($config->fppport
)) {
8 $config->fppport
= "3333";
10 if (!isset($config->userid
)) {
11 $config->userid
= "fcMoodle";
13 if (!isset($config->passwd
)) {
16 if (!isset($config->creators
)) {
17 $config->creators
= "";
19 if (!isset($config->changepasswordurl
)) {
20 $config->changepasswordurl
= '';
22 if (!isset($config->changepasswordurl
)) {
23 $config->changepasswordurl
= '';
27 <table cellspacing=
"0" cellpadding=
"5" border=
"0">
29 <tr valign=
"top" class=
"required">
30 <td align=
"right"><?php print_string("auth_fchost_key", "auth") ?>:
</td>
32 <input name=
"host" type=
"text" size=
"30" value=
"<?php echo $config->host?>" />
33 <?php
if (isset($err["host"])) formerr($err["host"]); ?>
36 <?php print_string("auth_fchost", "auth") ?>
40 <tr valign=
"top" class=
"required">
41 <td align=
"right"><?php print_string("auth_fcfppport_key", "auth") ?>:
</td>
43 <input name=
"fppport" type=
"text" size=
"30" value=
"<?php echo $config->fppport?>" />
44 <?php
if (isset($err["fppport"])) formerr($err["host"]); ?>
47 <?php print_string("auth_fcfppport", "auth") ?>
51 <tr valign=
"top" class=
"required">
52 <td align=
"right"><?php print_string("auth_fcuserid_key", "auth") ?>:
</td>
54 <input name=
"userid" type=
"text" size=
"30" maxlength=
"15" value=
"<?php echo $config->userid?>" />
55 <?php
if (isset($err["userid"])) formerr($err["userid"]); ?>
58 <?php print_string("auth_fcuserid", "auth") ?>
61 <tr valign=
"top" class=
"required">
62 <td align=
"right"><?php print_string("auth_fcpasswd_key", "auth") ?>:
</td>
64 <input name=
"passwd" type=
"password" size=
"30" maxlength=
"12" value=
"<?php echo $config->passwd?>" />
65 <?php
if (isset($err["passwd"])) formerr($err["passwd"]); ?>
68 <?php print_string("auth_fcpasswd", "auth") ?>
72 <tr valign=
"top" class=
"required">
73 <td align=
"right"><?php print_string("auth_fccreators_key", "auth") ?>:
</td>
75 <input name=
"creators" type=
"text" size=
"30" value=
"<?php echo $config->creators?>" />
76 <?php
if (isset($err["creators"])) formerr($err["creators"]); ?>
79 <?php print_string("auth_fccreators", "auth") ?>
84 <td align=
"right"><?php print_string('auth_fcchangepasswordurl', 'auth') ?>:
</td>
86 <input name=
"changepasswordurl" type=
"text" value=
"<?php echo $config->changepasswordurl ?>" />
89 if (isset($err['changepasswordurl'])) {
90 formerr($err['changepasswordurl']);
95 <td><?php print_string('changepasswordhelp', 'auth') ?></td>
100 print_auth_lock_options('fc', $user_fields, get_string('auth_fieldlocks_help', 'auth'), false, false);