show <pkginfolink> for installed packages

This commit is contained in:
Chris Buechler 2008-11-17 23:45:36 +00:00
parent eac7d67cc5
commit b24697f910

View File

@ -42,7 +42,7 @@ if(is_array($config['installedpackages']['package'])) {
foreach($config['installedpackages']['package'] as $instpkg) {
$tocheck[] = $instpkg['name'];
}
$currentvers = get_pkg_info($tocheck, array('version', 'xmlver'));
$currentvers = get_pkg_info($tocheck, array('version', 'xmlver', 'pkginfolink'));
}
$pgtitle = array("System","Package Manager");
@ -71,9 +71,10 @@ include("head.inc");
<div id="mainarea">
<table class="tabcont" width="100%" border="0" cellpadding="6" cellspacing="0">
<tr>
<td width="15%" class="listhdrr">Package Name</td>
<td width="10%" class="listhdrr">Package Name</td>
<td width="20%" class="listhdrr">Category</td>
<td width="10%" class="listhdrr">Package Version</td>
<td width="10%" class="listhdrr">Package Info</td>
<td width="15%" class="listhdrr">Package Version</td>
<td width="45%" class="listhdr">Description</td>
</tr>
<?php
@ -125,6 +126,16 @@ include("head.inc");
<td class="listr">
<?=$pkg['category'];?>
</td>
<td class="listr">
<?php
if($currentvers[$pkg['name']]['pkginfolink']) {
$pkginfolink = $currentvers[$pkg['name']]['pkginfolink'];
echo "<a href='$pkginfolink'>Package Info</a>";
} else {
echo "No info, check the <a href='http://forum.pfsense.org/index.php/board,15.0.html'>forum</a>";
}
?>
</td>
<td class="<?=$tdclass;?>">
<?=$pkgver;?>
</td>
@ -162,4 +173,4 @@ include("head.inc");
<?php include("fend.inc"); ?>
</body>
</html>
<?php conf_mount_ro(); ?>
<?php conf_mount_ro(); ?>