<table width="100%" border="0" cellspacing="0" cellpadding="0"> <tbody> <tr> <td class="vncellt">HTTP Scanner</td> <td class="listr" width="75%"> <?php // HAVP version $pfs_version = substr(trim(file_get_contents("/etc/version")), 0, 3); if ($pfs_version == "2.1") { echo exec("pkg_info | grep \"[h]avp\""); } elseif ($pfs_version == "2.2") { // Show package version at least, no good quick way to get the PBI version echo "pkg v{$config['installedpackages']['package'][get_pkg_id("havp")]['version']}"; } else { pkg_exec("query '%v' havp", $version, $err); echo $version; } ?> </td> </tr> <tr> <td class="vncellt">Antivirus Scanner</td> <td class="listr" width="75%"> <?php // ClamD version echo exec("clamd -V"); ?> </td> </tr> <tr>
<tbody> <tr> <td class="vncellt">Squid Version</td> <td class="listr" width="75%"> <?php $pfs_version = substr(trim(file_get_contents("/etc/version")), 0, 3); $updown = is_service_running("squid") ? $img['up'] : $img['down']; $squid_path = PATH_SQUID; if ($pfs_version == "2.2") { if (is_executable($squid_path)) { preg_match("@(\\d{1}).(\\d{1}).(\\d{2})@", shell_exec("{$squid_path} -v"), $squid_version); $version = $squid_version[0]; } $version .= " (pkg v{$config['installedpackages']['package'][get_pkg_id("squid3")]['version']})"; } else { pkg_exec("query '%v' squid", $version, $err); } echo "{$updown} {$version}"; ?> </td> </tr> <tr> <td class="vncellt">Antivirus Scanner</td> <td class="listr" width="75%"> <?php echo squid_clamav_version(); ?> </td> </tr> <tr> <td class="vncellt">Antivirus Bases</td>