arpwatch arpwatch /var/log/arpwatch.log */ require("guiconfig.inc"); //require_once("pkg-utils.inc"); if(!($nentries = $config['syslog']['nentries'])) $nentries = 50; if ($_POST['clear']) { exec("/usr/sbin/clog -i -s 262144 {$logfile}"); } $i = 0; $pkgwithlogging = false; $apkg = $_POST['pkg']; if(!$apkg) { // 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) { if(is_array($package['logging'])) { $pkgwithlogging = true; $apkg = $package['name']; $apkgid = $i; break; } $i++; } } } elseif($apkg) { $pkgwithlogging = true; $apkgid = get_pkg_id($apkg); $i = $apkgid; } $pgtitle = "Diagnostics: Package logs"; include("head.inc"); ?>

'; include("fend.inc"); exit; } foreach($config['installedpackages']['package'] as $package) { if(is_array($package['logging'])) { if(!($logtab = $package['logging']['logtab'])) $logtab = $package['name']; if($apkg == $package['name']) { $curtab = $logtab; echo '
  • ' . $logtab . '
  • '; } else { Echo '
  • ' . $logtab . '
  • '; } } } ?>
    Last log entries