1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-11 17:14:42 +02:00

More imode removal

This commit is contained in:
CaMer0n
2009-07-07 07:39:35 +00:00
parent 04f3934852
commit 4c92b4f417
7 changed files with 16 additions and 21 deletions

View File

@@ -2,7 +2,7 @@
//EXAMPLE: {USER_EXTENDED=user_gender.value.5} will show the value of the extended field user_gender for user #5
include(e_LANGUAGEDIR.e_LANGUAGE."/lan_user_extended.php");
$parms = explode(".", $parm);
global $currentUser, $tp, $loop_uid, $e107, $imode, $sc_style;
global $currentUser, $tp, $loop_uid, $e107, $sc_style;
if(isset($loop_uid) && intval($loop_uid) == 0) { return ""; }
$key = $parms[0].".".$parms[1];
$sc_style['USER_EXTENDED']['pre'] = (isset($sc_style['USER_EXTENDED'][$key]['pre']) ? $sc_style['USER_EXTENDED'][$key]['pre'] : "");
@@ -81,9 +81,9 @@ if ($parms[1] == 'icon')
{
return constant(strtoupper($parms[0])."_ICON");
}
elseif(file_exists(e_IMAGE."packs/".$imode."/user_icons/{$parms[0]}.png"))
elseif(file_exists(e_IMAGE."user_icons/{$parms[0]}.png"))
{
return "<img src='".e_IMAGE."packs/".$imode."/user_icons/{$parms[0]}.png' style='width:16px; height:16px' alt='' />";
return "<img src='".e_IMAGE."user_icons/{$parms[0]}.png' style='width:16px; height:16px' alt='' />";
}
return "";
}