diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-04-07 02:04:23 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-04-07 02:04:23 +0000 |
commit | ba8ee0675d0fdf83426d58b61a540de21bf5aeb9 (patch) | |
tree | a5f42804737eecefc9c730ef3c86ce997c572cd8 /usr/local/www | |
parent | 6b35646f26360cec08e34e566c0541835b58faf3 (diff) | |
download | pfsense-ba8ee0675d0fdf83426d58b61a540de21bf5aeb9.zip pfsense-ba8ee0675d0fdf83426d58b61a540de21bf5aeb9.tar.gz |
Initialize variables.
Found-by: PHPEclipse
Diffstat (limited to 'usr/local/www')
-rwxr-xr-x | usr/local/www/diag_logs_filter.php | 2 | ||||
-rwxr-xr-x | usr/local/www/diag_logs_vpn.php | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/usr/local/www/diag_logs_filter.php b/usr/local/www/diag_logs_filter.php index 887cb2b..7bc973f 100755 --- a/usr/local/www/diag_logs_filter.php +++ b/usr/local/www/diag_logs_filter.php @@ -56,7 +56,7 @@ if ($_POST['clear']) { /* format filter logs */ function conv_clog($logfile, $tail = 50) { - global $config, $nentries; + global $config, $nentries, $g; $logarr = ""; /* make interface/port table */ $iftable = array(); diff --git a/usr/local/www/diag_logs_vpn.php b/usr/local/www/diag_logs_vpn.php index e7562b4..4340f26 100755 --- a/usr/local/www/diag_logs_vpn.php +++ b/usr/local/www/diag_logs_vpn.php @@ -48,6 +48,7 @@ function dump_clog_vpn($logfile, $tail) { $sor = isset($config['syslog']['reverse']) ? "-r" : ""; + $logarr = ""; exec("/usr/sbin/clog " . $logfile . " | tail {$sor} -n " . $tail, $logarr); foreach ($logarr as $logent) { |