mirrored from git://git.moodle.org/moodle.git
/
config.html
95 lines (80 loc) · 2.46 KB
/
config.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<?php
global $OUTPUT;
// set to defaults if undefined
if (!isset($config->rpc_negotiation_timeout)) {
$config->rpc_negotiation_timeout = '30';
}
/*
See MDL-21327 for why this is commented out
if (!isset ($config->auto_add_remote_users)) {
$config->auto_add_remote_users = '0';
}
*/
$yesno = array(get_string('no'), get_string('yes'));
if (empty($CFG->mnet_dispatcher_mode) || $CFG->mnet_dispatcher_mode !== 'strict') {
echo $OUTPUT->box(get_string('mnetdisabled','mnet'));
}
?>
<div id="mnetconfig">
<table cellspacing="0" cellpadding="5">
<tr valign="top" class="required">
<td align="right"><label for="rpc_negotiation_timeout"><?php print_string('rpc_negotiation_timeout', 'auth_mnet'); ?>: </label></td>
<td>
<input name="rpc_negotiation_timeout" id="rpc_negotiation_timeout" type="text" size="5" value="<?php echo $config->rpc_negotiation_timeout ?>" />
<?php
if (isset($err['rpc_negotiation_timeout'])) {
echo $OUTPUT->error_text($err['rpc_negotiation_timeout']);
}
?>
</td>
<td>
<?php
print_string('auth_mnet_rpc_negotiation_timeout', 'auth_mnet');
?>
</td>
</tr>
<?php /*
See MDL-21327 for why this is commented out
<tr valign="top" class="required">
<td align="right"><?php echo html_writer::label(get_string('auto_add_remote_users', 'auth_mnet'), 'menuauto_add_remote_users'); ?>: </td>
<td>
<?php
echo html_writer::select($yesno, 'auto_add_remote_users', $config->auto_add_remote_users, false);
?>
</td>
<td>
<?php
print_string('auth_mnet_auto_add_remote_users', 'auth_mnet');
?>
</td>
</tr>
*/ ?>
<tr valign="top" class="required">
<td colspan="3"><?php print_string('auth_mnet_roamin', 'auth_mnet'); ?>: </td>
</tr>
<?php
foreach($id_providers as $host) {
?>
<tr valign="top" class="required">
<td align="right"><?php echo $host['name']; ?>: </td>
<td colspan="2"><?php echo $host['wwwroot']; ?> </td>
</tr>
<?php
}
?>
<tr valign="top" class="required">
<td colspan="3"><?php print_string('auth_mnet_roamout', 'auth_mnet'); ?>: </td>
</tr>
<?php
foreach($service_providers as $host) {
?>
<tr valign="top" class="required">
<td align="right"><?php echo $host['name']; ?>: </td>
<td colspan="2"><?php echo $host['wwwroot']; ?> </td>
</tr>
<?php
}
// print_auth_lock_options($this->authtype, $user_fields, get_string('auth_fieldlocks_help', 'auth'), false, false);
?>
</table>
</div>