Code cleanup
This commit is contained in:
parent
4252246d1d
commit
2b6466b58c
@ -409,23 +409,23 @@ if (isset($_GET['do']) && $isModerator == true) {
|
|||||||
$par_top = db::c()->query('SELECT `closepal`, `id` FROM `forum` WHERE `id` = "?s"', $_GET['topic'])->fetch_row();
|
$par_top = db::c()->query('SELECT `closepal`, `id` FROM `forum` WHERE `id` = "?s"', $_GET['topic'])->fetch_row();
|
||||||
if (((int)$par_top[1] != 0) || ((int)$_GET['konftop'] > 0)) {
|
if (((int)$par_top[1] != 0) || ((int)$_GET['konftop'] > 0)) {
|
||||||
if ($row['close'] == 1) {
|
if ($row['close'] == 1) {
|
||||||
$close = "<a href='?topic={$_GET['topic']}&do=open'>Открыть</a>";
|
$close = "<a href='?topic={$_GET['topic']}&do=open'>🔓Открыть</a>";
|
||||||
$closed = 1;
|
$closed = 1;
|
||||||
$closepal = $row['closepal'];
|
$closepal = $row['closepal'];
|
||||||
} else {
|
} else {
|
||||||
$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>";
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($isModerator): ?>
|
if ($isModerator): ?>
|
||||||
<br>
|
<br>
|
||||||
<div align="right">
|
<div align="right">
|
||||||
<small>
|
<small>
|
||||||
<img src="i/close2.gif"><?= $close ?> | <img src="i/ico/fixed.gif"><?= $fix ?>
|
<?= $close ?> | <?= $fix ?>
|
||||||
<br><i>Перемещение тем не работает.</i>
|
<br><i>Перемещение тем не работает.</i>
|
||||||
</small>
|
</small>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user