arpwatch arpwatch /var/log/arpwatch.log */ /* pfSense_BUILDER_BINARIES: /usr/bin/netstat pfSense_MODULE: pkgs */ ##|+PRIV ##|*IDENT=page-status-packagelogs ##|*NAME=Status: Package logs page ##|*DESCR=Allow access to the 'Status: Package logs' page. ##|*MATCH=diag_pkglogs.php* ##|-PRIV require("guiconfig.inc"); if(!($nentries = $config['syslog']['nentries'])) $nentries = 50; //if ($_POST['clear']) // clear_log_file($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 = array(gettext("Status"),gettext("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 . '
  • '; } } } ?>