Merge branch 'MDL-25881' of git://git.luns.net.uk/moodle
[moodle.git] / auth / email / config.html
CommitLineData
35a48c9a 1<!-- No config needed -->
5d6308d4 2<?php
3 // set to defaults if undefined
4 if (!isset($config->recaptcha)) {
5 $config->recaptcha = false;
6 }
7
8 $yesno = array( get_string('no'), get_string('yes') );
9
10?>
a4080313 11
77a297d2 12<table cellspacing="0" cellpadding="5" border="0">
5d6308d4 13<tr>
14 <td colspan="3">
2b06294b 15 <h2 class="main"><?php print_string('auth_emailsettings', 'auth_email') ?> </h2>
5d6308d4 16 </td>
17</tr>
18<tr>
2b06294b 19 <td align="right"><label for="menurecaptcha"><?php print_string('auth_emailrecaptcha_key', 'auth_email') ?></label></td>
3a008973 20 <td><?php
21 global $OUTPUT;
d776d59e 22 echo html_writer::select($yesno, 'recaptcha', $config->recaptcha, false);
3a008973 23 ?></td>
2b06294b 24 <td><?php print_string('auth_emailrecaptcha', 'auth_email') ?></td>
5117d598 25</tr>
139ebfdb 26<?php
b9ddb2d5 27
b9ddb2d5 28print_auth_lock_options('email', $user_fields, get_string('auth_fieldlocks_help', 'auth'), false, false);
29
30?>
31</table>