diff options
author | jim-p <jimp@pfsense.org> | 2012-06-07 12:13:12 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2012-06-07 12:13:12 -0400 |
commit | 93888ad9ffac90b4dce8d31eda2571d82dd52f38 (patch) | |
tree | 63ffb5d3a032019f8b626b62800f4b5ee8409d4b /usr | |
parent | db0d446fd4eadc5e22c8917f1e12a30deb3865f2 (diff) | |
download | pfsense-93888ad9ffac90b4dce8d31eda2571d82dd52f38.zip pfsense-93888ad9ffac90b4dce8d31eda2571d82dd52f38.tar.gz |
Provide a way to disable the pkg info link
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/pkg_mgr.php | 5 | ||||
-rwxr-xr-x | usr/local/www/pkg_mgr_installed.php | 5 |
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']; ?>"> |