|
143 | 143 | foreach ($devices_arr as $d) { |
144 | 144 | $devices[$d['folder']] = $d['name']; |
145 | 145 | } |
146 | | -}else{ |
| 146 | +} else { |
147 | 147 | $ddevice = 0; |
148 | 148 | } |
149 | 149 |
|
|
173 | 173 | 'method' => 'drop_array', |
174 | 174 | 'default' => 0, |
175 | 175 | 'description' => '', |
176 | | - 'value' => (isset_request_var('device_name') ? get_nfilter_request_var('device_name') : $ddevice), |
| 176 | + 'value' => (isset_request_var('device') ? get_nfilter_request_var('device') : $ddevice), |
177 | 177 | 'none_value' => __('None', 'flowview'), |
178 | 178 | 'array' => $devices |
179 | 179 | ); |
|
183 | 183 | 'method' => 'drop_array', |
184 | 184 | 'default' => 20, |
185 | 185 | 'description' => '', |
186 | | - 'value' => (isset_request_var('cutoff_lines') ? get_nfilter_request_var('cutoff_lines') : 0), |
| 186 | + 'value' => (isset_request_var('cutofflines') ? get_nfilter_request_var('cutofflines') : 0), |
187 | 187 | 'array' => array( |
188 | 188 | '999999' => __('All', 'flowview'), |
189 | 189 | '5' => __('Top %d', 5, 'flowview'), |
|
202 | 202 | 'method' => 'drop_array', |
203 | 203 | 'default' => 0, |
204 | 204 | 'description' => '', |
205 | | - 'value' => (isset_request_var('cutoff_octets') ? get_nfilter_request_var('cutoff_octets'):''), |
| 205 | + 'value' => (isset_request_var('cutoffoctets') ? get_nfilter_request_var('cutoffoctets'):''), |
206 | 206 | 'array' => array( |
207 | 207 | '0' => __('No Limit', 'flowview'), |
208 | 208 | '1024' => __('%s Bytes', '1K', 'flowview'), |
|
232 | 232 |
|
233 | 233 | $stat_report_field = array( |
234 | 234 | 'friendly_name' => '', |
235 | | - 'name' => 'stat_report', |
| 235 | + 'name' => 'statistics', |
236 | 236 | 'method' => 'drop_array', |
237 | 237 | 'default' => 10, |
238 | 238 | 'description' => '', |
239 | | - 'value' => (isset_request_var('stat_report') ? get_nfilter_request_var('stat_report') : 10), |
| 239 | + 'value' => (isset_request_var('statistics') ? get_nfilter_request_var('statistics') : 10), |
240 | 240 | 'array' => $stat_report_array |
241 | 241 | ); |
242 | 242 |
|
|
254 | 254 | 'method' => 'drop_array', |
255 | 255 | 'default' => 0, |
256 | 256 | 'description' => '', |
257 | | - 'value' => (isset_request_var('print_report') ? get_nfilter_request_var('print_report') : 0), |
| 257 | + 'value' => (isset_request_var('printed') ? get_nfilter_request_var('printed') : 0), |
258 | 258 | 'array' => $print_report_array |
259 | 259 | ); |
260 | 260 |
|
|
263 | 263 | 'method' => 'drop_array', |
264 | 264 | 'default' => 'Y', |
265 | 265 | 'description' => '', |
266 | | - 'value' => (isset_request_var('resolve_addresses') ? get_nfilter_request_var('resolve_addresses') : 'Y'), |
| 266 | + 'value' => (isset_request_var('resolve') ? get_nfilter_request_var('resolve') : 'Y'), |
267 | 267 | 'array' => $resolve_addresses_array |
268 | 268 | ); |
269 | 269 |
|
270 | 270 | $stat_columns_array = array( |
271 | | - 5 => array(1, 2, '-1', '-1', '0', __('Port', 'flowview'), __('Flows', 'flowview'), __('Bytes', 'flowview'), __('Packets', 'flowview')), |
272 | | - 6 => array(1, 2, '-1', '-1', '0', __('Port', 'flowview'), __('Flows', 'flowview'), __('Bytes', 'flowview'), __('Packets', 'flowview')), |
273 | | - 7 => array(1, 2, '-1', '-1', '0', __('Port', 'flowview'), __('Flows', 'flowview'), __('Bytes', 'flowview'), __('Packets', 'flowview')), |
274 | | - 8 => array(1, 2, 0, '-1', '-1', __('Dest IP', 'flowview'), __('Flows', 'flowview'), __('Bytes', 'flowview'), __('Packets', 'flowview')), |
275 | | - 9 => array(1, 2, 0, '-1', '-1', __('Src IP', 'flowview'), __('Flows', 'flowview'), __('Bytes', 'flowview'), __('Packets', 'flowview')), |
276 | | - 10 => array(1, 3, '0,1', '-1', '-1', __('Src IP', 'flowview'), __('Dest IP', 'flowview'), __('Flows', 'flowview'), __('Bytes', 'flowview'), __('Packets', 'flowview')), |
277 | | - 11 => array(1, 2, 0, '-1', '-1', __('Src/Dest IP', 'flowview'), __('Flows', 'flowview'), __('Bytes', 'flowview'), __('Packets', 'flowview')), |
278 | | - 12 => array(1, 2, '-1', '0', '-1', __('Protocol', 'flowview'), __('Flows', 'flowview'), __('Bytes', 'flowview'), __('Packets', 'flowview')), |
279 | | - 17 => array(1, 2, '-1', '-1', '-1', __('Input IF', 'flowview'), __('Flows', 'flowview'), __('Bytes', 'flowview'), __('Packets', 'flowview')), |
280 | | - 18 => array(1, 2, '-1', '-1', '-1', __('Output IF', 'flowview'), __('Flows', 'flowview'), __('Bytes', 'flowview'), __('Packets', 'flowview')), |
281 | | - 19 => array(1, 2, '-1', '-1', '-1', __('Src AS', 'flowview'), __('Flows', 'flowview'), __('Bytes', 'flowview'), __('Packets', 'flowview')), |
282 | | - 20 => array(1, 2, '-1', '-1', '-1', __('Dest AS', 'flowview'), __('Flows', 'flowview'), __('Bytes', 'flowview'), __('Packets', 'flowview')), |
283 | | - 21 => array(1, 3, '-1', '-1', '-1', __('Src AS', 'flowview'), __('Dest AS', 'flowview'), __('Flows', 'flowview'), __('Bytes', 'flowview'), __('Packets', 'flowview')), |
284 | | - 22 => array(1, 2, '-1', '-1', '-1', __('TOS', 'flowview'), __('Flows', 'flowview'), __('Bytes', 'flowview'), __('Packets', 'flowview')), |
285 | | - 23 => array(1, 3, '-1', '-1', '-1', __('Input IF', 'flowview'), __('Output IF', 'flowview'), __('Flows', 'flowview'), __('Bytes', 'flowview'), __('Packets', 'flowview')), |
286 | | - 24 => array(1, 2, '0', '-1', '-1', __('Src Prefix', 'flowview'), __('Flows', 'flowview'), __('Bytes', 'flowview'), __('Packets', 'flowview')), |
287 | | - 25 => array(1, 2, '0', '-1', '-1', __('Dest Prefix', 'flowview'), __('Flows', 'flowview'), __('Bytes', 'flowview'), __('Packets', 'flowview')), |
288 | | - 26 => array(1, 3, '0,1', '-1', '-1', __('Src Prefix', 'flowview'), __('Dest Prefix', 'flowview'), __('Flows', 'flowview'), __('Bytes', 'flowview'), __('Packets', 'flowview')), |
| 271 | + 5 => array(1, 2, '-1', '-1', '0', |
| 272 | + __('Port', 'flowview'), |
| 273 | + __('Flows', 'flowview'), |
| 274 | + __('Bytes', 'flowview'), |
| 275 | + __('Packets', 'flowview') |
| 276 | + ), |
| 277 | + 6 => array(1, 2, '-1', '-1', '0', |
| 278 | + __('Port', 'flowview'), |
| 279 | + __('Flows', 'flowview'), |
| 280 | + __('Bytes', 'flowview'), |
| 281 | + __('Packets', 'flowview') |
| 282 | + ), |
| 283 | + 7 => array(1, 2, '-1', '-1', '0', |
| 284 | + __('Port', 'flowview'), |
| 285 | + __('Flows', 'flowview'), |
| 286 | + __('Bytes', 'flowview'), |
| 287 | + __('Packets', 'flowview') |
| 288 | + ), |
| 289 | + 8 => array(1, 2, 0, '-1', '-1', |
| 290 | + __('Dest IP', 'flowview'), |
| 291 | + __('Flows', 'flowview'), |
| 292 | + __('Bytes', 'flowview'), |
| 293 | + __('Packets', 'flowview') |
| 294 | + ), |
| 295 | + 9 => array(1, 2, 0, '-1', '-1', |
| 296 | + __('Src IP', 'flowview'), |
| 297 | + __('Flows', 'flowview'), |
| 298 | + __('Bytes', 'flowview'), |
| 299 | + __('Packets', 'flowview') |
| 300 | + ), |
| 301 | + 10 => array(1, 3, '0,1', '-1', '-1', |
| 302 | + __('Src IP', 'flowview'), |
| 303 | + __('Dest IP', 'flowview'), |
| 304 | + __('Flows', 'flowview'), |
| 305 | + __('Bytes', 'flowview'), |
| 306 | + __('Packets', 'flowview') |
| 307 | + ), |
| 308 | + 11 => array(1, 2, 0, '-1', '-1', |
| 309 | + __('Src/Dest IP', 'flowview'), |
| 310 | + __('Flows', 'flowview'), |
| 311 | + __('Bytes', 'flowview'), |
| 312 | + __('Packets', 'flowview') |
| 313 | + ), |
| 314 | + 12 => array(1, 2, '-1', '0', '-1', |
| 315 | + __('Protocol', 'flowview'), |
| 316 | + __('Flows', 'flowview'), |
| 317 | + __('Bytes', 'flowview'), |
| 318 | + __('Packets', 'flowview') |
| 319 | + ), |
| 320 | + 17 => array(1, 2, '-1', '-1', '-1', |
| 321 | + __('Input IF', 'flowview'), |
| 322 | + __('Flows', 'flowview'), |
| 323 | + __('Bytes', 'flowview'), |
| 324 | + __('Packets', 'flowview') |
| 325 | + ), |
| 326 | + 18 => array(1, 2, '-1', '-1', '-1', |
| 327 | + __('Output IF', 'flowview'), |
| 328 | + __('Flows', 'flowview'), |
| 329 | + __('Bytes', 'flowview'), |
| 330 | + __('Packets', 'flowview') |
| 331 | + ), |
| 332 | + 19 => array(1, 2, '-1', '-1', '-1', |
| 333 | + __('Src AS', 'flowview'), |
| 334 | + __('Flows', 'flowview'), |
| 335 | + __('Bytes', 'flowview'), |
| 336 | + __('Packets', 'flowview') |
| 337 | + ), |
| 338 | + 20 => array(1, 2, '-1', '-1', '-1', |
| 339 | + __('Dest AS', 'flowview'), |
| 340 | + __('Flows', 'flowview'), |
| 341 | + __('Bytes', 'flowview'), |
| 342 | + __('Packets', 'flowview') |
| 343 | + ), |
| 344 | + 21 => array(1, 3, '-1', '-1', '-1', |
| 345 | + __('Src AS', 'flowview'), |
| 346 | + __('Dest AS', 'flowview'), |
| 347 | + __('Flows', 'flowview'), |
| 348 | + __('Bytes', 'flowview'), |
| 349 | + __('Packets', 'flowview') |
| 350 | + ), |
| 351 | + 22 => array(1, 2, '-1', '-1', '-1', |
| 352 | + __('TOS', 'flowview'), |
| 353 | + __('Flows', 'flowview'), |
| 354 | + __('Bytes', 'flowview'), |
| 355 | + __('Packets', 'flowview') |
| 356 | + ), |
| 357 | + 23 => array(1, 3, '-1', '-1', '-1', |
| 358 | + __('Input IF', 'flowview'), |
| 359 | + __('Output IF', 'flowview'), |
| 360 | + __('Flows', 'flowview'), |
| 361 | + __('Bytes', 'flowview'), |
| 362 | + __('Packets', 'flowview') |
| 363 | + ), |
| 364 | + 24 => array(1, 2, '0', '-1', '-1', |
| 365 | + __('Src Prefix', 'flowview'), |
| 366 | + __('Flows', 'flowview'), |
| 367 | + __('Bytes', 'flowview'), |
| 368 | + __('Packets', 'flowview') |
| 369 | + ), |
| 370 | + 25 => array(1, 2, '0', '-1', '-1', |
| 371 | + __('Dest Prefix', 'flowview'), |
| 372 | + __('Flows', 'flowview'), |
| 373 | + __('Bytes', 'flowview'), |
| 374 | + __('Packets', 'flowview') |
| 375 | + ), |
| 376 | + 26 => array(1, 3, '0,1', '-1', '-1', |
| 377 | + __('Src Prefix', 'flowview'), |
| 378 | + __('Dest Prefix', 'flowview'), |
| 379 | + __('Flows', 'flowview'), |
| 380 | + __('Bytes', 'flowview'), |
| 381 | + __('Packets', 'flowview') |
| 382 | + ), |
289 | 383 | ); |
290 | 384 |
|
291 | 385 | $print_columns_array = array( |
292 | | - 1 => array(2, 8, '1,3', '1', '4', '1', '5,6', __('Src IF', 'flowview'), __('Src IP', 'flowview'), __('Dest IF', 'flowview'), __('Dest IP', 'flowview'), __('Protocol', 'flowview'), __('Src Port', 'flowview'), __('Dest Port', 'flowview'), __('Packets', 'flowview'), __('Bytes', 'flowview'), __('Start Time', 'flowview'), __('End Time', 'flowview'), __('Active', 'flowview'), __('B/Pk', 'flowview'), __('Ts', 'flowview'), __('Fl', 'flowview')), |
293 | | - 4 => array(1, 5, '', '0', '2', '0', '', __('Src IP', 'flowview'), __('Dest IP', 'flowview'), __('Protocol', 'flowview'), __('Src AS', 'flowview'), __('Dest AS', 'flowview'), __('Bytes', 'flowview'), __('Packets', 'flowview')), |
294 | | - 5 => array(1, 11, '3,6', '0', '8', '0', '4,7', __('Start Time', 'flowview'), __('End Time', 'flowview'), __('Src IF', 'flowview'), __('Src IP', 'flowview'), __('Src Port', 'flowview'), __('Dest IF', 'flowview'), __('Dest IP', 'flowview'), __('Dest Port', 'flowview'), __('Protocol', 'flowview'), __('Flags', 'flowview'), __('Packets', 'flowview'), __('Bytes', 'flowview')), |
| 386 | + 1 => array(2, 8, '1,3', '1', '4', '1', '5,6', |
| 387 | + __('Src IF', 'flowview'), |
| 388 | + __('Src IP', 'flowview'), |
| 389 | + __('Dest IF', 'flowview'), |
| 390 | + __('Dest IP', 'flowview'), |
| 391 | + __('Protocol', 'flowview'), |
| 392 | + __('Src Port', 'flowview'), |
| 393 | + __('Dest Port', 'flowview'), |
| 394 | + __('Packets', 'flowview'), |
| 395 | + __('Bytes', 'flowview'), |
| 396 | + __('Start Time', 'flowview'), |
| 397 | + __('End Time', 'flowview'), |
| 398 | + __('Active', 'flowview'), |
| 399 | + __('B/Pk', 'flowview'), |
| 400 | + __('Ts', 'flowview'), |
| 401 | + __('Fl', 'flowview') |
| 402 | + ), |
| 403 | + 4 => array(1, 5, '', '0', '2', '0', '', |
| 404 | + __('Src IP', 'flowview'), |
| 405 | + __('Dest IP', 'flowview'), |
| 406 | + __('Protocol', 'flowview'), |
| 407 | + __('Src AS', 'flowview'), |
| 408 | + __('Dest AS', 'flowview'), |
| 409 | + __('Bytes', 'flowview'), |
| 410 | + __('Packets', 'flowview') |
| 411 | + ), |
| 412 | + 5 => array(1, 11, '3,6', '0', '8', '0', '4,7', |
| 413 | + __('Start Time', 'flowview'), |
| 414 | + __('End Time', 'flowview'), |
| 415 | + __('Src IF', 'flowview'), |
| 416 | + __('Src IP', 'flowview'), |
| 417 | + __('Src Port', 'flowview'), |
| 418 | + __('Dest IF', 'flowview'), |
| 419 | + __('Dest IP', 'flowview'), |
| 420 | + __('Dest Port', 'flowview'), |
| 421 | + __('Protocol', 'flowview'), |
| 422 | + __('Flags', 'flowview'), |
| 423 | + __('Packets', 'flowview'), |
| 424 | + __('Bytes', 'flowview') |
| 425 | + ) |
295 | 426 | ); |
296 | 427 |
|
297 | 428 |
|
0 commit comments