Project

General

Profile

Bug #6192 ยป status_graph.diff

Accept input from POST or GET - Sam Bingner, 04/27/2016 08:51 PM

View differences:

status_graph.php 2016-04-27 15:49:12.533233000 -1000
require("guiconfig.inc");
require_once("ipsec.inc");
if ($_POST['width']) {
$width = $_POST['width'];
if ($_REQUEST['width']) {
$width = $_REQUEST['width'];
} else {
$width = "100%";
}
if ($_POST['height']) {
$height = $_POST['height'];
if ($_REQUEST['height']) {
$height = $_REQUEST['height'];
} else {
$height = "200";
}
......
}
}
if ($_POST['if']) {
$curif = $_POST['if'];
if ($_REQUEST['if']) {
$curif = $_REQUEST['if'];
$found = false;
foreach ($ifdescrs as $descr => $ifdescr) {
if ($descr == $curif) {
......
$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 = "";
}
    (1-1/1)