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