Moderator options

This commit is contained in:
lopar 2018-11-01 01:26:14 +02:00
parent 2b6466b58c
commit 708bf417be

View File

@ -416,7 +416,7 @@ if (isset($_GET['do']) && $isModerator == true) {
$close = "<a href='?topic={$_GET['topic']}&do=close'>🔒Закрыть</a>"; $close = "<a href='?topic={$_GET['topic']}&do=close'>🔒Закрыть</a>";
} }
if ($row['fix'] == 1) { if ($row['fix'] == 1) {
$fix = "<a href='?topic={$_GET['topic']}&do=unfix'>Открепить</a>"; $fix = "<a href='?topic={$_GET['topic']}&do=unfix'>📄Открепить</a>";
} else { } else {
$fix = "<a href='?topic={$_GET['topic']}&do=fix'>📌Прикрепить</a>"; $fix = "<a href='?topic={$_GET['topic']}&do=fix'>📌Прикрепить</a>";
} }
@ -453,28 +453,29 @@ if (isset($_GET['do']) && $isModerator == true) {
echo $pages_str; echo $pages_str;
?> ?>
<div class="rc6 mBodyBlock" id="leaf<?= $row['id'] ?>"> <div id="leaf<?= $row['id'] ?>">
<span class="topicTitle"> <span class="topicTitle">
<img height=15 src="i/forum/icon<?= $icons ?>.gif" width=15 border=0/> <img src="i/forum/icon<?= $icons ?>.gif"> <?= $row['topic'] ?>
<a href='?'><?= $row['topic'] ?></a> </span>
</span>
<div class="auth_str"> <div class="auth_str">
"<?= $row['author'] ?>" <?= $row['author'] ?><span class="date">(<?= $row['date'] ?>)</span>
<div class="date_abs">("<?= $row['date'] ?>")</div>
<a href='#' class='cite' onclick="add_cites(<?= $row['id'] ?>);" title="Цитата"> <a href='#' class='cite' onclick="add_cites(<?= $row['id'] ?>);" title="Цитата">
<img src="i/forum/icon13.gif"/> <small>Цитировать</small>
</a> </a>
<?php if ($isAdmin): ?> <?php if ($isAdmin): ?>
<a href="javascript:void(0);" class="contact" id="<?= $row['id'] ?>"><img | <a href="javascript:void(0);" class="contact" id="<?= $row['id'] ?>">
src="i/forum/edit.png"></a> <small>Редактировать</small>
</a>
<?php endif; ?> <?php endif; ?>
<?php if ($isModerator AND isset($_GET['conf']) AND isset($_GET['page'])): ?> <?php if ($isModerator AND (isset($_GET['conf']) OR isset($_GET['page']))): ?>
<a href="?topic=<?= $_GET['topic'] ?>&konftop=<?= htmlspecialchars($_GET['conf']) ?>&page=<?= $_GET['page'] ?>&dp=<?= $row['id'] ?>"> <a href="?topic=<?= $_GET['topic'] ?>&konftop=<?= htmlspecialchars($_GET['conf']) ?>&page=<?= $_GET['page'] ?>&dp=<?= $row['id'] ?>">
<img src="i/clear.gif"> <small>Удалить</small>
</a> </a> |
<a onclick="var obj; if (obj = prompt('Введите комментарий','')) { window.location='forum.php?topic=<?= $_GET['topic'] ?>&konftop=<?= htmlspecialchars($_GET['conf']) ?>&page=<?= $_GET['page'] ?>&cpr='+obj+'&com=<?= $row['id'] ?>'; }" <a onclick="var obj; if (obj = prompt('Введите комментарий','')) { window.location='forum.php?topic=<?= $_GET['topic'] ?>&konftop=<?= htmlspecialchars($_GET['conf']) ?>&page=<?= $_GET['page'] ?>&cpr='+obj+'&com=<?= $row['id'] ?>'; }"
href='#'><small>Комментарий</small></a> href='#'>
<small>Комментарий</small>
</a>
<?php endif; ?> <?php endif; ?>
<br> <br>
<br> <br>
@ -485,7 +486,7 @@ if (isset($_GET['do']) && $isModerator == true) {
if (empty($_GET['page'])) $_GET['page'] = ""; if (empty($_GET['page'])) $_GET['page'] = "";
$data = db::c()->query('SELECT * FROM `forum` WHERE `parent` = "?s" ORDER BY `id` ASC LIMIT ?i,20', $_GET['topic'], ($_GET['page'] * 20)); $data = db::c()->query('SELECT * FROM `forum` WHERE `parent` = "?s" ORDER BY `id` ASC LIMIT ?i,20', $_GET['topic'], ($_GET['page'] * 20));
while ($row = $data->fetch_assoc()): ?> while ($row = $data->fetch_assoc()): ?>
<div class="rc6 mBodyBlock" id="leaf<?= $row['id'] ?>"> <div id="leaf<?= $row['id'] ?>">
<div class="mesTopBar"> <div class="mesTopBar">
<table width="100%"> <table width="100%">
<tr> <tr>