From 0a5750dc0f6a63cbca648b4678aa4770a421339c Mon Sep 17 00:00:00 2001 From: hecht Date: Sun, 11 Dec 2011 14:42:30 +0000 Subject: [PATCH] make group colors adjustable in panel !! --- ag/include/designfunctions.inc.php | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/ag/include/designfunctions.inc.php b/ag/include/designfunctions.inc.php index 7ef3275..954bf7d 100644 --- a/ag/include/designfunctions.inc.php +++ b/ag/include/designfunctions.inc.php @@ -6,9 +6,14 @@ * */ +include_once(ROOT_PATH.'/include/defines.inc.php'); include_once(ROOT_PATH.'/include/usergroup.inc.php'); include_once(ROOT_PATH.'/include/config/settings.inc.php'); +defineIfNotDefined('GROUP_COLOR_SUPPORTER', 'gold'); +defineIfNotDefined('GROUP_COLOR_GAMEMASTER', 'lime'); +defineIfNotDefined('GROUP_COLOR_DEVELOPER', 'orange'); +defineIfNotDefined('GROUP_COLOR_CREATIVE', 'red'); // Diese Funktion muss in ein Darstellungspackage hinein und muss noch verlegt werden, Gestaltung in css-Datei @@ -38,13 +43,13 @@ function generateUserNameByID($userid, $showClanTags = TRUE){ $user_info = mysql_fetch_assoc(mysql_query($sql)); if(isUserInGroup($groups, WERBUNG_AN)){ if(isUserInGroup($groups, ADMIN)){ - $color = 'style="color:'.$GLOBALS['COLOR_GM'].'"'; + $color = 'style="color:'.GROUP_COLOR_GAMEMASTER.'"'; } else if(isUserInGroup($groups, ENTWICKLER)){ - $color = 'style="color:'.$GLOBALS['COLOR_DEVELOPER'].'"'; + $color = 'style="color:'.GROUP_COLOR_DEVELOPER.'"'; } else if(isUserInGroup($groups, DESIGNER)){ - $color = 'style="color:'.$GLOBALS['COLOR_CREATIVE'].'"'; + $color = 'style="color:'.GROUP_COLOR_CREATIVE.'"'; } else { - $color = 'style="color:'.$GLOBALS['COLOR_SUPPORTER'].'"'; + $color = 'style="color:'.GROUP_COLOR_SUPPORTER.'"'; } } else{ $color = '';