diff --git a/forum.php b/forum.php index 56273a2..7e0aef7 100644 --- a/forum.php +++ b/forum.php @@ -1,4 +1,4 @@ - + - +
- + ← на главную |
+ |
- + Не авторизованы "; } else { @@ -194,7 +126,7 @@ if (isset($_GET['topic']) && is_numeric($_GET['topic']) && $_GET['topic'] == 228 Конференции -
-
+ window.location='?topic=" . $_GET['topic'] . "&rnd'";
exit();
}
- Обсуждение закрыто " . $palclose . "
+
if ($_GET['do'] == "close") {
mysql_query("UPDATE `forum` SET `close` = '1', `closepal` = 'Обсуждение закрыто " . $palclose . "' WHERE `id` = '" . mysql_real_escape_string($_GET['topic']) . "' LIMIT 1");
echo "";
@@ -649,7 +581,7 @@ if (isset($_GET['topic']) && is_numeric($_GET['topic']) && $_GET['topic'] == 228
{$row['topic']}
";
echo " | " . $row['author'] . "
- (" . $row['date'] . ")
+ (" . $row['date'] . ")
$edit
@@ -705,7 +637,8 @@ if (isset($_GET['topic']) && is_numeric($_GET['topic']) && $_GET['topic'] == 228
echo " Страницы : ";
}
echo $pages_str;
- $closed=''; $closepal='';
+ $closed = '';
+ $closepal = '';
if (($closed == 1 && $_GET['topic'] != 228043095)) {
echo "" . $closepal . " "; @@ -741,10 +674,10 @@ if (isset($_GET['topic']) && is_numeric($_GET['topic']) && $_GET['topic'] == 228
+ onselect="storeCaret(this);"
+ onclick="storeCaret(this);"
+ onkeyup="storeCaret(this);"
+ onchange="storeCaret(this);">
|
'; - $pgs = mysql_fetch_array(mysql_query("SELECT count(`id`) FROM `forum` WHERE `parent` = '" . mysql_real_escape_string($_GET['conf']) . "' ORDER by `fix` DESC, `updated` DESC;")); + $pgs = mysql_fetch_array(mysql_query("SELECT count(`id`) FROM `forum` WHERE `parent` = '" . mysql_real_escape_string($_GET['conf']) . "' ORDER BY `fix` DESC, `updated` DESC;")); $pgs = $pgs[0] / 20; $pages_str = ''; $page = (int)$_GET['page'] > 0 ? (((int)$_GET['page'] + 1) > $pgs ? ($pgs - 1) : (int)$_GET['page']) : 0; @@ -817,33 +750,34 @@ if (isset($_GET['topic']) && is_numeric($_GET['topic']) && $_GET['topic'] == 228 $LastPage = (ceil($pgs) > 4 ? (ceil($pgs) - 1) != $_GET['page'] ? " Последняя " : "" : ""); $pages_str = $FirstPage . $pages_str . $LastPage; ?> -
|