[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

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

   1  <?php
   2  
   3  // set to defaults if undefined
   4  if (!isset($config->host)) {
   5      $config->host = '127.0.0.1';
   6  }
   7  if (!isset($config->type)) {
   8      $config->type = 'pop3notls';
   9  }
  10  if (!isset($config->port)) {
  11      $config->port = '110';
  12  }
  13  if (!isset($config->mailbox)) {
  14      $config->mailbox = 'INBOX';
  15  }
  16  if (!isset($config->changepasswordurl)) {
  17      $config->changepasswordurl = '';
  18  }
  19  
  20  ?>
  21  <table cellspacing="0" cellpadding="5" border="0">
  22  
  23  <tr valign="top" class="required">
  24      <td align="right"><label for="host"><?php print_string('auth_pop3host_key', 'auth_pop3') ?>: </label></td>
  25      <td>
  26          <input name="host" id="host" type="text" size="30" value="<?php echo $config->host ?>" />
  27          <?php
  28  
  29          if (isset($err['host'])) {
  30              echo $OUTPUT->error_text($err['host']);
  31          }
  32  
  33          ?>
  34      </td>
  35      <td>
  36          <?php
  37  
  38          print_string('auth_pop3host', 'auth_pop3');
  39          print_string('auth_multiplehosts', 'auth');
  40  
  41          ?>
  42      </td>
  43  </tr>
  44  
  45  <tr valign="top" class="required">
  46      <td align="right"><?php echo html_writer::label(get_string('auth_pop3type_key', 'auth_pop3'), 'menutype'); ?>: </td>
  47      <td>
  48          <?php
  49  
  50          $pop3types = array('pop3', 'pop3cert', 'pop3notls');
  51          foreach ($pop3types as $pop3type) {
  52              $pop3options[$pop3type] = $pop3type;
  53          }
  54          echo html_writer::select($pop3options, 'type', $config->type, false);
  55  
  56          ?>
  57      </td>
  58      <td><?php print_string('auth_pop3type', 'auth_pop3') ?></td>
  59  </tr>
  60  
  61  <tr valign="top" class="required">
  62      <td align="right"><label for="port"><?php print_string('auth_pop3port_key', 'auth_pop3') ?>: </label></td>
  63      <td>
  64          <input name="port" id="port" type="text" size="6" value="<?php echo $config->port ?>" />
  65          <?php
  66  
  67          if (isset($err['port'])) {
  68              echo $OUTPUT->error_text($err['port']);
  69          }
  70  
  71          ?>
  72      </td>
  73      <td><?php print_string('auth_pop3port', 'auth_pop3') ?></td>
  74  </tr>
  75  
  76  <tr valign="top" class="required">
  77      <td align="right"><label for="mailbox"><?php print_string('auth_pop3mailbox_key', 'auth_pop3') ?>: </label></td>
  78      <td>
  79          <input name="mailbox" id="mailbox" type="text" size="6" value="<?php echo $config->mailbox ?>" />
  80          <?php
  81  
  82          if (isset($err['mailbox'])) {
  83              echo $OUTPUT->error_text($err['mailbox']);
  84          }
  85  
  86          ?>
  87      </td>
  88      <td><?php print_string('auth_pop3mailbox', 'auth_pop3') ?></td>
  89  </tr>
  90  
  91  <tr valign="top">
  92      <td align="right"><label for="changepasswordurl"><?php print_string('auth_pop3changepasswordurl_key', 'auth_pop3') ?>: </label></td>
  93      <td>
  94          <input name="changepasswordurl" id="changepasswordurl" type="text" value="<?php echo $config->changepasswordurl ?>" />
  95          <?php
  96  
  97          if (isset($err['changepasswordurl'])) {
  98              echo $OUTPUT->error_text($err['changepasswordurl']);
  99          }
 100  
 101          ?>
 102      </td>
 103      <td><?php print_string('changepasswordhelp', 'auth') ?></td>
 104  </tr>
 105  
 106  <?php
 107  
 108  print_auth_lock_options($this->authtype, $user_fields, get_string('auth_fieldlocks_help', 'auth'), false, false);
 109  
 110  ?>
 111  </table>


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