summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2012-06-07 12:13:12 -0400
committerjim-p <jimp@pfsense.org>2012-06-07 12:13:12 -0400
commit93888ad9ffac90b4dce8d31eda2571d82dd52f38 (patch)
tree63ffb5d3a032019f8b626b62800f4b5ee8409d4b /usr
parentdb0d446fd4eadc5e22c8917f1e12a30deb3865f2 (diff)
downloadpfsense-93888ad9ffac90b4dce8d31eda2571d82dd52f38.zip
pfsense-93888ad9ffac90b4dce8d31eda2571d82dd52f38.tar.gz
Provide a way to disable the pkg info link
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/pkg_mgr.php5
-rwxr-xr-xusr/local/www/pkg_mgr_installed.php5
2 files changed, 8 insertions, 2 deletions
diff --git a/usr/local/www/pkg_mgr.php b/usr/local/www/pkg_mgr.php
index 9e2c483..b8d943c 100755
--- a/usr/local/www/pkg_mgr.php
+++ b/usr/local/www/pkg_mgr.php
@@ -230,8 +230,11 @@ include("head.inc");
<?=$index['maximum_version'] ?>
</td>
<td class="listbg" style="overflow:hidden; text-align:justify;" <?=domTT_title(gettext("Click package info for more details about ".ucfirst($index['name'])." package."))?>>
- <?= $index['descr'] ?><br><br>
+ <?= $index['descr'] ?>
+ <?php if (! $g['disablepackageinfo']): ?>
+ <br><br>
<a target='_new' href='<?=$pkginfolink?>' style='align:center;color:#ffffff; filter:Glow(color=#ff0000, strength=12);'><?=$pkginfo?></a>
+ <?php endif; ?>
</td>
<td valign="middle" class="list" nowrap width="17">
<a onclick="return confirm('<?=gettext("Do you really want to install ".ucfirst($index['name'])." package?"); ?>')" href="pkg_mgr_install.php?id=<?=$index['name'];?>"><img <?=domTT_title(gettext("Install ".ucfirst($index['name'])." package."))?> src="./themes/<?= $g['theme']; ?>/images/icons/icon_plus.gif" width="17" height="17" border="0"></a>
diff --git a/usr/local/www/pkg_mgr_installed.php b/usr/local/www/pkg_mgr_installed.php
index f2345d7..75979ed 100755
--- a/usr/local/www/pkg_mgr_installed.php
+++ b/usr/local/www/pkg_mgr_installed.php
@@ -197,8 +197,11 @@ include("head.inc");
echo "<td class='{$tdclass}' ".domTT_title(gettext("Click on ".ucfirst($pkg['name'])." version to check it's changelog."),"return").">{$pkgver}</td>";
?>
<td class="listbg" style="overflow:hidden; text-align:justify;" <?=domTT_title(gettext("Click package info for more details about ".ucfirst($pkg['name'])." package."))?>>
- <?=$currentvers[$pkg['name']]['descr'];?><br><br>
+ <?=$currentvers[$pkg['name']]['descr'];?>
+ <?php if (! $g['disablepackageinfo']): ?>
+ <br><br>
<a target='_new' href='<?=$pkginfolink?>' style='align:center;color:#ffffff; filter:Glow(color=#ff0000, strength=12);'><?=$pkginfo?></a>
+ <?php endif; ?>
</td>
<td valign="middle" class="list" nowrap>
<a onclick="return confirm('<?=gettext("Do you really want to remove {$pkg['name']} package?"); ?>')" href="pkg_mgr_install.php?mode=delete&pkg=<?= $pkg['name']; ?>">
OpenPOWER on IntegriCloud