From 34d9ec6d8f32d64531cfe8e68599a895a12c818c Mon Sep 17 00:00:00 2001 From: Colin Smith Date: Mon, 6 Jun 2005 03:24:31 +0000 Subject: Fix package logs. --- usr/local/www/diag_pkglogs.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'usr/local/www/diag_pkglogs.php') diff --git a/usr/local/www/diag_pkglogs.php b/usr/local/www/diag_pkglogs.php index 4e8a3af..b26615d 100755 --- a/usr/local/www/diag_pkglogs.php +++ b/usr/local/www/diag_pkglogs.php @@ -39,7 +39,6 @@ */ require("guiconfig.inc"); -require("xmlparse_pkg.inc"); $nentries = $config['syslog']['nentries']; if (!$nentries) @@ -48,14 +47,13 @@ if (!$nentries) if ($_POST['clear']) { exec("/usr/sbin/clog -i -s 262144 {$system_logfile}"); } - $i = 0; $pkgwithlogging = false; $apkg = $_POST['pkg']; if(!isset($_POST['pkg'])) { // If we aren't looking for a specific package, locate the first package that handles logging. if($config['installedpackages']['package'] <> "") { foreach($config['installedpackages']['package'] as $package) { - $pkg_config = parse_xml_config_pkg("/usr/local/pkg/" . $package['configurationfile'], "packagegui"); + $pkg_config = parse_xml_config("/usr/local/pkg/" . $package['configurationfile'], "packagegui"); if(is_array($pkg_config['logging'])) { $pkgwithlogging = true; $apkg = $package['name']; -- cgit v1.1