1
0
mirror of https://github.com/e107inc/e107.git synced 2025-02-24 16:52:43 +01:00
php-e107/e107_files/shortcode/admin_icon.sc
2006-12-02 04:36:16 +00:00

12 lines
406 B
Scala

if (ADMIN) {
global $e_sub_cat, $e_icon_array, $PLUGINS_DIRECTORY;
if (strstr(e_SELF, $PLUGINS_DIRECTORY)) {
include('plugin.php');
$icon = ($eplug_icon && file_exists(e_PLUGIN.$eplug_icon)) ? "<img src='".e_PLUGIN.$eplug_icon."' alt='' style='border:0px; width: 32px; height: 32px' />" : E_32_CAT_PLUG;
} else {
$icon = $e_icon_array[$e_sub_cat];
}
return $icon;
} else {
return E_32_LOGOUT;
}