summaryrefslogtreecommitdiffstats
path: root/usr/local/www/status_gateway_groups.php
diff options
context:
space:
mode:
authorSeth Mos <seth.mos@xs4all.nl>2008-10-31 23:08:24 +0000
committerSeth Mos <seth.mos@xs4all.nl>2008-10-31 23:08:24 +0000
commit7cf4fd8f97ca7d1328059b9848ffe1a349b58b76 (patch)
tree2ad68f8ef27a03c5a05ec21e82ae26715347d429 /usr/local/www/status_gateway_groups.php
parent5c1d21ba84c527a19e462fec410a3414e1f686f4 (diff)
downloadpfsense-7cf4fd8f97ca7d1328059b9848ffe1a349b58b76.zip
pfsense-7cf4fd8f97ca7d1328059b9848ffe1a349b58b76.tar.gz
Fixup page, remove dead code, add unknown option
Diffstat (limited to 'usr/local/www/status_gateway_groups.php')
-rwxr-xr-xusr/local/www/status_gateway_groups.php53
1 files changed, 7 insertions, 46 deletions
diff --git a/usr/local/www/status_gateway_groups.php b/usr/local/www/status_gateway_groups.php
index 3c2d367..5ed5b52 100755
--- a/usr/local/www/status_gateway_groups.php
+++ b/usr/local/www/status_gateway_groups.php
@@ -43,45 +43,10 @@ if (!is_array($config['gateways']['gateway_group']))
$config['gateways']['gateway_group'] = array();
$a_gateway_groups = &$config['gateways']['gateway_group'];
-$a_gateways = return_gateways_array();
$changedesc = "Gateway Groups: ";
-$gateways_status = array();
$gateways_status = return_gateways_status();
-if ($_POST) {
-
- $pconfig = $_POST;
-
- if ($_POST['apply']) {
-
- $retval = 0;
-
- $retval = system_routing_configure();
- $retval |= filter_configure();
-
- $savemsg = get_std_save_message($retval);
- if ($retval == 0) {
- if (file_exists($d_staticroutesdirty_path)) {
- config_lock();
- unlink($d_staticroutesdirty_path);
- config_unlock();
- }
- }
- }
-}
-
-if ($_GET['act'] == "del") {
- if ($a_gateway_groups[$_GET['id']]) {
- $changedesc .= "removed gateway group {$_GET['id']}";
- unset($a_gateway_groups[$_GET['id']]);
- write_config($changedesc);
- touch($d_staticroutesdirty_path);
- header("Location: system_gateway_groups.php");
- exit;
- }
-}
-
$pgtitle = array("Status","Gateway Groups");
include("head.inc");
@@ -89,13 +54,6 @@ include("head.inc");
<body link="#0000CC" vlink="#0000CC" alink="#0000CC">
<?php include("fbegin.inc"); ?>
-<form action="system_gateway_groups.php" method="post">
-<input type="hidden" name="y1" value="1">
-<?php if ($savemsg) print_info_box($savemsg); ?>
-<?php if (file_exists($d_staticroutesdirty_path)): ?><p>
-<?php print_info_box_np("The gateway configuration has been changed.<br>You must apply the changes in order for them to take
-effect.");?><br>
-<?php endif; ?>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
@@ -168,15 +126,19 @@ effect.");?><br>
$bgcolor = "lightcoral";
break;
case "\"delay\"":
- $online = "Warning, Latency";
+ $online = "Latency";
$bgcolor = "khaki";
break;
case "\"loss\"":
- $online = "Warning, Packetloss";
+ $online = "Packetloss";
$bgcolor = "khaki";
break;
+ default:
+ $online = "Unknown";
+ $bgcolor = "lightblue";
+ break;
}
- echo "<td bgcolor='$bgcolor'>". htmlspecialchars($member) ."</td>";
+ echo "<td bgcolor='$bgcolor'>". htmlspecialchars($member) .", $online</td>";
} else {
echo "<td>&nbsp;</td>";
}
@@ -200,7 +162,6 @@ effect.");?><br>
</td>
</tr>
</table>
-</form>
<?php include("fend.inc"); ?>
</body>
</html>
OpenPOWER on IntegriCloud