diff options
author | Colin Smith <colin@pfsense.org> | 2005-06-06 03:41:58 +0000 |
---|---|---|
committer | Colin Smith <colin@pfsense.org> | 2005-06-06 03:41:58 +0000 |
commit | 23f1e22a4653d6bc355c4a2882cbd1e6f724f64c (patch) | |
tree | cb3b2b655ebaaea1ba7650b909ee8e36b37ff604 /usr/local/www/guiconfig.inc | |
parent | 3ead64affa764a81ed78e6fec60be78689dd3025 (diff) | |
download | pfsense-23f1e22a4653d6bc355c4a2882cbd1e6f724f64c.zip pfsense-23f1e22a4653d6bc355c4a2882cbd1e6f724f64c.tar.gz |
Require pkg-utils.inc instead of xmlparse_pkg (and make it exclusive to dump_clog instead of global).
Diffstat (limited to 'usr/local/www/guiconfig.inc')
-rwxr-xr-x | usr/local/www/guiconfig.inc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/usr/local/www/guiconfig.inc b/usr/local/www/guiconfig.inc index 1396fc5..27417d5 100755 --- a/usr/local/www/guiconfig.inc +++ b/usr/local/www/guiconfig.inc @@ -47,8 +47,6 @@ require_once("auth.inc"); require_once("config.inc"); require_once("functions.inc"); -require_once("xmlparse_pkg.inc"); - $d_natconfdirty_path = $g['varrun_path'] . "/nat.conf.dirty"; $d_filterconfdirty_path = $g['varrun_path'] . "/filter.conf.dirty"; $d_ipsecconfdirty_path = $g['varrun_path'] . "/ipsec.conf.dirty"; @@ -461,7 +459,8 @@ function update_changedesc($update) { } function dump_clog($logfile, $tail, $grepfor = "", $grepinvert = false, $withorig = true, $ignorepkgs = true) { - global $g, $config; + require_once("pkg-utils.inc"); + global $g, $config; $sor = isset($config['syslog']['reverse']) ? "-r" : ""; exec("/usr/sbin/clog {$logfile} | /usr/bin/tail {$sor} -n {$tail}", $logarr); if(!is_array($grepfor)) $grepfor = array($grepfor); |