summaryrefslogtreecommitdiffstats
path: root/usr/local/www
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2008-11-17 23:49:39 +0000
committerChris Buechler <cmb@pfsense.org>2008-11-17 23:49:39 +0000
commit0b4cc96205d4153fdd2ee3eb23b898b826af950b (patch)
tree9b1530e03ead889cc8ce92b4e205f21d925383d6 /usr/local/www
parent0a28e1fab070773b7a58a5faa106ab5a2effe5f1 (diff)
downloadpfsense-0b4cc96205d4153fdd2ee3eb23b898b826af950b.zip
pfsense-0b4cc96205d4153fdd2ee3eb23b898b826af950b.tar.gz
show <pkginfolink> for installed packages
Diffstat (limited to 'usr/local/www')
-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 633d5ec..5557d45 100755
--- a/usr/local/www/pkg_mgr_installed.php
+++ b/usr/local/www/pkg_mgr_installed.php
@@ -34,7 +34,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 = "System: Package Manager";
@@ -62,9 +62,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
@@ -83,6 +84,16 @@ include("head.inc");
<td class="listlr">
<?= $pkg['category'] ?>
</td>
+ <td class="listlr">
+ <?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>
<?php
$latest_package = $currentvers[$pkg['name']]['version'];
if($latest_package == false) {
@@ -134,4 +145,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