MDL-9742 - Converting tabs to spaces in groups code
[moodle.git] / auth / fc / config.html
CommitLineData
7ef0797d 1<?php
b9ddb2d5 2
3 // set to defaults if undefined
4 if (!isset($config->host)) {
5 $config->host = "127.0.0.1";
6 }
7 if (!isset($config->fppport)) {
8 $config->fppport = "3333";
7ef0797d 9 }
b9ddb2d5 10 if (!isset($config->userid)) {
11 $config->userid = "fcMoodle";
7ef0797d 12 }
b9ddb2d5 13 if (!isset($config->passwd)) {
14 $config->passwd = "";
7ef0797d 15 }
b9ddb2d5 16 if (!isset($config->creators)) {
17 $config->creators = "";
139ebfdb 18 }
b9ddb2d5 19 if (!isset($config->changepasswordurl)) {
20 $config->changepasswordurl = '';
139ebfdb 21 }
b9ddb2d5 22 if (!isset($config->changepasswordurl)) {
23 $config->changepasswordurl = '';
24 }
25
7ef0797d 26?>
77a297d2 27<table cellspacing="0" cellpadding="5" border="0">
7ef0797d 28
f0fd3436 29<tr valign="top" class="required">
a9ad3633 30 <td align="right"><?php print_string("auth_fchost_key", "auth") ?>:</td>
61240489 31 <td>
b9ddb2d5 32 <input name="host" type="text" size="30" value="<?php echo $config->host?>" />
33 <?php if (isset($err["host"])) formerr($err["host"]); ?>
61240489 34 </td>
7ef0797d 35 <td>
b9ddb2d5 36 <?php print_string("auth_fchost", "auth") ?>
7ef0797d 37 </td>
7ef0797d 38</tr>
39
f0fd3436 40<tr valign="top" class="required">
a9ad3633 41 <td align="right"><?php print_string("auth_fcfppport_key", "auth") ?>:</td>
61240489 42 <td>
b9ddb2d5 43 <input name="fppport" type="text" size="30" value="<?php echo $config->fppport?>" />
44 <?php if (isset($err["fppport"])) formerr($err["host"]); ?>
61240489 45 </td>
7ef0797d 46 <td>
b9ddb2d5 47 <?php print_string("auth_fcfppport", "auth") ?>
7ef0797d 48 </td>
7ef0797d 49</tr>
50
f0fd3436 51<tr valign="top" class="required">
a9ad3633 52 <td align="right"><?php print_string("auth_fcuserid_key", "auth") ?>:</td>
61240489 53 <td>
b9ddb2d5 54 <input name="userid" type="text" size="30" maxlength="15" value="<?php echo $config->userid?>" />
55 <?php if (isset($err["userid"])) formerr($err["userid"]); ?>
61240489 56 </td>
7ef0797d 57 <td>
b9ddb2d5 58 <?php print_string("auth_fcuserid", "auth") ?>
7ef0797d 59 </td>
7ef0797d 60</tr>
f0fd3436 61<tr valign="top" class="required">
a9ad3633 62 <td align="right"><?php print_string("auth_fcpasswd_key", "auth") ?>:</td>
61240489 63 <td>
b9ddb2d5 64 <input name="passwd" type="password" size="30" maxlength="12" value="<?php echo $config->passwd?>" />
65 <?php if (isset($err["passwd"])) formerr($err["passwd"]); ?>
61240489 66 </td>
7ef0797d 67 <td>
b9ddb2d5 68 <?php print_string("auth_fcpasswd", "auth") ?>
7ef0797d 69 </td>
7ef0797d 70</tr>
71
f0fd3436 72<tr valign="top" class="required">
a9ad3633 73 <td align="right"><?php print_string("auth_fccreators_key", "auth") ?>:</td>
61240489 74 <td>
b9ddb2d5 75 <input name="creators" type="text" size="30" value="<?php echo $config->creators?>" />
76 <?php if (isset($err["creators"])) formerr($err["creators"]); ?>
61240489 77 </td>
7ef0797d 78 <td>
b9ddb2d5 79 <?php print_string("auth_fccreators", "auth") ?>
7ef0797d 80 </td>
7ef0797d 81</tr>
82
7ef0797d 83<tr valign="top">
a9ad3633 84 <td align="right"><?php print_string('auth_fcchangepasswordurl', 'auth') ?>: </td>
7ef0797d 85 <td>
b9ddb2d5 86 <input name="changepasswordurl" type="text" value="<?php echo $config->changepasswordurl ?>" />
87 <?php
88
89 if (isset($err['changepasswordurl'])) {
90 formerr($err['changepasswordurl']);
91 }
92
93 ?>
7ef0797d 94 </td>
b9ddb2d5 95 <td><?php print_string('changepasswordhelp', 'auth') ?></td>
7ef0797d 96</tr>
b9ddb2d5 97
139ebfdb 98<?php
b9ddb2d5 99
b9ddb2d5 100print_auth_lock_options('fc', $user_fields, get_string('auth_fieldlocks_help', 'auth'), false, false);
101
102?>
103</table>