Ejemplo n.º 1
0
$apkg = $_GET['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) {
    $apkgid = get_package_id($apkg);
    if ($apkgid != -1) {
        $pkgwithlogging = true;
        $i = $apkgid;
    }
}
$pgtitle = array(gettext("Status"), gettext("Package Logs"));
if ($pkgwithlogging && !empty($apkg)) {
    $pgtitle[] = $apkg;
}
include "head.inc";
if ($pkgwithlogging == false) {
    print_info_box(gettext("No packages with logging facilities are currently installed."));
} else {
    $tab_array = array();
    foreach ($config['installedpackages']['package'] as $package) {
Ejemplo n.º 2
0
						<td width="<?php 
print $show_category ? "58%" : "70%";
?>
" class="listhdr"><?php 
echo gettext("Description");
?>
</td>
						<td width="17">&nbsp;</td>
					</tr>
<?php 
if (!$pkg_info) {
    echo "<tr><td colspan=\"5\"><center>" . gettext("There are currently no packages available for installation.") . "</td></tr>";
} else {
    if (is_array($pkg_info)) {
        foreach ($pkg_info as $index) {
            if (get_package_id($index['name']) >= 0) {
                continue;
            }
            $shortname = $index['name'];
            pkg_remove_prefix($shortname);
            /* Check package info link */
            if ($index['www'] && $index['www'] != 'UNKNOWN') {
                $pkginfolink = $index['www'];
                $pkginfo = gettext("Package info");
            } else {
                $pkginfolink = "https://forum.pfsense.org/index.php/board,15.0.html";
                $pkginfo = gettext("No package info, check the forum");
            }
            if ($menu_category == "All" || $index['categories'][0] == $menu_category || $menu_category == "Other" && !in_array($index['categories'][0], $visible_categories)) {
                ?>
					<tr valign="top" class="<?php