summaryrefslogtreecommitdiffstats
path: root/usr/local/www/interfaces.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-08-28 20:19:52 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-08-28 20:19:52 +0000
commitbd58d23037f3fc8f10d7ab915099e4253bda458d (patch)
tree9b0721fe85803347211bb158fc4b15700e4d17fc /usr/local/www/interfaces.php
parentfa550a17b53ca8489858c2d8701a984673220b81 (diff)
downloadpfsense-bd58d23037f3fc8f10d7ab915099e4253bda458d.zip
pfsense-bd58d23037f3fc8f10d7ab915099e4253bda458d.tar.gz
* Simplify by using $_REQUEST
* Hard code WAN description if it is blank
Diffstat (limited to 'usr/local/www/interfaces.php')
-rwxr-xr-xusr/local/www/interfaces.php17
1 files changed, 8 insertions, 9 deletions
diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php
index af96665..a674f3b 100755
--- a/usr/local/www/interfaces.php
+++ b/usr/local/www/interfaces.php
@@ -38,15 +38,10 @@
##|*MATCH=interfaces_wan.php*
##|-PRIV
-unset($if);
-if ($_GET['if'])
- $if = $_GET['if'];
-else if ($_POST['if'])
- $if = $_POST['if'];
-
-if (!$if)
- $if = "wan";
-
+if ($_REQUEST['if'])
+ $if = $_REQUEST['if'];
+else
+ $if = "wan";
define("CRON_MONTHLY_PATTERN", "0 0 1 * *");
define("CRON_WEEKLY_PATTERN", "0 0 * * 0");
@@ -542,6 +537,10 @@ n already exists.";
}
}
+// Populate page descr if it does not exist.
+if($if == "wan" && !$wancfg['descr'])
+ $wancfg['descr'] = "WAN";
+
$pgtitle = array("Interfaces", $wancfg['descr']);
$closehead = false;
include("head.inc");
OpenPOWER on IntegriCloud