dev #41
@ -172,14 +172,14 @@ INFO;
|
|||||||
$effects = new EffectsModel($this->id);
|
$effects = new EffectsModel($this->id);
|
||||||
|
|
||||||
if ($this->block && (!$this->watcherIsAdmin || !$this->watcherIsModerator)) {
|
if ($this->block && (!$this->watcherIsAdmin || !$this->watcherIsModerator)) {
|
||||||
throw new GameException('<span class="error">Персонаж ' . $this->login . ' заблокирован!</span>');
|
echo "<span class='error'>Персонаж $this->login заблокирован!</span>";
|
||||||
} elseif ($effects->getHideUserInfoStatus() && (!$this->watcherIsAdmin || !$this->watcherIsModerator)) {
|
} elseif ($effects->getHideUserInfoStatus() && (!$this->watcherIsAdmin || !$this->watcherIsModerator)) {
|
||||||
if ($effects->getHideUserInfoStatus() == -1) {
|
if ($effects->getHideUserInfoStatus() == -1) {
|
||||||
$date = 'навсегда';
|
$date = 'навсегда';
|
||||||
} else {
|
} else {
|
||||||
$date = 'до' . date('d.m.Y', strtotime($effects->getHideUserInfoStatus()));
|
$date = 'до' . date('d.m.Y', strtotime($effects->getHideUserInfoStatus()));
|
||||||
}
|
}
|
||||||
throw new GameException('<span class="error">Персонаж ' . $this->login . ' обезличен ' . $date . '.</span>');
|
echo "<span class='error'>Персонаж $this->login обезличен $date.</span>";
|
||||||
} else {
|
} else {
|
||||||
$this->Info();
|
$this->Info();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user