summaryrefslogtreecommitdiffstats
path: root/usr/local/www/pkg_mgr_installed.php
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2008-11-17 23:45:36 +0000
committerChris Buechler <cmb@pfsense.org>2008-11-17 23:45:36 +0000
commitb24697f91078fd2d874bd849210c5d3a8a4841aa (patch)
tree1d27f044150412d1b2d29a27de25731c7f47a843 /usr/local/www/pkg_mgr_installed.php
parenteac7d67cc5806acd54bbb040c27d744b96e4de5b (diff)
downloadpfsense-b24697f91078fd2d874bd849210c5d3a8a4841aa.zip
pfsense-b24697f91078fd2d874bd849210c5d3a8a4841aa.tar.gz
show <pkginfolink> for installed packages
Diffstat (limited to 'usr/local/www/pkg_mgr_installed.php')
-rwxr-xr-xusr/local/www/pkg_mgr_installed.php19
1 files changed, 15 insertions, 4 deletions
diff --git a/usr/local/www/pkg_mgr_installed.php b/usr/local/www/pkg_mgr_installed.php
index a13b281..0452d56 100755
--- a/usr/local/www/pkg_mgr_installed.php
+++ b/usr/local/www/pkg_mgr_installed.php
@@ -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(); ?> \ No newline at end of file
OpenPOWER on IntegriCloud