Automatic installer.php lang files by installer_builder (20070726)
[moodle-linuxchix.git] / admin / mnet / trustedhosts.html
blob26da1699bdb04b37bd2a756cc43d68bed3056b67
1 <?php
2 admin_externalpage_print_header();
3 ?>
4 <div id="trustedhosts"><!-- See theme/standard/styles_layout.css #trustedhosts .generaltable for rules -->
5 <table cellspacing="0" cellpadding="5" class="generaltable generalbox" >
6 <tr>
7 <th class="header c0" 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">
14 <form method="post" action="trustedhosts.php">
15 <div>
16 <input type="hidden" name="sesskey" value="<?php echo $USER->sesskey ?>" />
17 <textarea name="hostlist" cols="40" rows="20"><?php echo $trusted_hosts; ?></textarea><br />
18 <input type="submit" value="<?php print_string('savechanges'); ?>" />
19 </div>
20 </form>
21 </td>
22 </tr>
23 </table>
24 <table cellspacing="0" cellpadding="5" class="generaltable generalbox" >
25 <tr>
26 <th class="header c0" colspan="2"><?php print_string('testtrustedhosts', 'mnet'); ?></th>
27 </tr>
28 <?php
29 if (!empty($test_ip_address)){
31 <tr>
32 <td class="cell c1" colspan="2">
33 <?php
34 if ($in_range) {
35 print_string('is_in_range', 'mnet', $test_ip_address);
36 echo '<br />';
37 print_string('validated_by', 'mnet', $validated_by);
38 } else {
39 print_string('not_in_range', 'mnet', $test_ip_address);
42 </td>
43 </tr>
44 <?php
45 } else {
47 <tr>
48 <td class="cell c1" colspan="2"><?php print_string('testtrustedhostsexplain', 'mnet'); ?></td>
49 </tr>
50 <?php
53 <tr>
54 <td class="cell c1" colspan="2">
55 <form method="get" action="trustedhosts.php">
56 <div>
57 <input type="hidden" name="sesskey" value="<?php echo $USER->sesskey ?>" />
58 <input type="text" name="testipaddress" value="<?php echo $test_ip_address; ?>" />
59 <input type="submit" value="<?php print_string('go'); ?>" />
60 </div>
61 </form>
62 </td>
63 </tr>
64 </table>
65 </div>
66 <?php
67 admin_externalpage_print_footer();