From f7310250f9b2745f28c51226977ddcb0a18b70fd Mon Sep 17 00:00:00 2001 From: hecht Date: Thu, 1 Sep 2011 08:27:57 +0000 Subject: [PATCH] okay, one typo and one forgotten include -.- --- ag/include/designfunctions.inc.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/ag/include/designfunctions.inc.php b/ag/include/designfunctions.inc.php index 194ec2c..e80cac8 100644 --- a/ag/include/designfunctions.inc.php +++ b/ag/include/designfunctions.inc.php @@ -6,6 +6,9 @@ * */ +include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/usergroup.inc.php'); + + // Diese Funktion muss in ein Darstellungspackage hinein und muss noch verlegt werden, Gestaltung in css-Datei /** @@ -24,13 +27,13 @@ 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)){ + if(isUserInGroup($groups, admin)){ $color = 'style="color:'.$GLOBALS['COLOR_GM'].'"'; - } else if(isUserInGroup(groups, entwickler)){ + } else if(isUserInGroup($groups, entwickler)){ $color = 'style="color:'.$GLOBALS['COLOR_DEVELOPER'].'"'; - } else if(isUserInGroup(groups, designer)){ + } else if(isUserInGroup($groups, designer)){ $color = 'style="color:'.$GLOBALS['COLOR_CREATIVE'].'"'; - } else if(isUserInGroup(groups, Werbung_an)){ + } else if(isUserInGroup($groups, Werbung_an)){ $color = 'style="color:'.$GLOBALS['COLOR_SUPPORTER'].'"'; } else{ $color = '';