@ -86,34 +86,34 @@ function changeProfil($user, $usergroups, $new_pw, $new_nick, $new_nick2, $alt_p
}
}
if($chat == 1) {
if($chat == 1) {
if(!isUserInGroup($usergroups, aktiv_chat )) {
if(!isUserInGroup($usergroups, AKTIV_CHAT )) {
addUserToGroup($user['nickname'], aktiv_chat );
addUserToGroup($user['nickname'], AKTIV_CHAT );
}
}
} else {
} else {
if(isUserInGroup($usergroups, aktiv_chat )) {
if(isUserInGroup($usergroups, AKTIV_CHAT )) {
removeUserFromGroup($user['nickname'], aktiv_chat );
removeUserFromGroup($user['nickname'], AKTIV_CHAT );
}
}
}
}
if($ads == 1) {
if($ads == 1) {
if(!isUserInGroup($usergroups, Werbung_an )) {
if(!isUserInGroup($usergroups, WERBUNG_AN )) {
addUserToGroup($user['nickname'], Werbung_an );
addUserToGroup($user['nickname'], WERBUNG_AN );
}
}
} else {
} else {
if(isUserInGroup($usergroups, Werbung_an )) {
if(isUserInGroup($usergroups, WERBUNG_AN )) {
removeUserFromGroup($user['nickname'], Werbung_an );
removeUserFromGroup($user['nickname'], WERBUNG_AN );
}
}
}
}
if($acc_delete == 1) {
if($acc_delete == 1) {
if(!isUserInGroup($usergroups, aktiv_loeschschutz )) {
if(!isUserInGroup($usergroups, AKTIV_LOESCHSCHUTZ )) {
addUserToGroup($user['nickname'], aktiv_loeschschutz );
addUserToGroup($user['nickname'], AKTIV_LOESCHSCHUTZ );
removeUserFromGroup($user['nickname'], inaktiv_loeschschutz );
removeUserFromGroup($user['nickname'], INAKTIV_LOESCHSCHUTZ );
}
}
} else if($acc_delete == 0) {
} else if($acc_delete == 0) {
if(isUserInGroup($usergroups, aktiv_loeschschutz )) {
if(isUserInGroup($usergroups, AKTIV_LOESCHSCHUTZ )) {
removeUserFromGroup($user['nickname'], aktiv_loeschschutz );
removeUserFromGroup($user['nickname'], AKTIV_LOESCHSCHUTZ );
addUserToGroup($user['nickname'], inaktiv_loeschschutz );
addUserToGroup($user['nickname'], INAKTIV_LOESCHSCHUTZ );
}
}
}
}
@ -200,7 +200,7 @@ function display($user, $usergroups){
< tr >
< tr >
< th align = "center" > Chat:< / th >
< th align = "center" > Chat:< / th >
< td > <?php
< td > <?php
if(isUserInGroup($usergroups, aktiv_chat )) {
if(isUserInGroup($usergroups, AKTIV_CHAT )) {
$che1 = 'checked="checked"';
$che1 = 'checked="checked"';
$che2 = '';
$che2 = '';
} else{
} else{
@ -218,10 +218,10 @@ function display($user, $usergroups){
$che1 = '';
$che1 = '';
$che2 = '';
$che2 = '';
if(isUserInGroup($usergroups, inaktiv_loeschschutz )){
if(isUserInGroup($usergroups, INAKTIV_LOESCHSCHUTZ )){
$che1 = '';
$che1 = '';
$che2 = 'checked="checked"';
$che2 = 'checked="checked"';
} else if (isUserInGroup($usergroups, aktiv_loeschschutz )){
} else if (isUserInGroup($usergroups, AKTIV_LOESCHSCHUTZ )){
$che1 = 'checked="checked"';
$che1 = 'checked="checked"';
$che2 = '';
$che2 = '';
} else {
} else {