summaryrefslogtreecommitdiffstats
path: root/usr/local/www/system_gateways.php
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2009-02-15 14:03:53 -0500
committerChris Buechler <cmb@pfsense.org>2009-02-15 14:03:53 -0500
commit124aee67adde2663086ed2b9c408c24f22340712 (patch)
tree9cf194ec9c74270926d84cdb9e31d7e21c5b9568 /usr/local/www/system_gateways.php
parent3d9567bdeb4d51e3f75ef427b8fd3b119d9e6fc5 (diff)
downloadpfsense-124aee67adde2663086ed2b9c408c24f22340712.zip
pfsense-124aee67adde2663086ed2b9c408c24f22340712.tar.gz
Revert "Unbreak System Gateways page. I'll just add back the changes from the old CVS repo afterwards."
This reverts commit e31534731ec7de3d2599cf669e065b1ec52281a0.
Diffstat (limited to 'usr/local/www/system_gateways.php')
-rwxr-xr-xusr/local/www/system_gateways.php20
1 files changed, 11 insertions, 9 deletions
diff --git a/usr/local/www/system_gateways.php b/usr/local/www/system_gateways.php
index 17a0751..3b0cd6c 100755
--- a/usr/local/www/system_gateways.php
+++ b/usr/local/www/system_gateways.php
@@ -1,5 +1,5 @@
<?php
-/* $Id: system_gateways.php,v 1.1 2008/11/06 16:46:42 sumacob Exp $ */
+/* $Id$ */
/*
system_gateways.php
part of pfSense (http://pfsense.com)
@@ -39,10 +39,7 @@
require("guiconfig.inc");
-if (!is_array($config['gateways']['gateway_item']))
- $config['gateways']['gateway_item'] = array();
-
-$a_gateways = &$config['gateways']['gateway_item'];
+$a_gateways = return_gateways_array();
$changedesc = "Gateways: ";
if ($_POST) {
@@ -71,8 +68,12 @@ if ($_POST) {
if ($_GET['act'] == "del") {
if ($a_gateways[$_GET['id']]) {
- $changedesc .= "removed gateway {$_GET['id']}";
- unset($a_gateways[$_GET['id']]);
+ /* remove the real entry */
+ $realid = $a_gateways[$_GET['id']]['attribute'];
+ $a_gateways = &$config['gateways']['gateway_item'];
+
+ $changedesc .= "removed gateway {$realid}";
+ unset($a_gateways[$realid]);
write_config($changedesc);
touch($d_staticroutesdirty_path);
header("Location: system_gateways.php");
@@ -80,6 +81,7 @@ if ($_GET['act'] == "del") {
}
}
+
$pgtitle = array("System","Gateways");
include("head.inc");
@@ -128,9 +130,9 @@ effect.");?><br>
<tr>
<td class="listlr" ondblclick="document.location='system_gateways_edit.php?id=<?=$i;?>';">
<?php
- echo $gateway['name'];
+ echo strtoupper($gateway['name']);
if(isset($gateway['defaultgw'])) {
- echo " <br /><strong>({$gateway['type']} default)<strong>";
+ echo " <strong>(default)<strong>";
}
?>
OpenPOWER on IntegriCloud