|
@@ -86,7 +86,7 @@ abstract class Users extends Admin
|
|
|
});
|
|
|
|
|
|
if (! empty($bad)) {
|
|
|
- $this->fIswev = ['v', 'Action not available'];
|
|
|
+ $this->fIswev = [FORK_MESS_VLD, 'Action not available'];
|
|
|
|
|
|
return false;
|
|
|
}
|
|
@@ -102,16 +102,16 @@ abstract class Users extends Admin
|
|
|
switch ($action) {
|
|
|
case self::ACTION_BAN:
|
|
|
if ($this->c->bans->banFromName($user->username) > 0) {
|
|
|
- $this->fIswev = ['i', ['User is ban', $user->username]];
|
|
|
+ $this->fIswev = [FORK_MESS_INFO, ['User is ban', $user->username]];
|
|
|
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
if (! $this->c->userRules->canBanUser($user)) {
|
|
|
- $this->fIswev = ['v', ['You are not allowed to ban the %s', $user->username]];
|
|
|
+ $this->fIswev = [FORK_MESS_VLD, ['You are not allowed to ban the %s', $user->username]];
|
|
|
|
|
|
if ($user->isAdmMod) {
|
|
|
- $this->fIswev = ['i', 'No ban admins message'];
|
|
|
+ $this->fIswev = [FORK_MESS_INFO, 'No ban admins message'];
|
|
|
}
|
|
|
|
|
|
return false;
|
|
@@ -120,10 +120,10 @@ abstract class Users extends Admin
|
|
|
break;
|
|
|
case self::ACTION_DEL:
|
|
|
if (! $this->c->userRules->canDeleteUser($user)) {
|
|
|
- $this->fIswev = ['v', ['You are not allowed to delete the %s', $user->username]];
|
|
|
+ $this->fIswev = [FORK_MESS_VLD, ['You are not allowed to delete the %s', $user->username]];
|
|
|
|
|
|
if ($user->isAdmMod) {
|
|
|
- $this->fIswev = ['i', 'No delete admins message'];
|
|
|
+ $this->fIswev = [FORK_MESS_INFO, 'No delete admins message'];
|
|
|
}
|
|
|
|
|
|
return false;
|
|
@@ -132,10 +132,10 @@ abstract class Users extends Admin
|
|
|
break;
|
|
|
case self::ACTION_CHG:
|
|
|
if (! $this->c->userRules->canChangeGroup($user, $profile)) {
|
|
|
- $this->fIswev = ['v', ['You are not allowed to change group for %s', $user->username]];
|
|
|
+ $this->fIswev = [FORK_MESS_VLD, ['You are not allowed to change group for %s', $user->username]];
|
|
|
|
|
|
if ($user->isAdmin) {
|
|
|
- $this->fIswev = ['i', 'No move admins message'];
|
|
|
+ $this->fIswev = [FORK_MESS_INFO, 'No move admins message'];
|
|
|
}
|
|
|
|
|
|
return false;
|
|
@@ -143,7 +143,7 @@ abstract class Users extends Admin
|
|
|
|
|
|
break;
|
|
|
default:
|
|
|
- $this->fIswev = ['v', 'Action not available'];
|
|
|
+ $this->fIswev = [FORK_MESS_VLD, 'Action not available'];
|
|
|
|
|
|
return false;
|
|
|
}
|
|
@@ -151,12 +151,12 @@ abstract class Users extends Admin
|
|
|
$result[] = $user->id;
|
|
|
|
|
|
if ($user->id === $this->user->id) {
|
|
|
- $this->fIswev = ['i', 'You are trying to change your own group'];
|
|
|
+ $this->fIswev = [FORK_MESS_INFO, 'You are trying to change your own group'];
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (empty($result)) {
|
|
|
- $this->fIswev = ['v', 'No users selected'];
|
|
|
+ $this->fIswev = [FORK_MESS_VLD, 'No users selected'];
|
|
|
|
|
|
return false;
|
|
|
}
|