diff --git a/forum.php b/forum.php index 56273a2..7e0aef7 100644 --- a/forum.php +++ b/forum.php @@ -1,4 +1,4 @@ - - + Форум Бойцовского клуба - - - + + + @@ -87,11 +87,10 @@ if (isset($_GET['topic']) && is_numeric($_GET['topic']) && $_GET['topic'] == 228 - +
- + ← на главную
@@ -103,88 +102,21 @@ if (isset($_GET['topic']) && is_numeric($_GET['topic']) && $_GET['topic'] == 228 var $wsize = document.body.clientWidth; if ($wsize >= 800) $wsize = Math.floor($wsize * 0.8); document.write(''); - - function drwfl(name, id, level, align, klan) { - var s = ''; - if (align && align != "0" && align != '') { - s += ''; - } - if (klan) { - s += ''; - } - - s += ' ' + name + ''; - if (level > 0 && level != '') { - s += " [" + level + "]"; - } - if (id > 1 && id != '') { - s += ' '; - } - document.write(s); - } - - function add_cites($leaf_id) { - var $full_div = $("div#leaf" + $leaf_id); - var $athor = $full_div.text(); - var $clean; - $clean = $athor.replace(/drwfl\(([^)]+)\)/, ''); - - var $user = /[^\[]+\[\d+\]/.exec($clean); - if (!$user) { - $user = /[^\(]+/.exec($clean); - } else { - $user = ('' + $user).replace(/\(.*/, ''); - } - ; - $user = ('' + $user).replace(/\s+$/, ''); - $user = ('' + $user).replace(/^\s+/, ''); - var $time = /[\([\d\.:\s]+\)/.exec($clean); - - var $user_time_text = $user + " " + $time + "\n"; - var $text = $("span", $full_div).text(); - - $text = $text.replace(/>/g, ">"); - $text = $text.replace(/</g, "<"); - $text = $text.replace(/ \s?/g, " "); - $text = $text.replace(//ig, '\n'); - $text = $user_time_text + $text; - $text = $text.replace(/\s+$/g, '').replace(/^/mg, "> "); - - if (/^\s+$/.test($("#answer").val())) { - $("#answer").val(''); - } - ; - - $("#answer").val($("#answer").val() + "[quote]\r\n" + $text + "[/quote]\n\n"); - $("#answer").focus(); - } - $(function () { $("a.cite").show(); return false; }); - - - function replasetopic(reptopic, numtopic) { - objSel = document.getElementById('seltopic' + numtopic); - if (reptopic != objSel.options[objSel.selectedIndex].value) { - document.getElementById('selectt').value = objSel.options[objSel.selectedIndex].value; - document.getElementById('numt').value = numtopic; - document.repltopic.submit(); - } - } - -
+


- Не авторизованы
"; } else { @@ -194,7 +126,7 @@ if (isset($_GET['topic']) && is_numeric($_GET['topic']) && $_GET['topic'] == 228
Конференции
- +
@@ -205,7 +137,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);">
@@ -799,7 +732,7 @@ if (isset($_GET['topic']) && is_numeric($_GET['topic']) && $_GET['topic'] == 228 echo '
'; - $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; ?> - - - - -
Страницы:
- - - - - - -
+ + + + +
Страницы:
+ + + + + + +
+

" . ($row['fix'] ? "\"Закреплено\" " : "") . " -

Добавить свой вопрос в форум

Тема сообщения +

Добавить свой вопрос в форум

+ @@ -920,46 +850,18 @@ if (isset($_GET['topic']) && is_numeric($_GET['topic']) && $_GET['topic'] == 228 onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);" - onchange="storeCaret(this);"> + onchange="storeCaret(this);" placeholder="Введите сообщение..."> + + + - - -
-   -   -   -   -   -   -
-   -   -   -   -   -   - -
+
@@ -1014,7 +916,7 @@ if (isset($_GET['topic']) && is_numeric($_GET['topic']) && $_GET['topic'] == 228
- +