2020-08-29 16:30:11 +00:00
|
|
|
|
<?php
|
2018-02-13 20:02:15 +00:00
|
|
|
|
/**
|
|
|
|
|
* Copyright (c) 2018.
|
|
|
|
|
* Author: Igor Barkov <lopar.4ever@gmail.com>
|
|
|
|
|
* Project name: Battles-Game
|
|
|
|
|
*/
|
2022-06-10 23:17:24 +00:00
|
|
|
|
require_once '../config.php';
|
2021-02-01 01:42:24 +00:00
|
|
|
|
|
2022-05-27 19:19:54 +00:00
|
|
|
|
use Battles\Admin\Clan;
|
2022-06-10 23:17:24 +00:00
|
|
|
|
use Battles\Admin\User as AUser;
|
2022-06-10 21:36:30 +00:00
|
|
|
|
use Battles\Chat;
|
2021-02-01 01:42:24 +00:00
|
|
|
|
use Battles\Moderation;
|
2021-02-01 16:42:52 +00:00
|
|
|
|
use Battles\Template;
|
2021-02-01 01:42:24 +00:00
|
|
|
|
use Battles\User;
|
|
|
|
|
|
2022-01-26 23:15:33 +00:00
|
|
|
|
if (!User::getInstance()->getAdmin()) {
|
2020-08-26 09:21:56 +00:00
|
|
|
|
header("HTTP/1.0 404 Not Found");
|
2018-01-28 19:15:29 +00:00
|
|
|
|
exit;
|
|
|
|
|
}
|
2021-02-01 01:42:24 +00:00
|
|
|
|
if (isset($_GET['sleep'])) {
|
2022-01-26 23:15:33 +00:00
|
|
|
|
Moderation::muteChat(User::getInstance()->getId(), strtotime('15min'));
|
2021-02-01 01:42:24 +00:00
|
|
|
|
}
|
2018-01-28 19:15:29 +00:00
|
|
|
|
|
2021-02-01 01:42:24 +00:00
|
|
|
|
if (isset($_POST['ldnick']) && isset($_POST['ldtext'])) {
|
2022-01-26 23:15:33 +00:00
|
|
|
|
Moderation::addToUserLog(User::getInstance($_POST['ldnick'])->getId(), $_POST['ldtext'], User::getInstance()->getId());
|
2021-02-01 01:42:24 +00:00
|
|
|
|
}
|
2018-01-28 21:22:28 +00:00
|
|
|
|
|
2021-02-01 01:42:24 +00:00
|
|
|
|
if (isset($_POST['syschatmsg'])) {
|
|
|
|
|
Moderation::addChatSysMsg($_POST['syschatmsg']);
|
2018-01-28 21:22:28 +00:00
|
|
|
|
}
|
|
|
|
|
|
2021-02-01 01:42:24 +00:00
|
|
|
|
//clans to reg
|
2022-05-27 19:19:54 +00:00
|
|
|
|
Clan::getUnapprovedList();
|
2021-02-01 01:42:24 +00:00
|
|
|
|
|
|
|
|
|
if (isset($_GET['regclan'])) {
|
2022-05-27 19:19:54 +00:00
|
|
|
|
Clan::allowRegister($_GET['regclan']);
|
2021-02-01 01:42:24 +00:00
|
|
|
|
header('Location:/admin/admin.php');
|
|
|
|
|
exit;
|
|
|
|
|
}
|
|
|
|
|
if (isset($_GET['remclan'])) {
|
2022-05-27 19:19:54 +00:00
|
|
|
|
Clan::disallowRegister($_GET['remclan']);
|
2021-02-01 01:42:24 +00:00
|
|
|
|
header('Location:/admin/admin.php');
|
|
|
|
|
exit;
|
2018-01-28 19:15:29 +00:00
|
|
|
|
}
|
|
|
|
|
|
2021-02-01 01:42:24 +00:00
|
|
|
|
# Телеграф.
|
|
|
|
|
if (!empty($_POST['receiver']) && !empty($_POST['tgmsg'])) {
|
2022-06-10 23:18:04 +00:00
|
|
|
|
Chat::sendTelegraf($_POST['tgmsg'], User::getInstance($_POST['receiver'])->getId());
|
2021-02-01 01:42:24 +00:00
|
|
|
|
echo "Успешно.";
|
|
|
|
|
}
|
2018-01-28 19:15:29 +00:00
|
|
|
|
|
2021-02-01 16:42:52 +00:00
|
|
|
|
Template::header('ᐰdminка');
|
2018-01-28 16:40:49 +00:00
|
|
|
|
?>
|
2020-09-30 22:12:53 +00:00
|
|
|
|
<link rel=stylesheet href="/css/admin.css">
|
2021-02-01 20:53:28 +00:00
|
|
|
|
|
|
|
|
|
<span class="legend">Абилки. Работают только на себя. Надо дописать цель.</span><br>
|
2021-02-01 01:42:24 +00:00
|
|
|
|
<button onclick="location.href='?sleep'"><img src="../i/magic/sleep.gif" alt="sleep"> Молчать 15 мин</button>
|
|
|
|
|
<button disabled><img src="../i/magic/sleep.gif" alt="sleep"> Молчать 1 час</button>
|
|
|
|
|
<button disabled><img src="../i/magic/sleep.gif" alt="sleep"> Молчать 1 день</button>
|
|
|
|
|
<button disabled><img src="../i/magic/sleep.gif" alt="sleep"> Молчать очень долго</button>
|
|
|
|
|
<button disabled><img src="../i/magic/sleep_off.gif" alt="sleep_off"> Снять молчанку</button>
|
|
|
|
|
<br>
|
|
|
|
|
<button disabled><img src="../i/magic/sleepf.gif" alt="sleepf"> Молчать на фомуме 1 час</button>
|
|
|
|
|
<button disabled><img src="../i/magic/sleepf.gif" alt="sleepf"> Молчать на фомуме 1 день</button>
|
|
|
|
|
<button disabled><img src="../i/magic/sleepf.gif" alt="sleepf"> Молчать на фомуме очень долго</button>
|
|
|
|
|
<button disabled><img src="../i/magic/sleepf_off.gif" alt="sleepf_off"> Снять молчанку на фомуме</button>
|
|
|
|
|
<br>
|
|
|
|
|
<button disabled><img src="../i/magic/obezl.gif" alt="obezl"> Сокрыть инфу</button>
|
|
|
|
|
<button disabled><img src="../i/magic/obezl_off.gif" alt="obezl_off"> Снять сокрытие</button>
|
|
|
|
|
<button disabled><img src="../i/magic/death.gif" alt="death"> Заблокировать</button>
|
|
|
|
|
<button disabled><img src="../i/magic/death_off.gif" alt="death_off"> Разблокировать</button>
|
|
|
|
|
<br>
|
2021-02-01 20:53:28 +00:00
|
|
|
|
<button disabled><img src="../i/magic/ct_all.gif" alt="ct_all"> Снять все травмы</button>
|
|
|
|
|
<button disabled><img src="../i/magic/marry.gif" alt="marry"> Свадьба</button>
|
|
|
|
|
<button disabled><img src="../i/magic/unmarry.gif" alt="unmarry"> Развод</button>
|
|
|
|
|
<button disabled><img src="../i/magic/bexit.gif" alt="bexit"> Выйти из боя</button>
|
|
|
|
|
<button disabled><img src="../i/magic/check.gif" alt="check"> Проверка</button>
|
2018-01-28 19:15:29 +00:00
|
|
|
|
|
|
|
|
|
<form method='post'>
|
2022-06-10 23:18:04 +00:00
|
|
|
|
<fieldset>
|
|
|
|
|
<legend>Добавить в «дело» игрока заметку о нарушении правил, прокрутке и пр.</legend>
|
|
|
|
|
<label>
|
|
|
|
|
<input name='ldnick' placeholder='Логин'>
|
|
|
|
|
</label>
|
|
|
|
|
<label>
|
|
|
|
|
<input name='ldtext' size='50' placeholder='Сообщение'>
|
|
|
|
|
</label>
|
|
|
|
|
<input type='submit' value='Добавить'><br>
|
|
|
|
|
</fieldset>
|
2018-01-28 19:15:29 +00:00
|
|
|
|
</form>
|
|
|
|
|
<form method='post'>
|
2022-06-10 23:18:04 +00:00
|
|
|
|
<fieldset>
|
2018-01-28 19:15:29 +00:00
|
|
|
|
<legend>Отправить системное сообщение в чат</legend>
|
2022-06-10 23:18:04 +00:00
|
|
|
|
<label>
|
|
|
|
|
<input name='syschatmsg' size='74' placeholder='Введите сообщение'>
|
|
|
|
|
</label>
|
|
|
|
|
<input type='submit' value='Отправить'>
|
|
|
|
|
</fieldset>
|
2018-01-28 19:15:29 +00:00
|
|
|
|
</form>
|
|
|
|
|
<form method='post'>
|
2022-06-10 23:18:04 +00:00
|
|
|
|
<fieldset>
|
2018-01-28 19:15:29 +00:00
|
|
|
|
<legend>Телеграф</legend>
|
2022-06-10 23:18:04 +00:00
|
|
|
|
<label>
|
|
|
|
|
<input name='receiver' placeholder='Логин'>
|
|
|
|
|
</label>
|
|
|
|
|
<label>
|
|
|
|
|
<input name='tgmsg' size='50' placeholder='Сообщение'>
|
|
|
|
|
</label>
|
|
|
|
|
<input type='submit' value='Отправить'>
|
|
|
|
|
</fieldset>
|
2018-01-28 19:15:29 +00:00
|
|
|
|
</form>
|
|
|
|
|
<form method='post'>
|
2022-06-10 23:18:04 +00:00
|
|
|
|
<fieldset>
|
2018-01-28 19:15:29 +00:00
|
|
|
|
<legend>Поменять статус</legend>
|
2022-06-10 23:18:04 +00:00
|
|
|
|
<label>
|
|
|
|
|
<input name='login' placeholder='Логин'>
|
|
|
|
|
</label>
|
|
|
|
|
<label>
|
|
|
|
|
<input name='status' placeholder='Статус'>
|
|
|
|
|
</label>
|
|
|
|
|
<input type='submit' value='Изменить статус'>
|
|
|
|
|
</fieldset>
|
2018-01-28 19:15:29 +00:00
|
|
|
|
</form>
|
|
|
|
|
|
2021-02-01 20:53:28 +00:00
|
|
|
|
<span class="legend">Невидимки</span><br>
|
2022-06-10 23:17:24 +00:00
|
|
|
|
<div class="abils" style="width: fit-content; font-weight: bold;"><?= AUser::getInvisiblesList() ?></div>
|