Fixes bug MDL-8234, "New groups code & AS keyword"
[moodle-pu.git] / admin / mnet / trustedhosts.html
blobc924e7a85889addacbe7333ce62c806207816d7f
1 <?php
2 admin_externalpage_print_header($adminroot);
3 ?>
4 <center>
5 <table cellspacing="0" cellpadding="5" width="500" id="hosts" class="generaltable generalbox" >
6 <tr>
7 <th class="header c0" nowrap="nowrap" colspan="2"><?php print_string('trustedhosts', 'mnet'); ?></th>
8 </tr>
9 <tr>
10 <td class="cell c1" colspan="2"><?php print_string('trustedhostsexplain', 'mnet'); ?></td>
11 </tr>
12 <tr>
13 <td class="cell c1" colspan="2"><form method="post" action="trustedhosts.php">
14 <input type="hidden" name="sesskey" value="<?php echo $USER->sesskey ?>" />
15 <textarea name="hostlist" cols="40" rows="20"><?php echo $trusted_hosts; ?></textarea><br />
16 <input type="submit" value="<?php print_string('savechanges'); ?>" />
17 </form>
18 </td>
19 </tr>
20 </table>
21 <table cellspacing="0" cellpadding="5" width="500" id="hosts" class="generaltable generalbox" >
22 <tr>
23 <th class="header c0" nowrap="nowrap" colspan="2"><?php print_string('testtrustedhosts', 'mnet'); ?></th>
24 </tr>
25 <?php
26 if (!empty($test_ip_address)):
28 <tr>
29 <td class="cell c1" colspan="2">
30 <?php
31 if ($in_range) {
32 print_string('is_in_range', 'mnet', $test_ip_address);
33 echo '<br>';
34 print_string('validated_by', 'mnet', $validated_by);
35 } else {
36 print_string('not_in_range', 'mnet', $test_ip_address);
39 </td>
40 </tr>
41 <?php
42 else:
44 <tr>
45 <td class="cell c1" colspan="2"><?php print_string('testtrustedhostsexplain', 'mnet'); ?></td>
46 </tr>
47 <?php
48 endif;
50 <tr>
51 <td class="cell c1" colspan="2"><form method="get" action="trustedhosts.php">
52 <input type="hidden" name="sesskey" value="<?php echo $USER->sesskey ?>" />
53 <input type="text" name="testipaddress" value="<?php echo $test_ip_address; ?>" />
54 <input type="submit" value="<?php print_string('go'); ?>" />
55 </form>
56 </td>
57 </tr>
58 </table>
59 </center>
60 <?php
61 admin_externalpage_print_footer($adminroot);