Azeeeeeez
#161
Forumda mavzu ochilgan sahifada

This page contains the following errors:
error on line 32 at column 2407: Opening and ending tag mismatch: body line 0 and div
Below is a rendering of the page up to the first error.


Shu yozuv chiqyabdi </div> yopishda yoki ochishda xatolik bolgan buni qanday aniqlasam boladi birma bir korsam totopilmadi

Iloji bolsa toliqroq malumot berila oldindan rahmat!
Сирожиддин
#162
Azeeeeeez, # Azeeeeeez (04.10.2017 / 07:56)
Forumda mavzu ochilgan sahifada

This page contains the following errors:
error on line 32 at column 2407: Opening and ending tag mismatch: body line 0 and div
Below is a rendering of the page up
Saytning HTML kodlarini ochganingizda (ya'ni skaner qilib, yoki Source orqali).
Xatolikda yozilishicha 32-qator 2407-simvolda xatolik qilgansiz.
BEXRUZ
#163
Saytimda foydalanuvchini fm dagi jamoasini profile.php chiqadigan qildim jamoasi yoq foydalanuvchilarga" Jamosi yoq " deb qanday qilama ?
Azeeeeeez
#164
Сирожиддин (Раис), 32 qator 2407 simvolda buni keo.su da qanday anianiqlasam boladi bunaqa qatorda mutloqo boshqa narsa turgan boladi
SUHROBBEK
#165
foydalanuvchilarni sõngi 6 ta rasmini bosh sahifaga chiqarish kõdi kerak..
TBest
#166
BEXRUZ, o'sha yozgan kodizda
  1. }
  2. ////tugatish belgisi
bor ashini o'rniga
  1. }else{
qilib tagiga
  1. echo '<span>Jamoasiz</span>' ;
  2. }
qilasiz tamom.
TBest
#167
SUHROBBEK, Albomdaginimi?
SUHROBBEK
#168
TBest, ha bilasmi
Сирожиддин
#169
Azeeeeeez, o'sha postda qanday ochishingizni ham aytgandim.
Saytni sakanerlasangiz HTML kodini chiqarib beradi shundan bilasiz. sizga boshqacha qilib tushuntirolmayman, buni php ga tushunsangiz yoki oz-moz tajribangiz bo'lsa darrov topib olasiz. O'sha xatolik chiqayotgan sahifani yozing yordamlashmiz
TBest
#170
SUHROBBEK, http://uzfor.uz/forum/index.php?act=post&id=4136 mana
Azeeeeeez
#171
  1. <?php
  2.  
  3. define('_IN_JOHNCMS', 1);
  4.  
  5. require('../incfiles/core.php');
  6. $lng_forum = core::load_lng('forum');
  7. if (isset($_SESSION['ref']))
  8. unset($_SESSION['ref']);
  9.  
  10. /*
  11. -----------------------------------------------------------------
  12. Настройки форума
  13. -----------------------------------------------------------------
  14. */
  15. $set_forum = $user_id && !empty($datauser['set_forum']) ? unserialize($datauser['set_forum']) : array(
  16. 'farea' => 0,
  17. 'upfp' => 0,
  18. 'preview' => 1,
  19. 'postclip' => 1,
  20. 'postcut' => 2
  21. );
  22.  
  23. /*
  24. -----------------------------------------------------------------
  25. Список расширений файлов, разрешенных к выгрузке
  26. -----------------------------------------------------------------
  27. */
  28. // Файлы архивов
  29. $ext_arch = array(
  30. 'zip',
  31. 'rar',
  32. '7z',
  33. 'tar',
  34. 'gz',
  35. 'apk'
  36. );
  37. // Звуковые файлы
  38. $ext_audio = array(
  39. 'mp3',
  40. 'amr'
  41. );
  42. // Файлы документов и тексты
  43. $ext_doc = array(
  44. 'txt',
  45. 'pdf',
  46. 'doc',
  47. 'rtf',
  48. 'djvu',
  49. 'xls'
  50. );
  51. // Файлы Java
  52. $ext_java = array(
  53. 'jar',
  54. 'jad'
  55. );
  56. // Файлы картинок
  57. $ext_pic = array(
  58. 'jpg',
  59. 'jpeg',
  60. 'gif',
  61. 'png',
  62. 'bmp'
  63. );
  64. // Файлы SIS
  65. $ext_sis = array(
  66. 'sis',
  67. 'sisx'
  68. );
  69. // Файлы видео
  70. $ext_video = array(
  71. '3gp',
  72. 'avi',
  73. 'flv',
  74. 'mpeg',
  75. 'mp4'
  76. );
  77. // Файлы Windows
  78. $ext_win = array(
  79. 'exe',
  80. 'msi'
  81. );
  82. // Другие типы файлов (что не перечислены выше)
  83. $ext_other = array('wmf');
  84.  
  85. /*
  86. -----------------------------------------------------------------
  87. Ограничиваем доступ к Форуму
  88. -----------------------------------------------------------------
  89. */
  90. $error = '';
  91. if (!$set['mod_forum'] && $rights < 7)
  92. $error = $lng_forum['forum_closed'];
  93. elseif ($set['mod_forum'] == 1 && !$user_id)
  94. $error = $lng['access_guest_forbidden'];
  95. if ($error) {
  96. require('../incfiles/head.php');
  97. echo '<div class="rmenu"><p>' . $error . '</p></div>';
  98. require('../incfiles/end.php');
  99. }
  100.  
  101. $headmod = $id ? 'forum,' . $id : 'forum';
  102.  
  103. /*
  104. -----------------------------------------------------------------
  105. Заголовки страниц форума
  106. -----------------------------------------------------------------
  107. */
  108. if (empty($id)) {
  109. $textl = '' . $lng['forum'] . '';
  110. } else {
  111. $req = mysql_query("SELECT `text` FROM `forum` WHERE `id`= '" . $id . "'");
  112. $res = mysql_fetch_assoc($req);
  113. $hdr = strtr($res['text'], array(
  114. '&quot;' => '',
  115. '&amp;' => '',
  116. '&lt;' => '',
  117. '&gt;' => '',
  118. '&#039;' => ''
  119. ));
  120. $hdr = mb_substr($hdr, 0, 30);
  121. $hdr = functions::checkout($hdr);
  122. $textl = mb_strlen($res['text']) > 30 ? $hdr . '...' : $hdr;
  123. }
  124.  
  125. /*
  126. -----------------------------------------------------------------
  127. Переключаем режимы работы
  128. -----------------------------------------------------------------
  129. */
  130. $mods = array(
  131. 'addfile',
  132. 'addvote',
  133. 'close',
  134. 'deltema',
  135. 'delvote',
  136. 'editpost',
  137. 'editvote',
  138. 'file',
  139. 'files',
  140. 'filter',
  141. 'loadtem',
  142. 'massdel',
  143. 'new',
  144. 'nt',
  145. 'per',
  146. 'post',
  147. 'ren',
  148. 'restore',
  149. 'say',
  150. 'tema',
  151. 'users',
  152. 'vip',
  153. 'vote',
  154. 'who',
  155. 'curators',
  156. 'rahmat'
  157. );
  158. if ($act && ($key = array_search($act, $mods)) !== false && file_exists('includes/' . $mods[$key] . '.php')) {
  159. require('includes/' . $mods[$key] . '.php');
  160. } else {
  161. require('../incfiles/head.php');
  162.  
  163. /*
  164.   -----------------------------------------------------------------
  165.   Если форум закрыт, то для Админов выводим напоминание
  166.   -----------------------------------------------------------------
  167.   */
  168. if (!$set['mod_forum']) echo '<div class="alarm">' . $lng_forum['forum_closed'] . '</div>';
  169. elseif ($set['mod_forum'] == 3) echo '<div class="rmenu">' . $lng['read_only'] . '</div>';
  170. if (!$user_id) {
  171. if (isset($_GET['newup']))
  172. $_SESSION['uppost'] = 1;
  173. if (isset($_GET['newdown']))
  174. $_SESSION['uppost'] = 0;
  175. }
  176. if ($id) {
  177. /*
  178.   -----------------------------------------------------------------
  179.   Определяем тип запроса (каталог, или тема)
  180.   -----------------------------------------------------------------
  181.   */
  182. $type = mysql_query("SELECT * FROM `forum` WHERE `id`= '$id'");
  183. if (!mysql_num_rows($type)) {
  184. // Если темы не существует, показываем ошибку
  185. echo functions::display_error($lng_forum['error_topic_deleted'], '<a href="index.php">' . $lng['to_forum'] . '</a>');
  186. require('../incfiles/end.php');
  187. }
  188. $type1 = mysql_fetch_assoc($type);
  189.  
  190. /*
  191.   -----------------------------------------------------------------
  192.   Фиксация факта прочтения Топика
  193.   -----------------------------------------------------------------
  194.   */
  195. if ($user_id && $type1['type'] == 't') {
  196. $req_r = mysql_query("SELECT * FROM `cms_forum_rdm` WHERE `topic_id` = '$id' AND `user_id` = '$user_id' LIMIT 1");
  197. if (mysql_num_rows($req_r)) {
  198. $res_r = mysql_fetch_assoc($req_r);
  199. if ($type1['time'] > $res_r['time'])
  200. mysql_query("UPDATE `cms_forum_rdm` SET `time` = '" . time() . "' WHERE `topic_id` = '$id' AND `user_id` = '$user_id' LIMIT 1");
  201. } else {
  202. mysql_query("INSERT INTO `cms_forum_rdm` SET `topic_id` = '$id', `user_id` = '$user_id', `time` = '" . time() . "'");
  203. }
  204. }
  205.  
  206. /*
  207.   -----------------------------------------------------------------
  208.   Получаем структуру форума
  209.   -----------------------------------------------------------------
  210.   */
  211. $res = true;
  212. $parent = $type1['refid'];
  213. while ($parent != '0' && $res != false) {
  214. $req = mysql_query("SELECT * FROM `forum` WHERE `id` = '$parent' LIMIT 1");
  215. $res = mysql_fetch_assoc($req);
  216. if ($res['type'] == 'f' || $res['type'] == 'r')
  217. $tree[] = '<a href="index.php?id=' . $parent . '">' . $res['text'] . '</a>';
  218. $parent = $res['refid'];
  219. }
  220. $tree[] = '<a href="index.php">' . $lng['forum'] . '</a>';
  221. krsort($tree);
  222. if ($type1['type'] != 't' && $type1['type'] != 'm')
  223. $tree[] = '<b>' . $type1['text'] . '</b>';
  224.  
  225. /*
  226.   -----------------------------------------------------------------
  227.   Счетчик файлов и ссылка на них
  228.   -----------------------------------------------------------------
  229.   */
  230. $sql = ($rights == 9) ? "" : " AND `del` != '1'";
  231. if ($type1['type'] == 'f') {
  232. $count = mysql_result(mysql_query("SELECT COUNT(*) FROM `cms_forum_files` WHERE `cat` = '$id'" . $sql), 0);
  233. if ($count > 0)
  234. $filelink = '<a href="index.php?act=files&amp;c=' . $id . '">' . $lng_forum['files_category'] . '</a>';
  235. } elseif ($type1['type'] == 'r') {
  236. $count = mysql_result(mysql_query("SELECT COUNT(*) FROM `cms_forum_files` WHERE `subcat` = '$id'" . $sql), 0);
  237. if ($count > 0)
  238. $filelink = '<a href="index.php?act=files&amp;s=' . $id . '">' . $lng_forum['files_section'] . '</a>';
  239. } elseif ($type1['type'] == 't') {
  240. $count = mysql_result(mysql_query("SELECT COUNT(*) FROM `cms_forum_files` WHERE `topic` = '$id'" . $sql), 0);
  241. if ($count > 0)
  242. $filelink = '<a href="index.php?act=files&amp;t=' . $id . '">' . $lng_forum['files_topic'] . '</a>';
  243. }
  244. $filelink = isset($filelink) ? $filelink . '&#160;<span class="red">(' . $count . ')</span>' : false;
  245.  
  246. /*
  247.   -----------------------------------------------------------------
  248.   Счетчик "Кто в теме?"
  249.   -----------------------------------------------------------------
  250.   */
  251. $wholink = false;
  252. if ($user_id && $type1['type'] == 't') {
  253. $online_u = mysql_result(mysql_query("SELECT COUNT(*) FROM `users` WHERE `lastdate` > " . (time() - 1000) . " AND `place` = 'forum,$id'"), 0);
  254. $online_g = mysql_result(mysql_query("SELECT COUNT(*) FROM `cms_sessions` WHERE `lastdate` > " . (time() - 1000) . " AND `place` = 'forum,$id'"), 0);
  255.  
  256. $wholink = '<a href="index.php?act=who&amp;id=' . $id . '">' . $lng_forum['who_here'] . '?</a>&#160;<span class="red">(' . $online_u . '&#160;/&#160;' . $online_g . ')</span>';
  257. }
  258.  
  259. /*
  260.   -----------------------------------------------------------------
  261.   Выводим верхнюю панель навигации
  262.   -----------------------------------------------------------------
  263.   */
  264. echo '<p>' . counters::forum_new(1) . '</p>' .
  265. '<div class="phdr">' . functions::display_menu($tree) . '</div>' .
  266. '<div class="topmenu"><a href="search.php?id=' . $id . '">' . $lng['search'] . '</a>' . ($filelink ? ' | ' . $filelink : '') . ($wholink ? ' | ' . $wholink : '') . '</div>';
  267.  
  268. /*
  269.   -----------------------------------------------------------------
  270.   Отрбражаем содержимое форума
  271.   -----------------------------------------------------------------
  272.   */
  273. switch ($type1['type']) {
  274. case 'f':
  275. /*
  276.   -----------------------------------------------------------------
  277.   Список разделов форума
  278.   -----------------------------------------------------------------
  279.  
  280.   */
  281. $req = mysql_query("SELECT `id`, `text`, `soft` FROM `forum` WHERE `type`='r' AND `refid`='$id' ORDER BY `realid`");
  282. $total = mysql_num_rows($req);
  283. if ($total) {
  284. $i = 0;
  285. while (($res = mysql_fetch_assoc($req)) !== false) {
  286. echo $i % 2 ? '<div class="list2">' : '<div class="list1">';
  287. $coltem = mysql_result(mysql_query("SELECT COUNT(*) FROM `forum` WHERE `type` = 't' AND `refid` = '" . $res['id'] . "'"), 0);
  288. echo '<a href="?id=' . $res['id'] . '">' . $res['text'] . '</a>';
  289. if ($coltem)
  290. echo " [$coltem]";
  291. if (!empty($res['soft']))
  292. echo '<div class="sub"><span class="gray">' . $res['soft'] . '</span></div>';
  293. echo '</div>';
  294. ++$i;
  295. }
  296. unset($_SESSION['fsort_id']);
  297. unset($_SESSION['fsort_users']);
  298. } else {
  299. echo '<div class="menu"><p>' . $lng_forum['section_list_empty'] . '</p></div>';
  300. }
  301. echo '<div class="phdr">' . $lng['total'] . ': ' . $total . '</div>';
  302. break;
  303.  
  304. case 'r':
  305. /*
  306.   -----------------------------------------------------------------
  307.   Список топиков
  308.   -----------------------------------------------------------------
  309.   */
  310. $total = mysql_result(mysql_query("SELECT COUNT(*) FROM `forum` WHERE `type`='t' AND `refid`='$id'" . ($rights >= 7 ? '' : " AND `close`!='1'")), 0);
  311. if (($user_id && !isset($ban['1']) && !isset($ban['11']) && $set['mod_forum'] != 3) || core::$user_rights) {
  312. // Кнопка создания новой темы
  313. echo '<div class="gmenu"><form action="index.php?act=nt&amp;id=' . $id . '" method="post"><input type="submit" value="' . $lng_forum['new_topic'] . '" /></form></div>';
  314. }
  315. if ($total) {
  316. $req = mysql_query("SELECT * FROM `forum` WHERE `type`='t'" . ($rights >= 7 ? '' : " AND `close`!='1'") . " AND `refid`='$id' ORDER BY `vip` DESC, `time` DESC LIMIT $start, $kmess");
  317. $i = 0;
  318. while (($res = mysql_fetch_assoc($req)) !== false) {
  319. if ($res['close'])
  320. echo '<div class="rmenu">';
  321. else
  322. echo $i % 2 ? '<div class="list2">' : '<div class="list1">';
  323. $nikuser = mysql_query("SELECT `from` FROM `forum` WHERE `type` = 'm' AND `close` != '1' AND `refid` = '" . $res['id'] . "' ORDER BY `time` DESC LIMIT 1");
  324. $nam = mysql_fetch_assoc($nikuser);
  325. $colmes = mysql_query("SELECT COUNT(*) FROM `forum` WHERE `type`='m' AND `refid`='" . $res['id'] . "'" . ($rights >= 7 ? '' : " AND `close` != '1'"));
  326. $colmes1 = mysql_result($colmes, 0);
  327. $cpg = ceil($colmes1 / $kmess);
  328. $np = mysql_result(mysql_query("SELECT COUNT(*) FROM `cms_forum_rdm` WHERE `time` >= '" . $res['time'] . "' AND `topic_id` = '" . $res['id'] . "' AND `user_id`='$user_id'"), 0);
  329. // Значки
  330. $icons = array(
  331. ($np ? (!$res['vip'] ? '<img src="../theme/' . $set_user['skin'] . '/images/op.gif" alt=""/>' : '') : '<img src="../theme/' . $set_user['skin'] . '/images/np.gif" alt=""/>'),
  332. ($res['vip'] ? '<img src="../theme/' . $set_user['skin'] . '/images/pt.gif" alt=""/>' : ''),
  333. ($res['realid'] ? '<img src="../theme/' . $set_user['skin'] . '/images/rate.gif" alt=""/>' : ''),
  334. ($res['edit'] ? '<img src="../theme/' . $set_user['skin'] . '/images/tz.gif" alt=""/>' : '')
  335. );
  336. echo functions::display_menu($icons, '&#160;', '&#160;');
  337. echo '<a href="index.php?id=' . $res['id'] . '">' . $res['text'] . '</a> [' . $colmes1 . ']';
  338. if ($cpg > 1) {
  339. echo '<a href="index.php?id=' . $res['id'] . '&amp;page=' . $cpg . '">&#160;&gt;&gt;</a>';
  340. }
  341. echo '<div class="sub">';
  342. echo $res['from'];
  343. if (!empty($nam['from'])) {
  344. echo '&#160;/&#160;' . $nam['from'];
  345. }
  346. echo ' <span class="gray">(' . functions::display_date($res['time']) . ')</span></div></div>';
  347. ++$i;
  348. }
  349. unset($_SESSION['fsort_id']);
  350. unset($_SESSION['fsort_users']);
  351. } else {
  352. echo '<div class="menu"><p>' . $lng_forum['topic_list_empty'] . '</p></div>';
  353. }
  354. echo '<div class="phdr">' . $lng['total'] . ': ' . $total . '</div>';
  355. if ($total > $kmess) {
  356. echo '<div class="topmenu">' . functions::display_pagination('index.php?id=' . $id . '&amp;', $start, $total, $kmess) . '</div>' .
  357. '<p><form action="index.php?id=' . $id . '" method="post">' .
  358. '<input type="text" name="page" size="2"/>' .
  359. '<input type="submit" value="' . $lng['to_page'] . ' &gt;&gt;"/>' .
  360. '</form></p>';
  361. }
  362. break;
  363.  
  364. case 't':
  365. /*
  366.   -----------------------------------------------------------------
  367.   Читаем топик
  368.   -----------------------------------------------------------------
  369.   */
  370. $filter = isset($_SESSION['fsort_id']) && $_SESSION['fsort_id'] == $id ? 1 : 0;
  371. $sql = '';
  372. if ($filter && !empty($_SESSION['fsort_users'])) {
  373. // Подготавливаем запрос на фильтрацию юзеров
  374. $sw = 0;
  375. $sql = ' AND (';
  376. $fsort_users = unserialize($_SESSION['fsort_users']);
  377. foreach ($fsort_users as $val) {
  378. if ($sw)
  379. $sql .= ' OR ';
  380. $sortid = intval($val);
  381. $sql .= "`forum`.`user_id` = '$sortid'";
  382. $sw = 1;
  383. }
  384. $sql .= ')';
  385. }
  386.  
  387. // Если тема помечена для удаления, разрешаем доступ только администрации
  388. if ($rights < 6 && $type1['close'] == 1) {
  389. echo '<div class="rmenu"><p>' . $lng_forum['topic_deleted'] . '<br/><a href="?id=' . $type1['refid'] . '">' . $lng_forum['to_section'] . '</a></p></div>';
  390. require('../incfiles/end.php');
  391. }
  392.  
  393. // Счетчик постов темы
  394. $colmes = mysql_result(mysql_query("SELECT COUNT(*) FROM `forum` WHERE `type`='m'$sql AND `refid`='$id'" . ($rights >= 7 ? '' : " AND `close` != '1'")), 0);
  395. if ($start >= $colmes) {
  396. // Исправляем запрос на несуществующую страницу
  397. $start = max(0, $colmes - (($colmes % $kmess) == 0 ? $kmess : ($colmes % $kmess)));
  398. }
  399.  
  400. // Выводим название топика
  401. echo '<div class="phdr"><a name="up" id="up"></a><a href="#down"><img src="../theme/' . $set_user['skin'] . '/images/down.png" alt="Вниз" width="20" height="10" border="0"/></a>&#160;&#160;<b>' . $type1['text'] . '</b></div>';
  402. if ($colmes > $kmess) {
  403. echo '<div class="topmenu">' . functions::display_pagination('index.php?id=' . $id . '&amp;', $start, $colmes, $kmess) . '</div>';
  404. }
  405. // Метка удаления темы
  406. if ($type1['close']) {
  407. echo '<div class="rmenu">' . $lng_forum['topic_delete_who'] . ': <b>' . $type1['close_who'] . '</b></div>';
  408. } elseif (!empty($type1['close_who']) && $rights >= 7) {
  409. echo '<div class="gmenu"><small>' . $lng_forum['topic_delete_whocancel'] . ': <b>' . $type1['close_who'] . '</b></small></div>';
  410. }
  411.  
  412. // Метка закрытия темы
  413. if ($type1['edit']) {
  414. echo '<div class="rmenu">' . $lng_forum['topic_closed'] . '</div>';
  415. }
  416.  
  417. /*
  418.   -----------------------------------------------------------------
  419.   Блок голосований
  420.   -----------------------------------------------------------------
  421.   */
  422. if ($type1['realid']) {
  423. $clip_forum = isset($_GET['clip']) ? '&amp;clip' : '';
  424. $vote_user = mysql_result(mysql_query("SELECT COUNT(*) FROM `cms_forum_vote_users` WHERE `user`='$user_id' AND `topic`='$id'"), 0);
  425. $topic_vote = mysql_fetch_assoc(mysql_query("SELECT `name`, `time`, `count` FROM `cms_forum_vote` WHERE `type`='1' AND `topic`='$id' LIMIT 1"));
  426. echo '<div class="gmenu"><b>' . functions::checkout($topic_vote['name']) . '</b><br />';
  427. $vote_result = mysql_query("SELECT `id`, `name`, `count` FROM `cms_forum_vote` WHERE `type`='2' AND `topic`='" . $id . "' ORDER BY `id` ASC");
  428. if (!$type1['edit'] && !isset($_GET['vote_result']) && $user_id && $vote_user == 0) {
  429. // Выводим форму с опросами
  430. echo '<form action="index.php?act=vote&amp;id=' . $id . '" method="post">';
  431. while (($vote = mysql_fetch_assoc($vote_result)) !== false) {
  432. echo '<input type="radio" value="' . $vote['id'] . '" name="vote"/> ' . functions::checkout($vote['name'], 0, 1) . '<br />';
  433. }
  434. echo '<p><input type="submit" name="submit" value="' . $lng['vote'] . '"/><br/><a href="index.php?id=' . $id . '&amp;start=' . $start . '&amp;vote_result' . $clip_forum .
  435. '">' . $lng_forum['results'] . '</a></p></form></div>';
  436. } else {
  437. // Выводим результаты голосования
  438. echo '<small>';
  439. while (($vote = mysql_fetch_assoc($vote_result)) !== false) {
  440. $count_vote = $topic_vote['count'] ? round(100 / $topic_vote['count'] * $vote['count']) : 0;
  441. echo functions::checkout($vote['name'], 0, 1) . ' [' . $vote['count'] . ']<br />';
  442. echo '<img src="vote_img.php?img=' . $count_vote . '" alt="' . $lng_forum['rating'] . ': ' . $count_vote . '%" /><br />';
  443. }
  444. echo '</small><div class="bmenu">' . $lng_forum['total_votes'] . ': ';
  445. if ($user_id && core::$user_data['rights'] > 6)
  446. echo '<a href="index.php?act=users&amp;id=' . $id . '">' . $topic_vote['count'] . '</a>';
  447. else
  448. echo $topic_vote['count'];
  449. echo '</div>';
  450. if ($user_id && $vote_user == 0)
  451. echo '<div class="bmenu"><a href="index.php?id=' . $id . '&amp;start=' . $start . $clip_forum . '">' . $lng['vote'] . '</a></div>';
  452. }
  453. }
  454. $curators = !empty($type1['curators']) ? unserialize($type1['curators']) : array();
  455. $curator = false;
  456. if ($rights < 6 && $rights != 3 && $user_id) {
  457. if (array_key_exists($user_id, $curators)) $curator = true;
  458. }
  459. /*
  460.   -----------------------------------------------------------------
  461.   Фиксация первого поста в теме
  462.   -----------------------------------------------------------------
  463.   */
  464. if (($set_forum['postclip'] == 2 && ($set_forum['upfp'] ? $start < (ceil($colmes - $kmess)) : $start > 0)) || isset($_GET['clip'])) {
  465. $postreq = mysql_query("SELECT `forum`.*, `users`.`sex`, `users`.`rights`, `users`.`lastdate`, `users`.`status`, `users`.`datereg`
  466. FROM `forum` LEFT JOIN `users` ON `forum`.`user_id` = `users`.`id`
  467. WHERE `forum`.`type` = 'm' AND `forum`.`refid` = '$id'" . ($rights >= 7 ? "" : " AND `forum`.`close` != '1'") . "
  468. ORDER BY `forum`.`id` LIMIT 1");
  469. $postres = mysql_fetch_assoc($postreq);
  470. echo '<div class="topmenu"><p>';
  471.  
  472. if ($postres['sex'])
  473. echo '<img src="../theme/' . $set_user['skin'] . '/images/' . ($postres['sex'] == 'm' ? 'm' : 'w') . ($postres['datereg'] > time() - 86400 ? '_new.png" width="14"' : '.png" width="10"') . ' height="10"/>&#160;';
  474. else
  475. echo '<img src="../images/del.png" width="10" height="10" alt=""/>&#160;';
  476. if ($user_id && $user_id != $postres['user_id']) {
  477. echo '<a href="../users/profile.php?user=' . $postres['user_id'] . '&amp;fid=' . $postres['id'] . '"><b>' . $postres['from'] . '</b></a> ' .
  478. '<a href="index.php?act=say&amp;id=' . $postres['id'] . '&amp;start=' . $start . '"> ' . $lng_forum['reply_btn'] . '</a> ' .
  479. '<a href="index.php?act=say&amp;id=' . $postres['id'] . '&amp;start=' . $start . '&amp;cyt"> ' . $lng_forum['cytate_btn'] . '</a> ';
  480. } else {
  481. echo '<b>' . $postres['from'] . '</b> ';
  482. }
  483. echo(time() > $postres['lastdate'] + 1000 ? '<span class="red"> [Off]</span>' : '<span class="green"> [ON]</span>');
  484. echo ' <span class="gray">(' . functions::display_date($postres['time']) . ')</span><br/>';
  485. if ($postres['close']) {
  486. echo '<span class="red">' . $lng_forum['post_deleted'] . '</span><br/>';
  487. }
  488. echo functions::checkout(mb_substr($postres['text'], 0, 500), 0, 2);
  489. if (mb_strlen($postres['text']) > 500)
  490. echo '...<a href="index.php?act=post&amp;id=' . $postres['id'] . '">' . $lng_forum['read_all'] . '</a>';
  491. echo '</p></div>';
  492. }
  493. if ($filter)
  494. echo '<div class="rmenu">' . $lng_forum['filter_on'] . '</div>';
  495. // Задаем правила сортировки (новые внизу / вверху)
  496. if ($user_id)
  497. $order = $set_forum['upfp'] ? 'DESC' : 'ASC';
  498. else
  499. $order = ((empty($_SESSION['uppost'])) || ($_SESSION['uppost'] == 0)) ? 'ASC' : 'DESC';
  500. // Запрос в базу
  501. $req = mysql_query("SELECT `forum`.*, `users`.`sex`, `users`.`holat`, `users`.`rights`, `users`.`lastdate`, `users`.`status`, `users`.`datereg`
  502. FROM `forum` LEFT JOIN `users` ON `forum`.`user_id` = `users`.`id`
  503. WHERE `forum`.`type` = 'm' AND `forum`.`refid` = '$id'"
  504. . ($rights >= 7 ? "" : " AND `forum`.`close` != '1'") . "$sql ORDER BY `forum`.`id` $order LIMIT $start, $kmess");
  505. // Верхнее поле "Написать"
  506. if (($user_id && !$type1['edit'] && $set_forum['upfp'] && $set['mod_forum'] != 3) || ($rights >= 7 && $set_forum['upfp'])) {
  507. echo '<div class="gmenu">111<form name="form1" action="index.php?act=say&amp;id=' . $id . '" method="post">';
  508. if ($set_forum['farea']) {
  509. $token = mt_rand(1000, 100000);
  510. $_SESSION['token'] = $token;
  511. echo '<p>' .
  512. (!$is_mobile ? bbcode::auto_bb('form1', 'msg') : '') .
  513. '<textarea rows="' . $set_user['field_h'] . '" name="msg"></textarea></p>' .
  514. '<p><input type="checkbox" name="addfiles" value="1" /> ' . $lng_forum['add_file'] .
  515. ($set_user['translit'] ? '<br /><input type="checkbox" name="msgtrans" value="1" /> ' . $lng['translit'] : '') .
  516. '</p><p><input type="submit" name="submit" value="' . $lng['write'] . '" style="width: 107px; cursor: pointer;"/> ' .
  517. ($set_forum['preview'] ? '<input type="submit" value="' . $lng['preview'] . '" style="width: 107px; cursor: pointer;"/>' : '') .
  518. '<input type="hidden" name="token" value="' . $token . '"/>' .
  519. '</p></form></div>';
  520. } else {
  521. echo '<p><input type="submit" name="submit" value="' . $lng['write'] . '"/></p></form></div>';
  522. }
  523. }
  524. if ($rights == 3 || $rights >= 6)
  525. echo '<form action="index.php?act=massdel" method="post">';
  526. $i = 1;
  527. while (($res = mysql_fetch_assoc($req)) !== false) {
  528. if ($res['close'])
  529. echo '<div class="rmenu">';
  530. else
  531. echo $i % 2 ? '<div class="list2">' : '<div class="list1">';
  532. if ($set_user['avatar']) {
  533. echo '<table cellpadding="0" cellspacing="0"><tr><td>';
  534. if (file_exists(('../files/users/avatar/' . $res['user_id'] . '.png')))
  535. echo '<img src="../files/users/avatar/' . $res['user_id'] . '.png" width="60" height="63" alt="' . $res['from'] . '" />&#160;';
  536. else
  537. echo '<img src="../images/empty.png" width="40" height="45" alt="' . $res['from'] . '" />&#160;';
  538. echo '</td><td>';
  539. }
  540. if ($res['rights'] > '0') {
  541. $modder = 'mod_';
  542. } else {
  543. $modder = '';
  544. }
  545. if (file_exists('../images/holat/' . $res['holat'] . '.ico')) {
  546. $holat = '<img src="../images/holat/' . $res['holat'] . '.ico" width="14" height="14" alt="" class="icon" />&#160;';
  547. } else {
  548. $holat = '';
  549. }
  550.  
  551. $tartib = $i + $start;
  552. echo '<b>'.$tartib.'. </b>';
  553. if ($res['sex'])
  554. echo '<img src="../theme/' . $set_user['skin'] . '/images/' . $modder . ($res['sex'] == 'm' ? 'm' : 'w') . ($res['lastdate'] > time() - 1000 ? '_on' : '_off') . '.gif" width="14" height="14" />&#160;' . $holat;
  555. else
  556. echo '<img src="../images/del.png" width="12" height="12" align="middle" alt=""/>&#160;';
  557. // Ник юзера и ссылка на его анкету
  558. if ($user_id && $user_id != $res['user_id']) {
  559. echo '<a href="../users/profile.php?user=' . $res['user_id'] . '"><b>' . $res['from'] . '</b></a> ';
  560. } else {
  561. echo '<b>' . $res['from'] . '</b> ';
  562. }
  563. $user = mysql_fetch_assoc(mysql_query("SELECT * FROM `users` WHERE `id` = '" . $res['user_id'] . "'")); echo '<b> ['.$user['postforum'].']</b>';
  564. // Метка Онлайн / Офлайн
  565. /** echo(time() > $res['lastdate'] + 1000 ? '<span class="red"> [Off]</span> ' : '<span class="green"> [ON]</span> ');***/
  566.  
  567. $sek = time() - $user['lastdate'];
  568. if ($sek == 0) {
  569. echo '<font style="color: green"> [on]</font>';
  570. } elseif ($sek < 60) {
  571. echo '<font style="color: green"> ['.$sek.'s]</font>';
  572. } elseif ($sek > 60 && $sek < 120) {
  573. echo '<font style="color: green"> [1m]</font>';
  574. } elseif ($sek > 120 && $sek < 180) {
  575. echo '<font style="color: green"> [2m]</font>';
  576. } elseif ($sek > 180 && $sek < 240) {
  577. echo '<font style="color: green"> [3m]</font>';
  578. } elseif ($sek > 240 && $sek < 300) {
  579. echo '<font style="color: green"> [4m]</font>';
  580. } elseif($sek > 300 && $sek < 360) {
  581. echo '<font style="color: green"> [5m]</font>';
  582. } elseif ($sek > 360 && $sek < 420) {
  583. echo '<font style="color: green"> [6m]</font>';
  584. } elseif ($sek > 420 && $sek < 480) {
  585. echo '<font style="color: green"> [7m]</font>';
  586. } elseif ($sek > 480 && $sek < 540) {
  587. echo '<font style="color: green"> [8m]</font>';
  588. } elseif ($sek > 540 && $sek < 600) {
  589. echo '<font style="color: green"> [9m]</font>';
  590. } elseif ($sek > 600 && $sek < 780) {
  591. echo '<font style="color: green"> [12m]</font>';
  592. } elseif ($sek > 780 && $sek < 960) {
  593. echo '<font style="color: green"> [15m]</font>';
  594. } elseif ($sek > 960 && $sek < 1260) {
  595. echo '<font style="color: green"> [20m]</font>';
  596. }else{
  597. echo '<font style="color: red"> [off]</font>';
  598. }
  599. if ($user_id && $user_id != $res['user_id'])
  600. echo '<a href="index.php?act=rahmat&amp;id=' . $res['id'] . '" title="Xabarga rahmat bildirish">[Rahmat]</a>';
  601. // Ссылки на ответ и цитирование
  602. if ($user_id && $user_id != $res['user_id']) {
  603. echo '<a href="index.php?act=say&amp;id=' . $res['id'] . '&amp;start=' . $start . '">[javob]</a>&#160;' .
  604. '<a href="index.php?act=say&amp;id=' . $res['id'] . '&amp;start=' . $start . '&amp;cyt">[sit]</a> ';
  605. }
  606. // Время поста
  607. echo ' <br /><span style="color:gray;font-size:12px;">' . functions::display_time($res['time']) . '</span><br />';
  608. // Статус юзера
  609.  
  610. // if (!empty($res['status']))
  611. // echo '<div class="status"><img src="../theme/' . $set_user['skin'] . '/images/label.png" alt="" align="middle"/>&#160;' . $res['status'] . '</img></div>';
  612.  
  613. if ($set_user['avatar'])
  614. echo '</td></tr></table>';
  615. /*
  616.   -----------------------------------------------------------------
  617.   Вывод текста поста
  618.   -----------------------------------------------------------------
  619.   */
  620. $text = $res['text'];
  621. if ($set_forum['postcut']) {
  622. // Если текст длинный, обрезаем и даем ссылку на полный вариант
  623. switch ($set_forum['postcut']) {
  624. case 2:
  625. $cut = 1000;
  626. break;
  627.  
  628. case 3:
  629. $cut = 3000;
  630. break;
  631. default :
  632. $cut = 500;
  633. }
  634. }
  635. if ($set_forum['postcut'] && mb_strlen($text) > $cut) {
  636. $text = mb_substr($text, 0, $cut);
  637. $text = functions::checkout($text, 1, 1);
  638. $text = preg_replace('#\[c\](.*?)\[/c\]#si', '<div class="quote">\1</div>', $text);
  639. if ($set_user['smileys'])
  640. $text = functions::smileys($text, $res['rights'] ? 1 : 0);
  641. echo bbcode::notags($text) . '...<br /><a href="index.php?act=post&amp;id=' . $res['id'] . '">' . $lng_forum['read_all'] . ' &gt;&gt;</a>';
  642. } else {
  643. // Или, обрабатываем тэги и выводим весь текст
  644. $text = functions::checkout($text, 1, 1);
  645. if ($set_user['smileys'])
  646. $text = functions::smileys($text, $res['rights'] ? 1 : 0);
  647. echo $text;
  648. //////////Rahmat moduli///////
  649. $rah = mysql_query("SELECT * FROM `forum_rahmat` where `post` = '".$res['id']."'");
  650. $son = mysql_result(mysql_query("select count(*) from `forum_rahmat` where `post`= '".$res['id']."' "), 0);
  651. if ($son) {
  652. echo '<div style="border-bottom: 1px dashed #3CB371; border-top: 1px dashed #3CB371; padding: 4px;"><b>Rahmat aytdi ('.$son.'): </b>';
  653. while ($rahmat = mysql_fetch_array($rah)) {
  654. echo ' <b><span style="color:blue; font-style: italic; opacity: 0.9; margin-bottom:1px;"><a href="/users/profile.php?user='.$rahmat['user_id'].'">'.$rahmat['rahmat'].'</a></b></span></div>';
  655. if ($son >1 || $son <$son) echo ',';
  656. }
  657.  
  658. }
  659. }
  660. if ($res['kedit']) {
  661. // Если пост редактировался, показываем кем и когда
  662. // Ссылки на редактирование / удаление постов
  663. $menu = array(
  664. '<a href="index.php?act=editpost&amp;id=' . $res['id'] . '">' . $lng['edit'] . '</a>',
  665. ($rights >= 7 && $res['close'] == 1 ? '<a href="index.php?act=editpost&amp;do=restore&amp;id=' . $res['id'] . '">' . $lng_forum['restore'] . '</a>' : ''),
  666. ($res['close'] == 1 ? '' : '<a href="index.php?act=editpost&amp;do=del&amp;id=' . $res['id'] . '">' . $lng['delete'] . '</a>')
  667. );
  668. }
  669. echo '</div>';
  670. echo '<div class="fmenu">';
  671. if ($rights == 3 || $rights >= 6)
  672. echo '<input type="checkbox" name="delch[]" value="' . $res['id'] . '"/>&#160;';
  673. echo functions::display_menu($menu);
  674. if ($res['close']) {
  675. echo '<div class="red">' . $lng_forum['who_delete_post'] . ': <b>' . $res['close_who'] . '</b></div>';
  676. } elseif (!empty($res['close_who'])) {
  677. echo '<div class="green">' . $lng_forum['who_restore_post'] . ': <b>' . $res['close_who'] . '</b></div>';
  678. }
  679. /*
  680.   if ($rights == 3 || $rights >= 6) {
  681.   if ($res['ip_via_proxy']) {
  682.   echo '<div class="gray"><b class="red"><a href="' . $set['homeurl'] . '/' . $set['admp'] . '/index.php?act=search_ip&amp;ip=' . long2ip($res['ip']) . '">' . long2ip($res['ip']) . '</a></b> - ' .
  683.   '<a href="' . $set['homeurl'] . '/' . $set['admp'] . '/index.php?act=search_ip&amp;ip=' . long2ip($res['ip_via_proxy']) . '">' . long2ip($res['ip_via_proxy']) . '</a>' .
  684.   ' - ' . $res['soft'] . '</div>';
  685.   } else {
  686.   echo '<div class="gray"><a href="' . $set['homeurl'] . '/' . $set['admp'] . '/index.php?act=search_ip&amp;ip=' . long2ip($res['ip']) . '">' . long2ip($res['ip']) . '</a> - ' . $res['soft'] . '</div>';
  687.   }
  688.  
  689.   }
  690. */
  691. echo '</div>';
  692. // }
  693. // echo '</div>';
  694. ++$i;
  695. }
  696. if ($rights == 3 || $rights >= 6) {
  697. echo '<div class="rmenu"><input type="submit" value=" ' . $lng['delete'] . ' "/></div>';
  698. echo '</form>';
  699. }
  700. // Нижнее поле "Написать"
  701. if (($user_id && !$type1['edit'] && !$set_forum['upfp'] && $set['mod_forum'] != 3) || ($rights >= 7 && !$set_forum['upfp'])) {
  702. echo '<form name="form2" action="index.php?act=say&amp;id=' . $id . '" method="post">';
  703. // if ($set_forum['farea']) {
  704. $token = mt_rand(1000, 100000);
  705. $_SESSION['token'] = $token;
  706. echo '<p>';
  707. // if (!$is_mobile)
  708. // echo bbcode::auto_bb('form2', 'msg');
  709. echo '<textarea rows="' . $set_user['field_h'] . '" name="msg"></textarea><br/></p>';
  710. // '<p><input type="checkbox" name="addfiles" value="1" /> ' . $lng_forum['add_file'];
  711. // if ($set_user['translit'])
  712. // echo '<br /><input type="checkbox" name="msgtrans" value="1" /> ' . $lng['translit'];
  713. echo '<input type="submit" name="submit" value="' . $lng['write'] . '" style="width: 107px; cursor: pointer;"/><span style="float: right; cursor: pointer; height: 32px; width: 32px;"><a href="?id='.$id.'"><img src="/images/refresh.png"></img></a></span>' .
  714. // ($set_forum['preview'] ? '<input type="submit" value="' . $lng['preview'] . '" style="width: 107px; cursor: pointer;"/>' : '') .
  715. '<input type="hidden" name="token" value="' . $token . '"/>' .
  716. '</form></div>';
  717. // } else {
  718. // echo '<p><input type="submit" name="submit" value="' . $lng['write'] . '"/></p></form></div>';
  719. // }
  720. }
  721. echo '<div class="phdr"><a name="down" id="down"></a><a href="#up">' .
  722. '<img src="../theme/' . $set_user['skin'] . '/images/up.png" alt="' . $lng['up'] . '" width="20" height="10" border="0"/></a>' .
  723. '&#160;&#160;' . $lng['total'] . ': ' . $colmes . '</div>';
  724. if ($colmes > $kmess) {
  725. echo '<div class="topmenu">' . functions::display_pagination('index.php?id=' . $id . '&amp;', $start, $colmes, $kmess) . '</div>' .
  726. '<p><form action="index.php?id=' . $id . '" method="post">' .
  727. '<input type="text" name="page" size="2"/>' .
  728. '<input type="submit" value="' . $lng['to_page'] . ' &gt;&gt;"/>' .
  729. '</form></p>';
  730. } else {
  731. echo '<br />';
  732. }
  733. /*
  734.  
  735.   -----------------------------------------------------------------
  736.   Ссылки на модераторские функции
  737.   -----------------------------------------------------------------
  738.   */
  739. if ($curators) {
  740. $array = array();
  741. foreach ($curators as $key => $value)
  742. $array[] = '<a href="../users/profile.php?user=' . $key . '">' . $value . '</a>';
  743. echo '<p><div class="func">' . $lng_forum['curators'] . ': ' . implode(', ', $array) . '</div></p>';
  744. }
  745. if ($rights == 3 || $rights >= 6) {
  746. echo '<p><div class="func">';
  747. if ($rights >= 7)
  748. echo '<a href="index.php?act=curators&amp;id=' . $id . '&amp;start=' . $start . '">' . $lng_forum['curators_of_the_topic'] . '</a><br />';
  749. echo isset($topic_vote) && $topic_vote > 0
  750. ? '<a href="index.php?act=editvote&amp;id=' . $id . '">' . $lng_forum['edit_vote'] . '</a><br/><a href="index.php?act=delvote&amp;id=' . $id . '">' . $lng_forum['delete_vote'] . '</a><br/>'
  751. : '<a href="index.php?act=addvote&amp;id=' . $id . '">' . $lng_forum['add_vote'] . '</a><br/>';
  752. echo '<a href="index.php?act=ren&amp;id=' . $id . '">' . $lng_forum['topic_rename'] . '</a><br/>';
  753. // Закрыть - открыть тему
  754. if ($type1['edit'] == 1)
  755. echo '<a href="index.php?act=close&amp;id=' . $id . '">' . $lng_forum['topic_open'] . '</a><br/>';
  756. else
  757. echo '<a href="index.php?act=close&amp;id=' . $id . '&amp;closed">' . $lng_forum['topic_close'] . '</a><br/>';
  758. // Удалить - восстановить тему
  759. if ($type1['close'] == 1)
  760. echo '<a href="index.php?act=restore&amp;id=' . $id . '">' . $lng_forum['topic_restore'] . '</a><br/>';
  761. echo '<a href="index.php?act=deltema&amp;id=' . $id . '">' . $lng_forum['topic_delete'] . '</a><br/>';
  762. if ($type1['vip'] == 1)
  763. echo '<a href="index.php?act=vip&amp;id=' . $id . '">' . $lng_forum['topic_unfix'] . '</a>';
  764. else
  765. echo '<a href="index.php?act=vip&amp;id=' . $id . '&amp;vip">' . $lng_forum['topic_fix'] . '</a>';
  766. echo '<br/><a href="index.php?act=per&amp;id=' . $id . '">' . $lng_forum['topic_move'] . '</a></div></p>';
  767. }
  768. if ($wholink)
  769. echo '<div>' . $wholink . '</div>';
  770. echo '<a href="index.php?act=tema&amp;id=' . $id . '">' . $lng_forum['download_topic'] . '</a>';
  771. break;
  772.  
  773. default:
  774. /*
  775.   -----------------------------------------------------------------
  776.   Если неверные данные, показываем ошибку
  777.   -----------------------------------------------------------------
  778.   */
  779. echo functions::display_error($lng['error_wrong_data']);
  780. break;
  781. }
  782. } else {
  783. /*
  784.   -----------------------------------------------------------------
  785.   Список Категорий форума
  786.   -----------------------------------------------------------------
  787.   */
  788. $count = mysql_result(mysql_query("SELECT COUNT(*) FROM `cms_forum_files`" . ($rights >= 7 ? '' : " WHERE `del` != '1'")), 0);
  789. echo '<div class="menu">' . counters::forum_new(1) . '</div>';
  790. $reqq = mysql_query("SELECT `id`, `text`, `soft` FROM `forum` WHERE `type`='f' ORDER BY `realid`");
  791. $i = 0;
  792. while (($ress = mysql_fetch_array($reqq)) !== false) {
  793. echo '<div class="phdr" style="text-align: center;"><b>' . $ress['text'] . '</b></div>';
  794. if (!empty($ress['soft']))
  795. echo '<div class="sub"><span class="gray">' . $ress['soft'] . '</span></div>';
  796.  
  797. $req = mysql_query("SELECT `id`, `text`, `soft` FROM `forum` WHERE `type`='r' AND `refid`='" . $ress['id'] . "' ORDER BY `realid`");
  798. $total = mysql_num_rows($req);
  799. if ($total) {
  800. $i = 0;
  801. while (($res = mysql_fetch_assoc($req)) !== false) {
  802. echo $i % 2 ? '<div class="list2">' : '<div class="list1">';
  803. $coltem = mysql_result(mysql_query("SELECT COUNT(*) FROM `forum` WHERE `type` = 't' AND `refid` = '" . $res['id'] . "'"), 0);
  804. echo '&raquo;&nbsp;<a style="vertical-align:middle;" href="?id=' . $res['id'] . '">' . $res['text'] . '</a>';
  805. if ($coltem)
  806. echo '(' . $coltem . ')';
  807. if (!empty($res['soft']))
  808. echo '<div class="sub"><span class="gray">' . $res['soft'] . '</span></div>';
  809. echo '</div>';
  810. ++$i;
  811. }
  812.  
  813. unset($_SESSION['fsort_id']);
  814. unset($_SESSION['fsort_users']);
  815. }
  816. }
  817. }
  818. $online_u = mysql_result(mysql_query("SELECT COUNT(*) FROM `users` WHERE `lastdate` > " . (time() - 1000) . " AND `place` LIKE 'forum%'"), 0);
  819. $online_g = mysql_result(mysql_query("SELECT COUNT(*) FROM `cms_sessions` WHERE `lastdate` > " . (time() - 1000) . " AND `place` LIKE 'forum%'"), 0);
  820.  
  821. echo '<div class="phdr">' . ($user_id ? '<a href="index.php?act=who">' . $lng_forum['who_in_forum'] . '</a>' : $lng_forum['who_in_forum']) . '&#160;(' . $online_u . '&#160;/&#160;' . $online_g . ')</div>';
  822. // Навигация внизу страницы
  823.  
  824. echo '<p>' . ($id ? '<a href="index.php">' . $lng['to_forum'] . '</a><br />' : '');
  825. if (!$id) {
  826. echo '<a href="../pages/faq.php?act=forum">' . $lng_forum['forum_rules'] . '</a>';
  827. }
  828. echo '</p>';
  829. if (!$user_id) {
  830. if ((empty($_SESSION['uppost'])) || ($_SESSION['uppost'] == 0)) {
  831. echo '<a href="index.php?id=' . $id . '&amp;page=' . $page . '&amp;newup">' . $lng_forum['new_on_top'] . '</a>';
  832. } else {
  833. echo '<a href="index.php?id=' . $id . '&amp;page=' . $page . '&amp;newdown">' . $lng_forum['new_on_bottom'] . '</a>';
  834. }
  835. }
  836. }
  837. require_once('../incfiles/end.php');
  838. php?>


Mana usha forum iloji bolsa korib bering oshna
SUHROBBEK
#172
TBest, # TBest (04.10.2017 / 17:31)
SUHROBBEK, http://uzfor.uz/forum/index.php?act=post&id=4136 mana
bu foydalanuvchi profili uchunku menga bosh menuga barcha userlarni sõngi 4rasmi kerak
Сирожиддин
#173
SUHROBBEK, shundan o'zingi yasab olishingiz mumin, aniqroq qilib aytganda 10,15 ta harfni olib tashlaysiz.
Sal izlanib ko'rsangiz topasiz.
Azeeeeeez
#174
Johncms 4.x.x da statusda kamentga yavob qaytarish yoq shuni qanday qoshish mumkun yoki kament boshqa qoyish kerakmi?
WapUsta
#175
  1. $req = mysql_query("SELECT `cms_news`.*, `cms_news_cat`.`name` as `catname`, `cms_news_cat`.`id` as `catid` FROM `cms_news` LEFT JOIN `cms_news_cat` ON `cms_news`.`refid`=`cms_news_cat`.`id` WHERE `cms_news`.`time` > '$reqtime'".(self::$user_rights < 7 ? " AND `cms_news`.`time`<='" . time() . "'":"")." ORDER BY `cms_news`.`time` DESC LIMIT " . $this->settings['quantity']);

mana shu kodni yangiliklarni ajratib qo`yish kerak bo`lyapdi
refid` = '16' order shuni qo`yish kerak qanday qilib yuqoridagi kodga moslasa bo`ladi?
Жасурбек
#176
WapUsta, # WapUsta (05.10.2017 / 09:44)
$req = mysql_query("SELECT `cms_news`.*, `cms_news_cat`.`name` as `catname`, `cms_news_cat`.`id` as `catid` FROM `cms_news` LEFT JOIN `cms_news_cat` ON `cms_news`.`refid`=`cms_news_cat`.`id` WHERE `cm
catid bu yangilik bo'limining id raqami, shuning o'rniga bo'limni id raqamini yozing, keyin fapat shu bo'limdagi newslar chiqadi
SUHROBBEK
#177
tepa panelda chatda nechta habar yozilganini bildiruvchi kõdni etvorilar (36/848) shunga õxshash
BEXRUZ
#178
SUHROBBEK, ('.mysql_result(mysql_query("SELECT COUNT(*) FROM `m_chat`"), 0).')<span class="red"<b> ' . $ttchat . '
33
Tayota
#179
User avatar yuklasa rasm razmeri 350x250 böb yuklanyapti man users/includes/profile/images.php dan razmerni 1000x1000 qildim lekin razmer keyn 1000x1000 böb rasm hajmi juda kata böb ketyapti 1 2 mb böb buni - tamoni avatarni yuklayman desam hajmi kata va razmer kata. Shuni misol man 234x500 razmerdagi rasmni yuklasam özide 234x500 böb a 500x500 yuklasam uxam özida chiqadigan qisa böladimi nima qilay?
SUHROBBEK
#180
BEXRUZ, # BEXRUZ (05.10.2017 / 21:05)
SUHROBBEK, ('.mysql_result(mysql_query("SELECT COUNT(*) FROM `m_chat`"), 0).')<span class="red"<b> ' . $ttchat . '
bu kõdni qanday yozay bõlmadi hato deyapti

Kunduzi: 21°C

25 Apr 2024 yil
Joylashuv aniqlanmadi