summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/status_graph.php
diff options
context:
space:
mode:
authorSteve Beaver <sbeaver@netgate.com>2017-02-13 16:23:03 -0500
committerSteve Beaver <sbeaver@netgate.com>2017-02-13 16:23:03 -0500
commit1a8b65541c3a3185792f41ed293aaf763a4caf01 (patch)
treea943e1030d753f47c405b341236d14247f65aec9 /src/usr/local/www/status_graph.php
parent7f4268b62ddfb259e437dd0cb85fa41f5e98dff0 (diff)
downloadpfsense-1a8b65541c3a3185792f41ed293aaf763a4caf01.zip
pfsense-1a8b65541c3a3185792f41ed293aaf763a4caf01.tar.gz
GET/POST conversion for status*
Diffstat (limited to 'src/usr/local/www/status_graph.php')
-rw-r--r--src/usr/local/www/status_graph.php35
1 files changed, 10 insertions, 25 deletions
diff --git a/src/usr/local/www/status_graph.php b/src/usr/local/www/status_graph.php
index f7a3cc6..c2d2b42 100644
--- a/src/usr/local/www/status_graph.php
+++ b/src/usr/local/www/status_graph.php
@@ -52,23 +52,8 @@ foreach (array('server', 'client') as $mode) {
}
}
-// Compatiblity to restore GET parameters used pre-2.3
-// Useful to save a URL for a given graph configuration
-if (isset($_GET['if']) && !isset($_POST['if'])) {
- $_POST['if'] = $_GET['if'];
-}
-if (isset($_GET['sort']) && !isset($_POST['sort'])) {
- $_POST['sort'] = $_GET['sort'];
-}
-if (isset($_GET['filter']) && !isset($_POST['filter'])) {
- $_POST['filter'] = $_GET['filter'];
-}
-if (isset($_GET['hostipformat']) && !isset($_POST['hostipformat'])) {
- $_POST['hostipformat'] = $_GET['hostipformat'];
-}
-
-if ($_POST['if']) {
- $curif = $_POST['if'];
+if ($_REQUEST['if']) {
+ $curif = $_REQUEST['if'];
$found = false;
foreach ($ifdescrs as $descr => $ifdescr) {
if ($descr == $curif) {
@@ -89,23 +74,23 @@ if ($_POST['if']) {
$curif = "wan";
}
}
-if ($_POST['sort']) {
- $cursort = $_POST['sort'];
+if ($_REQUEST['sort']) {
+ $cursort = $_REQUEST['sort'];
} else {
$cursort = "";
}
-if ($_POST['filter']) {
- $curfilter = $_POST['filter'];
+if ($_REQUEST['filter']) {
+ $curfilter = $_REQUEST['filter'];
} else {
$curfilter = "";
}
-if ($_POST['hostipformat']) {
- $curhostipformat = $_POST['hostipformat'];
+if ($_REQUEST['hostipformat']) {
+ $curhostipformat = $_REQUEST['hostipformat'];
} else {
$curhostipformat = "";
}
-if ($_POST['backgroundupdate']) {
- $curbackgroundupdate = $_POST['backgroundupdate'];
+if ($_REQUEST['backgroundupdate']) {
+ $curbackgroundupdate = $_REQUEST['backgroundupdate'];
} else {
$curbackgroundupdate = "";
}
OpenPOWER on IntegriCloud