forked from moodle/moodle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.html
31 lines (26 loc) · 863 Bytes
/
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
<!-- No config needed -->
<?php
// set to defaults if undefined
if (!isset($config->recaptcha)) {
$config->recaptcha = false;
}
$yesno = array( get_string('no'), get_string('yes') );
?>
<table cellspacing="0" cellpadding="5" border="0">
<tr>
<td colspan="3">
<h2 class="main"><?php print_string('auth_emailsettings', 'auth_email') ?> </h2>
</td>
</tr>
<tr>
<td align="right"><label for="menurecaptcha"><?php print_string('auth_emailrecaptcha_key', 'auth_email') ?></label></td>
<td><?php
global $OUTPUT;
echo html_writer::select($yesno, 'recaptcha', $config->recaptcha, false);
?></td>
<td><?php print_string('auth_emailrecaptcha', 'auth_email') ?></td>
</tr>
<?php
print_auth_lock_options('email', $user_fields, get_string('auth_fieldlocks_help', 'auth'), false, false);
?>
</table>