diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-12-11 17:10:11 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-12-11 17:10:11 +0000 |
commit | 84e5047da7fe2dba935ca55604d61542422e9b00 (patch) | |
tree | 3f766960310bf5618428278242bec57d9e3022c5 /etc/inc/captiveportal.inc | |
parent | 161a01bd32c389152de1e1417d7016812a209f1c (diff) | |
download | pfsense-84e5047da7fe2dba935ca55604d61542422e9b00.zip pfsense-84e5047da7fe2dba935ca55604d61542422e9b00.tar.gz |
Silence eclipse warnings
Diffstat (limited to 'etc/inc/captiveportal.inc')
-rw-r--r-- | etc/inc/captiveportal.inc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/etc/inc/captiveportal.inc b/etc/inc/captiveportal.inc index ae5386d..9aaa2b1 100644 --- a/etc/inc/captiveportal.inc +++ b/etc/inc/captiveportal.inc @@ -953,6 +953,8 @@ function captiveportal_write_elements() { function get_next_ipfw_ruleno($rulenos_start = 10000, $rulenos_range_max = 9899) { + $fwrules = ""; + $matches = ""; exec("/sbin/ipfw show", $fwrules); foreach ($fwrules as $fwrule) { preg_match("/^(\d+)\s+/", $fwrule, $matches); @@ -978,6 +980,8 @@ function get_next_ipfw_ruleno($rulenos_start = 10000, $rulenos_range_max = 9899) function captiveportal_get_next_ipfw_ruleno($rulenos_start = 10000, $rulenos_range_max = 9899) { + $fwrules = ""; + $matches = ""; exec("/sbin/ipfw show", $fwrules); foreach ($fwrules as $fwrule) { preg_match("/^(\d+)\s+/", $fwrule, $matches); @@ -1014,6 +1018,8 @@ function getVolume($ruleno) { $volume['input_pkts'] = $volume['input_bytes'] = $volume['output_pkts'] = $volume['output_bytes'] = 0 ; // Ingress + $ipfw = ""; + $matches = ""; exec("/sbin/ipfw show {$ruleno}", $ipfw); preg_match("/(\d+)\s+(\d+)\s+(\d+)\s+.*/", $ipfw[0], $matches); $volume['input_pkts'] = $matches[2]; @@ -1037,6 +1043,7 @@ function getVolume($ruleno) { */ function getNasID() { + $nasId = ""; exec("/bin/hostname", $nasId); if(!$nasId[0]) $nasId[0] = "pfSense"; |