MDL-10723 Removed all uses of print_navigation() throughout moodle, the function...
[moodle-pu.git] / auth / shibboleth / config.html
blob073666b757ea8d93c3e8c5435f29205224dcfdca
1 <?php
3 global $CFG;
5 // Set to defaults if undefined
6 if (!isset($config->auth_instructions) or empty($config->user_attribute)) {
7 $config->auth_instructions = get_string('auth_shib_instructions', 'auth', $CFG->wwwroot.'/auth/shibboleth/index.php');
9 if (!isset ($config->user_attribute)) {
10 $config->user_attribute = '';
12 if (!isset ($config->convert_data)) {
13 $config->convert_data = '';
15 if (!isset($config->changepasswordurl)) {
16 $config->changepasswordurl = '';
20 <table cellspacing="0" cellpadding="5" border="0">
22 <tr valign="top" class="required">
23 <td align="right"><?php print_string("username") ?>:</td>
24 <td>
25 <input name="user_attribute" type="text" size="30" value="<?php echo $config->user_attribute ?>" />
26 </td>
27 <td><?php print_string("auth_shib_username_description", "auth") ?></td>
28 </tr>
30 <!--
31 This is kind of obsolete because the login instructions are now centralized
32 On the other hand it would be great for Shibboleth to have seperate login
33 instructions
34 -->
35 <!--
36 <tr valign="top">
37 <td align="right"><?php print_string("instructions", "auth") ?>:</td>
38 <td>
39 <textarea name="auth_instructions" cols="30" rows="10" wrap="virtual"><?php p($config->auth_instructions) ?></textarea>
40 </td>
41 <td>
42 <?php
44 print_string("auth_shib_instructions_help", "auth", htmlspecialchars($CFG->wwwroot.'/auth/shibboleth/index.php'));
45 helpbutton("text", get_string("helptext"));
48 </td>
49 </tr>
50 -->
52 <tr valign="top">
53 <td align="right"><?php print_string("auth_shib_convert_data", "auth") ?>:</td>
54 <td>
55 <input name="convert_data" type="text" size="30" value="<?php echo $config->convert_data?>" />
56 <?php
58 if ($config->convert_data and $config->convert_data != '' and !is_readable($config->convert_data)) {
59 echo '<br/><font color="red">';
60 print_string("auth_shib_convert_data_warning", "auth");
61 echo '</font>';
65 </td>
66 <td><?php print_string("auth_shib_convert_data_description", "auth") ?></td>
67 </tr>
70 <tr valign="top">
71 <td align="right"><?php print_string('auth_shib_changepasswordurl', 'auth') ?>: </td>
72 <td>
73 <input name="changepasswordurl" type="text" value="<?php echo $config->changepasswordurl ?>" />
74 <?php
76 if (isset($err['changepasswordurl'])) {
77 formerr($err['changepasswordurl']);
81 </td>
82 <td><?php print_string('changepasswordhelp', 'auth') ?></td>
83 </tr>
85 <?php
87 print_auth_lock_options('shibboleth', $user_fields, '<!-- empty help -->', true, false);
90 </table>