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