info['id']); if (!$m->isModerator) { return; } $rang = 'Модератор'; if (isset($_GET['remod'])) { if ($_GET['remod'] == 1) { $_SESSION['remod'] = 3; } else { $_SESSION['remod'] = 1; } } $merror = ''; $uer = ''; if (!empty($_POST['logingo'])) { $moderation = new ModFactory( strip_tags($_POST['logingo']), empty($_POST['modReason']) ? '' : $_POST['modReason'], $u->info['room'], ); $administration = new AdmFactory( strip_tags($_POST['logingo']) ); if (!empty($_POST['silence']) && !empty($_POST['time'])) { $moderation->silence($_POST['time']); } elseif (!empty($_POST['unsilence'])) { $moderation->unsilence(); } elseif (!empty($_POST['prison']) && !empty($_POST['time'])) { $moderation->prison($_POST['time']); } elseif (!empty($_POST['unprison'])) { $moderation->unprison(); } elseif (!empty($_POST['depersonalize']) && !empty($_POST['time'])) { $moderation->depersonalize($_POST['time']); } elseif (!empty($_POST['undepersonalize'])) { $moderation->undepersonalize(); } elseif (!empty($_POST['ban'])) { $moderation->ban(); } elseif (!empty($_POST['unban'])) { $moderation->unban(); } elseif (!empty($_POST['addmoderator'])) { $administration->addmoderator(); } elseif (!empty($_POST['deletemoderator'])) { $administration->removemoderator(); } elseif (!empty($_POST['changegender'])) { $administration->changegender(); } elseif (!empty($_POST['changelogin']) && !empty($_POST['newLogin'])) { $administration->changelogin($_POST['newLogin']); } elseif (!empty($_POST['giveitem']) && !empty($_POST['itemId'])) { $administration->additem((int)$_POST['itemId']); } elseif (!empty($_POST['kickfrombattle'])) { $administration->kickfrombattle(); } elseif (!empty($_POST['toggleinvisibility'])) { $administration->toggleinvisibility(); } if (!empty($moderation->status)) { $uer = $moderation->status; } elseif (!empty($administration->status)) { $uer = $administration->status; } } if (!empty($_POST['marrypartner1']) && !empty($_POST['marrypartner2'])) { if (!empty($_POST['marry'])) { $uer = 'marry: Not available'; } elseif (!empty($_POST['unmarry'])) { $uer = 'unmarry: Not available'; } } echo ''; $go = 0; if (isset($_GET['go'])) { $go = round($_GET['go']); } if ($go == 3 && $u->info['admin'] > 0) { ?>
Редактирование обучающих квестов |
|
= empty($merror) ? '' : "$merror" ?>
Квест не найден.>';
}
} else {
echo 'Добавить новый квест '; if (isset($_GET['del'])) { Db::sql('delete from an_quest where id = ?', [(int)$_GET['del']]); } elseif (isset($_GET['add'])) { Db::sql('insert into an_quest (id) values (default)'); } foreach (Db::getRows('select id, name, sex from an_quest') as ['id' => $qid, 'name' => $qname, 'sex' => $qsex]) { $qsex = $sx[$qsex]; echo << $qid $qname($qsex) Изменить Удалить HTML; } } ?> |
Редактор заданий |
||||
|