[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/auth/nntp/ -> 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->port)) {
   8      $config->port = "119";
   9  }
  10  if (!isset($config->changepasswordurl)) {
  11      $config->changepasswordurl = '';
  12  }
  13  
  14  ?>
  15  <table cellspacing="0" cellpadding="5" border="0">
  16  
  17  <tr valign="top" class="required">
  18      <td align="right"><label for="host"><?php print_string('auth_nntphost_key', 'auth_nntp') ?>: </label></td>
  19      <td>
  20          <input name="host" id="host" type="text" size="30" value="<?php echo $config->host ?>" />
  21          <?php
  22  
  23          if (isset($err["host"])) {
  24              echo $OUTPUT->error_text($err["host"]);
  25          }
  26  
  27          ?>
  28      </td>
  29      <td>
  30          <?php
  31  
  32          print_string("auth_nntphost", "auth_nntp");
  33          print_string("auth_multiplehosts", "auth");
  34  
  35          ?>
  36      </td>
  37  </tr>
  38  
  39  <tr valign="top" class="required">
  40      <td align="right"><label for="port"><?php print_string('auth_nntpport_key', 'auth_nntp') ?>: </label></td>
  41      <td>
  42          <input name="port" id="port" type="text" size="6" value="<?php echo $config->port ?>" />
  43          <?php
  44  
  45          if (isset($err["port"])) {
  46              echo $OUTPUT->error_text($err["port"]);
  47          }
  48  
  49          ?>
  50      </td>
  51      <td><?php print_string("auth_nntpport", "auth_nntp") ?></td>
  52  </tr>
  53  
  54  <tr valign="top">
  55      <td align="right"><label for="changepasswordurl"><?php print_string('auth_nntpchangepasswordurl_key', 'auth_nntp') ?>: </label></td>
  56      <td>
  57          <input name="changepasswordurl" id="changepasswordurl" type="text" value="<?php echo $config->changepasswordurl ?>" />
  58          <?php
  59  
  60          if (isset($err['changepasswordurl'])) {
  61              echo $OUTPUT->error_text($err['changepasswordurl']);
  62          }
  63  
  64          ?>
  65      </td>
  66      <td><?php print_string('changepasswordhelp', 'auth') ?></td>
  67  </tr>
  68  
  69  <?php
  70  
  71  print_auth_lock_options($this->authtype, $user_fields, get_string('auth_fieldlocks_help', 'auth'), false, false);
  72  
  73  ?>
  74  </table>


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