summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2012-06-07 12:14:16 -0400
committerjim-p <jimp@pfsense.org>2012-06-07 12:14:16 -0400
commit364e4f74c3b89f95cd37523f59d32fd410f65fec (patch)
tree60e8a67f6fcde44a065c6e38d7e0475de02ad89e /usr/local
parent0d9c5026ec3b604c80a925de6a37d11e33402c5c (diff)
downloadpfsense-364e4f74c3b89f95cd37523f59d32fd410f65fec.zip
pfsense-364e4f74c3b89f95cd37523f59d32fd410f65fec.tar.gz
Provide a way to disable the pkg info link
Diffstat (limited to 'usr/local')
-rwxr-xr-xusr/local/www/pkg_mgr.php4
-rwxr-xr-xusr/local/www/pkg_mgr_installed.php4
2 files changed, 8 insertions, 0 deletions
diff --git a/usr/local/www/pkg_mgr.php b/usr/local/www/pkg_mgr.php
index 15097a6..8fbba16 100755
--- a/usr/local/www/pkg_mgr.php
+++ b/usr/local/www/pkg_mgr.php
@@ -114,7 +114,9 @@ include("head.inc");
<td width="25%" class="listhdrr"><?=gettext("Category"); ?></td>
<!-- <td width="10%" class="listhdrr">Size</td> -->
<td width="5%" class="listhdrr"><?=gettext("Status"); ?></td>
+ <?php if (! $g['disablepackageinfo']): ?>
<td width="5%" class="listhdrr"><?=gettext("Package Info"); ?></td>
+ <?php endif; ?>
<td width="50%" class="listhdr"><?=gettext("Description"); ?></td>
</tr>
<?php
@@ -193,6 +195,7 @@ include("head.inc");
<br/>
<?=$index['maximum_version'] ?>
</td>
+ <?php if (! $g['disablepackageinfo']): ?>
<td class="listr">
<?php
if($index['pkginfolink']) {
@@ -203,6 +206,7 @@ include("head.inc");
}
?>
</td>
+ <?php endif; ?>
<td class="listbg" class="listbg" style="overflow: hidden;">
<?= $index['descr'] ?>
</td>
diff --git a/usr/local/www/pkg_mgr_installed.php b/usr/local/www/pkg_mgr_installed.php
index 78a3362..f81b466 100755
--- a/usr/local/www/pkg_mgr_installed.php
+++ b/usr/local/www/pkg_mgr_installed.php
@@ -89,7 +89,9 @@ include("head.inc");
<tr>
<td width="10%" class="listhdrr"><?=gettext("Package Name"); ?></td>
<td width="20%" class="listhdrr"><?=gettext("Category"); ?></td>
+ <?php if (! $g['disablepackageinfo']): ?>
<td width="10%" class="listhdrr"><?=gettext("Package Info"); ?></td>
+ <?php endif; ?>
<td width="15%" class="listhdrr"><?=gettext("Package Version"); ?></td>
<td width="45%" class="listhdr"><?=gettext("Description"); ?></td>
</tr>
@@ -143,6 +145,7 @@ include("head.inc");
<td class="listr">
<?=$pkg['category'];?>
</td>
+ <?php if (! $g['disablepackageinfo']): ?>
<td class="listr">
<?php
if($currentvers[$pkg['name']]['pkginfolink']) {
@@ -153,6 +156,7 @@ include("head.inc");
}
?>
</td>
+ <?php endif; ?>
<td class="<?=$tdclass;?>">
<?=$pkgver;?>
</td>
OpenPOWER on IntegriCloud