@ -7,6 +7,7 @@
*/
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/usergroup.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/config/settings.inc.php');
// Diese Funktion muss in ein Darstellungspackage hinein und muss noch verlegt werden, Gestaltung in css-Datei
@ -27,14 +28,16 @@ function displayUserNameByID($userid, $showClanTags = TRUE){
$sql = 'select nickname, user.id as userid, clan.clanz_pre, clan.clanz_suff from user left join clan on user.clan = clan.id where user.id = '.$userid;
$user_info = mysql_fetch_assoc(mysql_query($sql));
if(isUserInGroup($groups, admin)){
$color = 'style="color:'.$GLOBALS['COLOR_GM'].'"';
} else if(isUserInGroup($groups, entwickler)){
$color = 'style="color:'.$GLOBALS['COLOR_DEVELOPER'].'"';
} else if(isUserInGroup($groups, designer)){
$color = 'style="color:'.$GLOBALS['COLOR_CREATIVE'].'"';
} else if(isUserInGroup($groups, Werbung_an)){
$color = 'style="color:'.$GLOBALS['COLOR_SUPPORTER'].'"';
if(isUserInGroup($usergroups, Werbung_an)){
if(isUserInGroup($groups, admin)){
$color = 'style="color:'.$GLOBALS['COLOR_GM'].'"';
} else if(isUserInGroup($groups, entwickler)){
$color = 'style="color:'.$GLOBALS['COLOR_DEVELOPER'].'"';
} else if(isUserInGroup($groups, designer)){
$color = 'style="color:'.$GLOBALS['COLOR_CREATIVE'].'"';
} else {
$color = 'style="color:'.$GLOBALS['COLOR_SUPPORTER'].'"';
}
} else{
$color = '';
}