diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-08-28 20:19:52 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-08-28 20:19:52 +0000 |
commit | bd58d23037f3fc8f10d7ab915099e4253bda458d (patch) | |
tree | 9b0721fe85803347211bb158fc4b15700e4d17fc /usr/local/www/interfaces_wan.php | |
parent | fa550a17b53ca8489858c2d8701a984673220b81 (diff) | |
download | pfsense-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_wan.php')
-rwxr-xr-x | usr/local/www/interfaces_wan.php | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/usr/local/www/interfaces_wan.php b/usr/local/www/interfaces_wan.php index af96665..a674f3b 100755 --- a/usr/local/www/interfaces_wan.php +++ b/usr/local/www/interfaces_wan.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"); |