Topic: [Extension] Hide Currently Installed
Hide Currently Installed
Release 0.5.2
Extension to hide the list of currently installed extensions.
Example: Can be useful for hiding unofficial extensions that may have security holes
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE extension SYSTEM "ext-1.0.dtd">
<extension engine="1.0">
<id>hide_currently_installed</id>
<title>Hide Currently Installed</title>
<version>0.5.2</version>
<description>Hide Currently Installed</description>
<author>KeyDog</author>
<minversion>1.3</minversion>
<maxtestedon>1.4.1</maxtestedon>
<hooks>
<hook id="co_common"><![CDATA[
$pun_extensions_used = array_merge(isset($pun_extensions_used) ? $pun_extensions_used : array(), array($ext_info['id']));
]]></hook>
<hook id="ft_about_end" priority="1"><![CDATA[
if (!defined('PUN_EXTENSIONS_USED') && !empty($pun_extensions_used))
{
define('PUN_EXTENSIONS_USED', 1);
if (count($pun_extensions_used) == 1)
echo '<p style="clear: both; "></a>.</p>';
else
echo '<p style="clear: both; "></a></p>';
}
]]></hook>
</hooks>
</extension>