mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
* Simplify by using $_REQUEST
* Hard code WAN description if it is blank
This commit is contained in:
parent
fa550a17b5
commit
bd58d23037
@ -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");
|
||||
|
||||
@ -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");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user