Issue:
[moodle-pu.git] / auth / mnet / config.html
blobfb87bc40fed72dc9eb0dedc61f6f7e3431b79a5d
1 <?php
3 // set to defaults if undefined
4 if (!isset($config->rpc_negotiation_timeout)) {
5 $config->rpc_negotiation_timeout = '30';
7 if (!isset ($config->auto_add_remote_users)) {
8 $config->auto_add_remote_users = '0';
11 $yesno = array(get_string('no'), get_string('yes'));
13 if (empty($CFG->mnet_dispatcher_mode) || $CFG->mnet_dispatcher_mode !== 'strict') {
14 print_box(get_string('mnetdisabled','mnet'));
18 <div id="mnetconfig">
19 <table cellspacing="0" cellpadding="5">
21 <tr valign="top" class="required">
22 <td align="right"><?php print_string('rpc_negotiation_timeout', 'auth'); ?>: </td>
23 <td>
24 <input name="rpc_negotiation_timeout" type="text" size="5" value="<?php echo $config->rpc_negotiation_timeout ?>" />
25 <?php
27 if (isset($err['rpc_negotiation_timeout'])) {
28 formerr($err['rpc_negotiation_timeout']);
32 </td>
33 <td>
34 <?php
36 print_string('auth_mnet_rpc_negotiation_timeout', 'auth');
39 </td>
40 </tr>
42 <tr valign="top" class="required">
43 <td align="right"><?php print_string('auto_add_remote_users', 'auth'); ?>: </td>
44 <td>
45 <?php
47 choose_from_menu($yesno, 'auto_add_remote_users', $config->auto_add_remote_users, '');
50 </td>
51 <td>
52 <?php
54 print_string('auth_mnet_auto_add_remote_users', 'auth');
57 </td>
58 </tr>
59 <tr valign="top" class="required">
60 <td colspan="3"><?php print_string('auth_mnet_roamin', 'auth'); ?>: </td>
61 </tr>
62 <?php
63 foreach($id_providers as $host) {
65 <tr valign="top" class="required">
66 <td align="right"><?php echo $host['name']; ?>: </td>
67 <td colspan="2"><?php echo $host['wwwroot']; ?> </td>
68 </tr>
69 <?php
72 <tr valign="top" class="required">
73 <td colspan="3"><?php print_string('auth_mnet_roamout', 'auth'); ?>: </td>
74 </tr>
75 <?php
76 foreach($service_providers as $host) {
78 <tr valign="top" class="required">
79 <td align="right"><?php echo $host['name']; ?>: </td>
80 <td colspan="2"><?php echo $host['wwwroot']; ?> </td>
81 </tr>
82 <?php
85 // print_auth_lock_options('mnet', $user_fields, get_string('auth_fieldlocks_help', 'auth'), false, false);
88 </table>
89 </div>