f1d87ee1a7d318fdbe2a58fb482119387130b9c6
[moodle.git] / auth / fc / config.html
1 <?php
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";
9     }
10     if (!isset($config->userid)) {
11         $config->userid = "fcMoodle";
12     }
13     if (!isset($config->passwd)) {
14         $config->passwd = "";
15     }
16     if (!isset($config->creators)) {
17         $config->creators = "";
18     }    
19     if (!isset($config->changepasswordurl)) {
20         $config->changepasswordurl = '';
21     }   
22     if (!isset($config->changepasswordurl)) {
23         $config->changepasswordurl = '';
24     }
26 ?>
27 <table cellspacing="0" cellpadding="5" border="0" align="center">
29 <tr valign="top" class="required">
30         <td align="right">host:</td>
31     <td>
32         <input name="host" type="text" size="30" value="<?php echo $config->host?>" />
33         <?php  if (isset($err["host"])) formerr($err["host"]); ?>
34     </td>
35     <td>
36     <?php  print_string("auth_fchost", "auth") ?>
37     </td>
38 </tr>
40 <tr valign="top" class="required">
41         <td align="right">fppport:</td>
42     <td>
43         <input name="fppport" type="text" size="30" value="<?php echo $config->fppport?>" />
44         <?php  if (isset($err["fppport"])) formerr($err["host"]); ?>
45     </td>
46     <td>
47     <?php  print_string("auth_fcfppport", "auth") ?>
48     </td>
49 </tr>
51 <tr valign="top" class="required">
52         <td align="right">userid:</td>
53     <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"]); ?>
56     </td>
57     <td>
58     <?php  print_string("auth_fcuserid", "auth") ?>
59     </td>
60 </tr>
62 <tr valign="top" class="required">
63         <td align="right">passwd:</td>
64     <td>
65         <input name="passwd" type="password" size="30" maxlength="12" value="<?php echo $config->passwd?>" />
66         <?php  if (isset($err["passwd"])) formerr($err["passwd"]); ?>
67     </td>
68     <td>
69     <?php  print_string("auth_fcpasswd", "auth") ?>
70     </td>
71 </tr>
73 <tr valign="top" class="required">
74         <td align="right">creators:</td>
75     <td>
76         <input name="creators" type="text" size="30" value="<?php echo $config->creators?>" />
77         <?php  if (isset($err["creators"])) formerr($err["creators"]); ?>
78     </td>
79     <td>
80     <?php  print_string("auth_fccreators", "auth") ?>
81     </td>
82 </tr>
84 <tr valign="top">
85     <td align="right"> changepasswordurl: </td>
86     <td>
87         <input name="changepasswordurl" type="text" value="<?php echo $config->changepasswordurl ?>" />
88         <?php
90         if (isset($err['changepasswordurl'])) {
91             formerr($err['changepasswordurl']);
92         }
94         ?>
95     </td>
96     <td><?php print_string('changepasswordhelp', 'auth') ?></td>
97 </tr>
99 <?php 
101 global $user_fields;
102 print_auth_lock_options('fc', $user_fields, get_string('auth_fieldlocks_help', 'auth'), false, false);
104 ?>
105 </table>