[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

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

   1  <?php
   2  global $OUTPUT;
   3  // set to defaults if undefined
   4  if (!isset($config->rpc_negotiation_timeout)) {
   5      $config->rpc_negotiation_timeout = '30';
   6  }
   7  /*
   8   See MDL-21327   for why this is commented out
   9  if (!isset ($config->auto_add_remote_users)) {
  10      $config->auto_add_remote_users = '0';
  11  }
  12  */
  13  
  14  $yesno = array(get_string('no'), get_string('yes'));
  15  
  16  if (empty($CFG->mnet_dispatcher_mode) || $CFG->mnet_dispatcher_mode !== 'strict') {
  17      echo $OUTPUT->box(get_string('mnetdisabled','mnet'));
  18  }
  19  
  20  ?>
  21  <div id="mnetconfig">
  22  <table cellspacing="0" cellpadding="5">
  23  
  24  <tr valign="top" class="required">
  25      <td align="right"><label for="rpc_negotiation_timeout"><?php print_string('rpc_negotiation_timeout', 'auth_mnet'); ?>: </label></td>
  26      <td>
  27          <input name="rpc_negotiation_timeout" id="rpc_negotiation_timeout" type="text" size="5" value="<?php echo $config->rpc_negotiation_timeout ?>" />
  28          <?php
  29  
  30          if (isset($err['rpc_negotiation_timeout'])) {
  31              echo $OUTPUT->error_text($err['rpc_negotiation_timeout']);
  32          }
  33  
  34          ?>
  35      </td>
  36      <td>
  37          <?php
  38  
  39          print_string('auth_mnet_rpc_negotiation_timeout', 'auth_mnet');
  40  
  41          ?>
  42      </td>
  43  </tr>
  44  
  45  <?php /*
  46   See MDL-21327   for why this is commented out
  47  <tr valign="top" class="required">
  48      <td align="right"><?php echo html_writer::label(get_string('auto_add_remote_users', 'auth_mnet'), 'menuauto_add_remote_users'); ?>: </td>
  49      <td>
  50          <?php
  51  
  52          echo html_writer::select($yesno, 'auto_add_remote_users', $config->auto_add_remote_users, false);
  53  
  54          ?>
  55      </td>
  56      <td>
  57          <?php
  58  
  59          print_string('auth_mnet_auto_add_remote_users', 'auth_mnet');
  60  
  61          ?>
  62      </td>
  63  </tr>
  64  */ ?>
  65  <tr valign="top" class="required">
  66      <td colspan="3"><?php print_string('auth_mnet_roamin', 'auth_mnet'); ?>: </td>
  67  </tr>
  68  <?php
  69  foreach($id_providers as $host) {
  70  ?>
  71  <tr valign="top" class="required">
  72      <td align="right"><?php echo $host['name']; ?>: </td>
  73      <td colspan="2"><?php echo $host['wwwroot']; ?> </td>
  74  </tr>
  75  <?php
  76  }
  77  ?>
  78  <tr valign="top" class="required">
  79      <td colspan="3"><?php print_string('auth_mnet_roamout', 'auth_mnet'); ?>: </td>
  80  </tr>
  81  <?php
  82  foreach($service_providers as $host) {
  83  ?>
  84  <tr valign="top" class="required">
  85      <td align="right"><?php echo $host['name']; ?>: </td>
  86      <td colspan="2"><?php echo $host['wwwroot']; ?> </td>
  87  </tr>
  88  <?php
  89  }
  90  
  91  // print_auth_lock_options($this->authtype, $user_fields, get_string('auth_fieldlocks_help', 'auth'), false, false);
  92  
  93  ?>
  94  </table>
  95  </div>


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