make group colors adjustable in panel !!

main
hecht 13 years ago
parent 1318a84ea1
commit 0a5750dc0f

@ -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/usergroup.inc.php');
include_once(ROOT_PATH.'/include/config/settings.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 // 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)); $user_info = mysql_fetch_assoc(mysql_query($sql));
if(isUserInGroup($groups, WERBUNG_AN)){ if(isUserInGroup($groups, WERBUNG_AN)){
if(isUserInGroup($groups, ADMIN)){ if(isUserInGroup($groups, ADMIN)){
$color = 'style="color:'.$GLOBALS['COLOR_GM'].'"'; $color = 'style="color:'.GROUP_COLOR_GAMEMASTER.'"';
} else if(isUserInGroup($groups, ENTWICKLER)){ } else if(isUserInGroup($groups, ENTWICKLER)){
$color = 'style="color:'.$GLOBALS['COLOR_DEVELOPER'].'"'; $color = 'style="color:'.GROUP_COLOR_DEVELOPER.'"';
} else if(isUserInGroup($groups, DESIGNER)){ } else if(isUserInGroup($groups, DESIGNER)){
$color = 'style="color:'.$GLOBALS['COLOR_CREATIVE'].'"'; $color = 'style="color:'.GROUP_COLOR_CREATIVE.'"';
} else { } else {
$color = 'style="color:'.$GLOBALS['COLOR_SUPPORTER'].'"'; $color = 'style="color:'.GROUP_COLOR_SUPPORTER.'"';
} }
} else{ } else{
$color = ''; $color = '';

Loading…
Cancel
Save