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
69 69
require("guiconfig.inc");
70 70
require_once("ipsec.inc");
71 71

  
72
if ($_POST['width']) {
73
	$width = $_POST['width'];
72
if ($_REQUEST['width']) {
73
	$width = $_REQUEST['width'];
74 74
} else {
75 75
	$width = "100%";
76 76
}
77 77

  
78
if ($_POST['height']) {
79
	$height = $_POST['height'];
78
if ($_REQUEST['height']) {
79
	$height = $_REQUEST['height'];
80 80
} else {
81 81
	$height = "200";
82 82
}
......
97 97
	}
98 98
}
99 99

  
100
if ($_POST['if']) {
101
	$curif = $_POST['if'];
100
if ($_REQUEST['if']) {
101
	$curif = $_REQUEST['if'];
102 102
	$found = false;
103 103
	foreach ($ifdescrs as $descr => $ifdescr) {
104 104
		if ($descr == $curif) {
......
119 119
		$curif = "wan";
120 120
	}
121 121
}
122
if ($_POST['sort']) {
123
	$cursort = $_POST['sort'];
122
if ($_REQUEST['sort']) {
123
	$cursort = $_REQUEST['sort'];
124 124
} else {
125 125
	$cursort = "";
126 126
}
127
if ($_POST['filter']) {
128
	$curfilter = $_POST['filter'];
127
if ($_REQUEST['filter']) {
128
	$curfilter = $_REQUEST['filter'];
129 129
} else {
130 130
	$curfilter = "";
131 131
}
132
if ($_POST['hostipformat']) {
133
	$curhostipformat = $_POST['hostipformat'];
132
if ($_REQUEST['hostipformat']) {
133
	$curhostipformat = $_REQUEST['hostipformat'];
134 134
} else {
135 135
	$curhostipformat = "";
136 136
}
    (1-1/1)