[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/auth/manual/ -> config.html (source)

   1  <?php
   2      // Set to defaults if undefined.
   3      if (!isset($config->expiration)) {
   4          $config->expiration = '';
   5      }
   6      if (!isset($config->expiration_warning)) {
   7          $config->expiration_warning = '';
   8      }
   9      if (!isset($config->expirationtime)) {
  10          $config->expirationtime = '';
  11      }
  12      $expirationoptions = array(
  13          new lang_string('no'),
  14          new lang_string('yes'),
  15      );
  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),
  24      );
  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),
  36      );
  37  ?>
  38  <table cellspacing="0" cellpadding="5" border="0">
  39      <tr>
  40          <td colspan="3">
  41              <h3><?php print_string('passwdexpire_settings', 'auth_manual') ?></h3>
  42          </td>
  43      </tr>
  44      <tr>
  45          <td align="right">
  46              <label for="menuexpiration">
  47                  <?php print_string('expiration', 'auth_manual') ?>
  48              </label>
  49          </td>
  50          <td>
  51              <?php echo html_writer::select($expirationoptions, 'expiration', $config->expiration, false) ?>
  52          </td>
  53          <td><?php print_string('expiration_desc', 'auth_manual') ?></td>
  54      </tr>
  55      <tr>
  56          <td align="right">
  57              <label for="menuexpirationtime">
  58                  <?php print_string('passwdexpiretime', 'auth_manual') ?>
  59              </label>
  60          </td>
  61          <td>
  62              <?php echo html_writer::select($expirationtimeoptions, 'expirationtime', $config->expirationtime, false) ?>
  63          </td>
  64          <td><?php print_string('passwdexpiretime_desc', 'auth_manual') ?></td>
  65      </tr>
  66      <tr>
  67          <td align="right">
  68              <label for="menuexpiration_warning">
  69                  <?php print_string('expiration_warning', 'auth_manual') ?>
  70              </label>
  71          </td>
  72          <td>
  73              <?php echo html_writer::select($expirationwarningoptions, 'expiration_warning', $config->expiration_warning, false) ?>
  74          </td>
  75          <td><?php print_string('expiration_warning_desc', 'auth_manual') ?></td>
  76      </tr>
  77      <?php print_auth_lock_options($this->authtype, $user_fields, get_string('auth_fieldlocks_help', 'auth'), false, false) ?>
  78  </table>


Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1