info['id']); if (!$m->isModerator) { return; } $merror = ''; $uer = ''; $go = isset($_GET['go']) ? round($_GET['go']) : 0; 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']) && $m->canBlockUsers) { $moderation->ban(); } elseif (!empty($_POST['unban']) && $m->canBlockUsers) { $moderation->unban(); } elseif (!empty($_POST['addmoderator']) && $m->isAdmin) { $administration->addmoderator(); } elseif (!empty($_POST['deletemoderator']) && $m->isAdmin) { $administration->removemoderator(); } elseif (!empty($_POST['changegender']) && $m->isAdmin) { $administration->changegender(); } elseif (!empty($_POST['changelogin']) && !empty($_POST['newLogin']) && $m->isAdmin) { $administration->changelogin($_POST['newLogin']); } elseif (!empty($_POST['giveitem']) && !empty($_POST['itemId']) && $m->isAdmin) { $administration->additem((int)$_POST['itemId']); } elseif (!empty($_POST['kickfrombattle']) && $m->isAdmin) { $administration->kickfrombattle(); } elseif (!empty($_POST['toggleinvisibility']) && $m->isAdmin) { $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 ''; if ($go == 3 && $m->isAdmin) { ?>
Редактирование обучающих квестов |
|
= 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; } } ?> |
Редактор заданий |
||||
|