mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
show <pkginfolink> for installed packages
This commit is contained in:
parent
eac7d67cc5
commit
b24697f910
@ -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(); ?>
|
||||
Loading…
Reference in New Issue
Block a user