2 // Set to defaults if undefined.
3 if (!isset($config->expiration
)) {
4 $config->expiration
= '';
6 if (!isset($config->expiration_warning
)) {
7 $config->expiration_warning
= '';
9 if (!isset($config->expirationtime
)) {
10 $config->expirationtime
= '';
12 $expirationoptions = array(
13 new lang_string('no'),
14 new lang_string('yes'),
16 $expirationtimeoptions = array(
17 '30' => new lang_string('numdays', '', 30),
18 '60' => new lang_string('numdays', '', 60),
19 '90' => new lang_string('numdays', '', 90),
20 '120' => new lang_string('numdays', '', 120),
21 '150' => new lang_string('numdays', '', 150),
22 '180' => new lang_string('numdays', '', 180),
23 '365' => new lang_string('numdays', '', 365),
25 $expirationwarningoptions = array(
26 '0' => new lang_string('never'),
27 '1' => new lang_string('numdays', '', 1),
28 '2' => new lang_string('numdays', '', 2),
29 '3' => new lang_string('numdays', '', 3),
30 '4' => new lang_string('numdays', '', 4),
31 '5' => new lang_string('numdays', '', 5),
32 '6' => new lang_string('numdays', '', 6),
33 '7' => new lang_string('numdays', '', 7),
34 '10' => new lang_string('numdays', '', 10),
35 '14' => new lang_string('numdays', '', 14),
38 <table cellspacing=
"0" cellpadding=
"5" border=
"0">
41 <h3><?php print_string('passwdexpire_settings', 'auth_manual') ?></h3>
46 <label for=
"menuexpiration">
47 <?php print_string('expiration', 'auth_manual') ?>
51 <?php echo html_writer
::select($expirationoptions, 'expiration', $config->expiration
, false) ?>
53 <td><?php print_string('expiration_desc', 'auth_manual') ?></td>
57 <label for=
"menuexpirationtime">
58 <?php print_string('passwdexpiretime', 'auth_manual') ?>
62 <?php echo html_writer
::select($expirationtimeoptions, 'expirationtime', $config->expirationtime
, false) ?>
64 <td><?php print_string('passwdexpiretime_desc', 'auth_manual') ?></td>
68 <label for=
"menuexpiration_warning">
69 <?php print_string('expiration_warning', 'auth_manual') ?>
73 <?php echo html_writer
::select($expirationwarningoptions, 'expiration_warning', $config->expiration_warning
, false) ?>
75 <td><?php print_string('expiration_warning_desc', 'auth_manual') ?></td>
77 <?php print_auth_lock_options($this->authtype
, $user_fields, get_string('auth_fieldlocks_help', 'auth'), false, false) ?>