2007-01-04 02:33:51 +00:00
|
|
|
<?php
|
2010-03-31 08:05:53 +00:00
|
|
|
echo $OUTPUT->header();
|
2007-01-04 02:33:51 +00:00
|
|
|
?>
|
2007-04-13 07:03:04 +00:00
|
|
|
<div id="trustedhosts"><!-- See theme/standard/styles_layout.css #trustedhosts .generaltable for rules -->
|
|
|
|
<table cellspacing="0" cellpadding="5" class="generaltable generalbox" >
|
2007-01-04 02:33:51 +00:00
|
|
|
<tr>
|
2007-04-13 07:03:04 +00:00
|
|
|
<th class="header c0" colspan="2"><?php print_string('trustedhosts', 'mnet'); ?></th>
|
2007-01-04 02:33:51 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="cell c1" colspan="2"><?php print_string('trustedhostsexplain', 'mnet'); ?></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2007-04-13 07:03:04 +00:00
|
|
|
<td class="cell c1" colspan="2">
|
|
|
|
<form method="post" action="trustedhosts.php">
|
|
|
|
<div>
|
2009-01-02 10:36:25 +00:00
|
|
|
<input type="hidden" name="sesskey" value="<?php echo sesskey() ?>" />
|
2007-04-13 07:03:04 +00:00
|
|
|
<textarea name="hostlist" cols="40" rows="20"><?php echo $trusted_hosts; ?></textarea><br />
|
|
|
|
<input type="submit" value="<?php print_string('savechanges'); ?>" />
|
|
|
|
</div>
|
2007-01-04 02:33:51 +00:00
|
|
|
</form>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
2007-04-13 07:03:04 +00:00
|
|
|
<table cellspacing="0" cellpadding="5" class="generaltable generalbox" >
|
2007-01-04 02:33:51 +00:00
|
|
|
<tr>
|
2007-04-13 07:03:04 +00:00
|
|
|
<th class="header c0" colspan="2"><?php print_string('testtrustedhosts', 'mnet'); ?></th>
|
2007-01-04 02:33:51 +00:00
|
|
|
</tr>
|
2009-11-01 10:57:00 +00:00
|
|
|
<?php
|
2007-04-23 04:14:11 +00:00
|
|
|
if (!empty($test_ip_address)){
|
2007-01-04 02:33:51 +00:00
|
|
|
?>
|
|
|
|
<tr>
|
|
|
|
<td class="cell c1" colspan="2">
|
|
|
|
<?php
|
|
|
|
if ($in_range) {
|
|
|
|
print_string('is_in_range', 'mnet', $test_ip_address);
|
2007-04-13 07:03:04 +00:00
|
|
|
echo '<br />';
|
2007-01-04 02:33:51 +00:00
|
|
|
print_string('validated_by', 'mnet', $validated_by);
|
|
|
|
} else {
|
|
|
|
print_string('not_in_range', 'mnet', $test_ip_address);
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<?php
|
2007-04-23 04:14:11 +00:00
|
|
|
} else {
|
2007-01-04 02:33:51 +00:00
|
|
|
?>
|
|
|
|
<tr>
|
|
|
|
<td class="cell c1" colspan="2"><?php print_string('testtrustedhostsexplain', 'mnet'); ?></td>
|
|
|
|
</tr>
|
|
|
|
<?php
|
2009-11-01 10:57:00 +00:00
|
|
|
}
|
2007-01-04 02:33:51 +00:00
|
|
|
?>
|
|
|
|
<tr>
|
2007-04-13 07:03:04 +00:00
|
|
|
<td class="cell c1" colspan="2">
|
|
|
|
<form method="get" action="trustedhosts.php">
|
|
|
|
<div>
|
2009-01-02 10:36:25 +00:00
|
|
|
<input type="hidden" name="sesskey" value="<?php echo sesskey() ?>" />
|
2007-04-13 07:03:04 +00:00
|
|
|
<input type="text" name="testipaddress" value="<?php echo $test_ip_address; ?>" />
|
|
|
|
<input type="submit" value="<?php print_string('go'); ?>" />
|
|
|
|
</div>
|
2007-01-04 02:33:51 +00:00
|
|
|
</form>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
2007-04-13 07:03:04 +00:00
|
|
|
</div>
|
2007-01-04 02:33:51 +00:00
|
|
|
<?php
|
2009-08-06 14:12:46 +00:00
|
|
|
echo $OUTPUT->footer();
|
2007-04-13 07:03:04 +00:00
|
|
|
?>
|