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'));
19 <table cellspacing=
"0" cellpadding=
"5">
21 <tr valign=
"top" class=
"required">
22 <td align=
"right"><?php print_string('rpc_negotiation_timeout', 'auth'); ?>:
</td>
24 <input name=
"rpc_negotiation_timeout" type=
"text" size=
"5" value=
"<?php echo $config->rpc_negotiation_timeout ?>" />
27 if (isset($err['rpc_negotiation_timeout'])) {
28 formerr($err['rpc_negotiation_timeout']);
36 print_string('auth_mnet_rpc_negotiation_timeout', 'auth');
42 <tr valign=
"top" class=
"required">
43 <td align=
"right"><?php print_string('auto_add_remote_users', 'auth'); ?>:
</td>
47 choose_from_menu($yesno, 'auto_add_remote_users', $config->auto_add_remote_users
, '');
54 print_string('auth_mnet_auto_add_remote_users', 'auth');
59 <tr valign=
"top" class=
"required">
60 <td colspan=
"3"><?php print_string('auth_mnet_roamin', 'auth'); ?>:
</td>
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>
72 <tr valign=
"top" class=
"required">
73 <td colspan=
"3"><?php print_string('auth_mnet_roamout', 'auth'); ?>:
</td>
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>
85 // print_auth_lock_options('mnet', $user_fields, get_string('auth_fieldlocks_help', 'auth'), false, false);