summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-01-29 07:46:30 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-01-29 07:46:30 +0000
commit76341f29ebacd0ccd3dcb947f86ed6b03f68f0e9 (patch)
tree7cedf05dcc1ada458261286d32385f3e6db631de
parentf417ddcc60a17ee4783733a383b322bcba5c683b (diff)
downloadpfsense-76341f29ebacd0ccd3dcb947f86ed6b03f68f0e9.zip
pfsense-76341f29ebacd0ccd3dcb947f86ed6b03f68f0e9.tar.gz
MFC 9807
* Add 'maintainer' to requested package fields. * Create mailto:// link if maintainer is valid, otherwise use plain 'Unknown'.
-rwxr-xr-xusr/local/www/pkg_mgr.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/usr/local/www/pkg_mgr.php b/usr/local/www/pkg_mgr.php
index a1a3a66..f5ce713 100755
--- a/usr/local/www/pkg_mgr.php
+++ b/usr/local/www/pkg_mgr.php
@@ -30,7 +30,7 @@
require_once("guiconfig.inc");
require_once("pkg-utils.inc");
-$pkg_info = get_pkg_info('all', array('name', 'category', 'website', 'version', 'status', 'descr'));
+$pkg_info = get_pkg_info('all', array('name', 'category', 'website', 'version', 'status', 'descr', 'maintainer'));
if($pkg_info) {
$fout = fopen("{$g['tmp_path']}/pkg_info.cache", "w");
fwrite($fout, serialize($pkg_info));
@@ -127,6 +127,15 @@ include("fbegin.inc");
<br>
<?= $index['version'] ?>
</td>
+ <td class="listlr">
+ <?php
+ if($index['maintainer'] != "") {
+ echo "<a href='{$index['maintainer']}'>{$index['maintainer']}</a>";
+ } else {
+ echo "Unknown";
+ }
+ ?>
+ </td>
<td class="listbg">
<font color="#ffffff">
<?= $index['maintainer'] ?>
OpenPOWER on IntegriCloud