80s toys - Atari. I still have
» wapyeu2.apk.vn:wap tai game va cac ung dung khong the thieu cho android
• GAME DANG HOT
0, 'upfp' => 0, 'preview' => 1, 'postclip' => 1, 'postcut' => 0 ); /* ----------------------------------------------------------------- Список расширений файлов, разрешенных к выгрузке ----------------------------------------------------------------- */ // Файлы архивов $ext_arch = array( 'zip', 'rar', '7z', 'tar', 'gz' ); // Звуковые файлы $ext_audio = array( 'mp3', 'amr' ); // Файлы документов и тексты $ext_doc = array( 'txt', 'pdf', 'doc', 'rtf', 'djvu', 'xls' ); // Файлы Java $ext_java = array( 'jar', 'jad' ); // Файлы картинок $ext_pic = array( 'jpg', 'jpeg', 'gif', 'png', 'bmp' ); // Файлы SIS $ext_sis = array( 'sis', 'sisx' ); // Файлы видео $ext_video = array( '3gp', 'avi', 'flv', 'mpeg', 'mp4' ); // Файлы Windows $ext_win = array( 'exe', 'msi' ); // Другие типы файлов (что не перечислены выше) $ext_other = array('wmf'); /* ----------------------------------------------------------------- Ограничиваем доступ к Форуму ----------------------------------------------------------------- */ $error = ''; if (!$set['mod_forum'] && $rights < 7) $error = $lng_forum['forum_closed']; elseif ($set['mod_forum'] == 1 && !$user_id) $error = $lng['access_guest_forbidden']; if ($error) { require('../incfiles/head.php'); echo '

' . $error . '

'; require('../incfiles/end.php'); exit; } $headmod = $id ? 'forum,' . $id : 'forum'; /* ----------------------------------------------------------------- Заголовки страниц форума ----------------------------------------------------------------- */ if (empty($id)) { $textl = ' Wap đọc TRUYỆN TEEN, Truyện sex, Truyện Tiểu Thuyết, đọc truyện full cho điện thoại '; } else { $req = mysql_query("SELECT `text` FROM `forum` WHERE `id`= '" . $id . "'"); $res = mysql_fetch_assoc($req); $textl = ''.$res['text'].(isset($_GET['trang']) ? ' - Trang '.$_GET['trang'].'':NULL).''; } /* ----------------------------------------------------------------- Переключаем режимы работы ----------------------------------------------------------------- */ $mota = $res['text']; $mota = html_entity_decode($mota, ENT_QUOTES,'UTF-8'); $mods = array( 'addfile', 'addvote', 'close', 'deltema', 'delvote', 'editpost', 'editvote', 'file', 'files', 'filter', 'loadtem', 'massdel', 'moders', 'new', 'jad', 'nt', 'per', 'post', 'ren', 'restore', 'say', 'tema', 'users', 'vip', 'vote', 'who', 'curators', 'xoafile', 'img', 'tag' ); if ($act && ($key = array_search($act, $mods)) !== false && file_exists('includes/' . $mods[$key] . '.php')) { require('includes/' . $mods[$key] . '.php'); } else { require('../incfiles/head.php'); /* ----------------------------------------------------------------- Если форум закрыт, то для Админов выводим напоминание ----------------------------------------------------------------- */ if (!$set['mod_forum']) echo '
' . $lng_forum['forum_closed'] . '
'; elseif ($set['mod_forum'] == 3) echo '
' . $lng['read_only'] . '
'; if (!$user_id) { if (isset($_GET['newup'])) $_SESSION['uppost'] = 1; if (isset($_GET['newdown'])) $_SESSION['uppost'] = 0; } if ($id) { /* ----------------------------------------------------------------- Определяем тип запроса (каталог, или тема) ----------------------------------------------------------------- */ $type = mysql_query("SELECT * FROM `forum` WHERE `id`= '$id'"); if (!mysql_num_rows($type)) { // Если темы не существует, показываем ошибку echo functions::display_error($lng_forum['error_topic_deleted'], '' . $lng['to_forum'] . ''); require('../incfiles/end.php'); exit; } $type1 = mysql_fetch_assoc($type); /* ----------------------------------------------------------------- Фиксация факта прочтения Топика ----------------------------------------------------------------- */ if ($user_id && $type1['type'] == 't') { $req_r = mysql_query("SELECT * FROM `cms_forum_rdm` WHERE `topic_id` = '$id' AND `user_id` = '$user_id' LIMIT 1"); if (mysql_num_rows($req_r)) { $res_r = mysql_fetch_assoc($req_r); if ($type1['time'] > $res_r['time']) mysql_query("UPDATE `cms_forum_rdm` SET `time` = '" . time() . "' WHERE `topic_id` = '$id' AND `user_id` = '$user_id' LIMIT 1"); } else { mysql_query("INSERT INTO `cms_forum_rdm` SET `topic_id` = '$id', `user_id` = '$user_id', `time` = '" . time() . "'"); } } /* ----------------------------------------------------------------- Получаем структуру форума ----------------------------------------------------------------- */ $res = true; $parent = $type1['refid']; while ($parent != '0' && $res != false) { $req = mysql_query("SELECT * FROM `forum` WHERE `id` = '$parent' LIMIT 1"); $res = mysql_fetch_assoc($req); if ($res['type'] == 'f' || $res['type'] == 'r') $tree[] = '' . bbcode::tags($res['text']) . ''; $parent = $res['refid']; } $tree[] = '' . $lng['forum'] . ''; krsort($tree); if ($type1['type'] != 't' && $type1['type'] != 'm') $tree[] = '' . $type1['text'] . ''; /* ----------------------------------------------------------------- Счетчик файлов и ссылка на них ----------------------------------------------------------------- */ $sql = ($rights == 9) ? "" : " AND `del` != '1'"; if ($type1['type'] == 'f') { $count = mysql_result(mysql_query("SELECT COUNT(*) FROM `cms_forum_files` WHERE `cat` = '$id'" . $sql), 0); if ($count > 0) $filelink = '' . $lng_forum['files_category'] . ''; } elseif ($type1['type'] == 'r') { $count = mysql_result(mysql_query("SELECT COUNT(*) FROM `cms_forum_files` WHERE `subcat` = '$id'" . $sql), 0); if ($count > 0) $filelink = '' . $lng_forum['files_section'] . ''; } elseif ($type1['type'] == 't') { $count = mysql_result(mysql_query("SELECT COUNT(*) FROM `cms_forum_files` WHERE `topic` = '$id'" . $sql), 0); if ($count > 0) $filelink = '' . $lng_forum['files_topic'] . ''; } $filelink = isset($filelink) ? $filelink . ' (' . $count . ')' : false; /* ----------------------------------------------------------------- Счетчик "Кто в теме?" ----------------------------------------------------------------- */ $wholink = false; if ($user_id && $type1['type'] == 't') { $online_u = mysql_result(mysql_query("SELECT COUNT(*) FROM `users` WHERE `lastdate` > " . (time() - 300) . " AND `place` = 'forum,$id'"), 0); $online_g = mysql_result(mysql_query("SELECT COUNT(*) FROM `cms_sessions` WHERE `lastdate` > " . (time() - 300) . " AND `place` = 'forum,$id'"), 0); $wholink = '' . $lng_forum['who_here'] . '? (' . $online_u . ' / ' . $online_g . ')
'; } /* ----------------------------------------------------------------- Выводим верхнюю панель навигации ----------------------------------------------------------------- */ echo '' . '

» ' . functions::display_memu($tree) . '

' . '
' . $lng['search'] . '' . ($filelink ? ' | ' . $filelink : '') . ($wholink ? ' | ' . $wholink : '') . '
'; /* ----------------------------------------------------------------- Отрбражаем содержимое форума ----------------------------------------------------------------- */ switch ($type1['type']) { case 'f': /* ----------------------------------------------------------------- Список разделов форума ----------------------------------------------------------------- */ echo '
'.$type1['text'].'
'; $req = mysql_query("SELECT `id`, `text`, `soft` FROM `forum` WHERE `type`='r' AND `refid`='$id' ORDER BY `realid`"); $total = mysql_num_rows($req); if ($total) { $i = 0; while (($res = mysql_fetch_assoc($req)) !== false) { echo $i % 2 ? '
' : '
'; $coltem = mysql_result(mysql_query("SELECT COUNT(*) FROM `forum` WHERE `type` = 't' AND `refid` = '" . $res['id'] . "'"), 0); echo ' ' . bbcode::tags($res['text']) . ''; if ($coltem) echo " [$coltem]"; if (!empty($res['soft'])) echo '
' . $res['soft'] . '
'; echo '
'; ++$i; } unset($_SESSION['fsort_id']); unset($_SESSION['fsort_users']); } else { echo ''; } echo '
' . $lng['total'] . ': ' . $total . '
'; break; case 'r': /* ----------------------------------------------------------------- Список топиков ----------------------------------------------------------------- */ echo '

Mục: '.$type1['text'].'

'; $total = mysql_result(mysql_query("SELECT COUNT(*) FROM `forum` WHERE `type`='t' AND `refid`='$id'" . ($rights >= 7 ? '' : " AND `close`!='1'")), 0); if (($user_id && !isset($ban['1']) && !isset($ban['11']) && $set['mod_forum'] != 3) || core::$user_rights) { } if ($total) { $req = mysql_query("SELECT * FROM `forum` WHERE `type`='t'" . ($rights >= 7 ? '' : " AND `close`!='1'") . " AND `refid`='$id' ORDER BY `id` DESC LIMIT $start, $kmess"); $i = 0; while (($res = mysql_fetch_assoc($req)) !== false) { if ($res['close']) echo '
'; else echo '
'; $nikuser = mysql_query("SELECT `from` FROM `forum` WHERE `type` = 'm' AND `close` != '1' AND `refid` = '" . $res['id'] . "' ORDER BY `time` DESC LIMIT 1"); $nam = mysql_fetch_assoc($nikuser); $colmes = mysql_query("SELECT COUNT(*) FROM `forum` WHERE `type`='m' AND `refid`='" . $res['id'] . "'" . ($rights >= 7 ? '' : " AND `close` != '1'")); $colmes1 = mysql_result($colmes, 0); $cpg = ceil($colmes1 / $kmess); $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); // Значки echo '
'; $rq=mysql_query("SELECT `text` FROM `forum` WHERE `type`='m' AND `refid`='".$res['id']."' ORDER BY `id` ASC LIMIT 1"); $rs=mysql_fetch_array($rq); echo ''; echo '' . bbcode::tags($res['text']) . '
'; echo ' Lượt xem: '.$res['view'].''; echo '
'; ++$i; } unset($_SESSION['fsort_id']); unset($_SESSION['fsort_users']); } else { echo ''; } echo '
' . $lng['total'] . ': ' . $total . '
'; if ($total > $kmess) { echo '
' . functions::display_pagination('index.php?id=' . $id . '&', $start, $total, $kmess) . '
'; } echo '
'; echo '

Truyện Teen hay

Truyện Tiểu Thuyết Haywap truyen-down

Truyện tiểu thuyết, truyên tiểu thuyết full,tiểu thuyết hay, truyện tiểu thuyết tuổi teen

'; break; case 't': /* ----------------------------------------------------------------- Читаем топик ----------------------------------------------------------------- */ $filter = isset($_SESSION['fsort_id']) && $_SESSION['fsort_id'] == $id ? 1 : 0; $sql = ''; if ($filter && !empty($_SESSION['fsort_users'])) { // Подготавливаем запрос на фильтрацию юзеров $sw = 0; $sql = ' AND ('; $fsort_users = unserialize($_SESSION['fsort_users']); foreach ($fsort_users as $val) { if ($sw) $sql .= ' OR '; $sortid = intval($val); $sql .= "`forum`.`user_id` = '$sortid'"; $sw = 1; } $sql .= ')'; } if ($user_id && !$filter) { // Фиксация факта прочтения топика } if ($rights < 7 && $type1['close'] == 1) { echo '

' . $lng_forum['topic_deleted'] . '
' . $lng_forum['to_section'] . '

'; require('../incfiles/end.php'); exit; } // Счетчик постов темы $colmes = mysql_result(mysql_query("SELECT COUNT(*) FROM `forum` WHERE `type`='m'$sql AND `refid`='$id'" . ($rights >= 7 ? '' : " AND `close` != '1'")), 0); if ($start > $colmes) $start = $colmes - $kmess; // Выводим название топика echo '

 ' . bbcode::tags($type1['text']) . '

'; if ($colmes > $kmess) { echo '
' . functions::display_pagination2(''.$home.'/forum/'.functions::manhhai($type1["text"]).'_' . $id, $start, $colmes, $kmess) . '
'; } echo ''; // Метки удаления темы if ($type1['close']) echo '
' . $lng_forum['topic_delete_who'] . ': ' . $type1['close_who'] . '
'; elseif (!empty($type1['close_who']) && $rights >= 7) echo '
' . $lng_forum['topic_delete_whocancel'] . ': ' . $type1['close_who'] . '
'; // Метки закрытия темы if ($type1['edit']) echo '
' . $lng_forum['topic_closed'] . '
'; /* ----------------------------------------------------------------- Блок голосований ----------------------------------------------------------------- */ if ($type1['realid']) { $clip_forum = isset($_GET['clip']) ? '&clip' : ''; $vote_user = mysql_result(mysql_query("SELECT COUNT(*) FROM `cms_forum_vote_users` WHERE `user`='$user_id' AND `topic`='$id'"), 0); $topic_vote = mysql_fetch_assoc(mysql_query("SELECT `name`, `time`, `count` FROM `cms_forum_vote` WHERE `type`='1' AND `topic`='$id' LIMIT 1")); echo '
' . functions::checkout($topic_vote['name']) . '
'; $vote_result = mysql_query("SELECT `id`, `name`, `count` FROM `cms_forum_vote` WHERE `type`='2' AND `topic`='" . $id . "' ORDER BY `id` ASC"); if (!$type1['edit'] && !isset($_GET['vote_result']) && $user_id && $vote_user == 0) { // Выводим форму с опросами echo '
'; while (($vote = mysql_fetch_assoc($vote_result)) !== false) { echo ' ' . functions::checkout($vote['name'], 0, 1) . '
'; } echo '


' . $lng_forum['results'] . '

'; } else { // Выводим результаты голосования echo ''; while (($vote = mysql_fetch_assoc($vote_result)) !== false) { $count_vote = $topic_vote['count'] ? round(100 / $topic_vote['count'] * $vote['count']) : 0; echo functions::checkout($vote['name'], 0, 1) . ' [' . $vote['count'] . ']
'; echo '' . $lng_forum['rating'] . ': ' . $count_vote . '%
'; } echo '
' . $lng_forum['total_votes'] . ': '; if ($datauser['rights'] > 6) echo '' . $topic_vote['count'] . ''; else echo $topic_vote['count']; echo '
'; if ($user_id && $vote_user == 0) echo '
' . $lng['vote'] . '
'; } } $curators = !empty($type1['curators']) ? unserialize($type1['curators']) : array(); $curator = false; if ($rights < 6 && $rights != 3 && $user_id) { if (array_key_exists($user_id, $curators)) $curator = true; } /* ----------------------------------------------------------------- Фиксация первого поста в теме ----------------------------------------------------------------- */ if (($set_forum['postclip'] == 2 && ($set_forum['upfp'] ? $start < (ceil($colmes - $kmess)) : $start > 0)) || isset($_GET['clip'])) { $postreq = mysql_query("SELECT `forum`.*, `users`.`sex`, `users`.`rights`, `users`.`lastdate`, `users`.`status`, `users`.`datereg` FROM `forum` LEFT JOIN `users` ON `forum`.`user_id` = `users`.`id` WHERE `forum`.`type` = 'm' AND `forum`.`refid` = '$id'" . ($rights >= 7 ? "" : " AND `forum`.`close` != '1'") . " ORDER BY `forum`.`id` LIMIT 1"); $postres = mysql_fetch_assoc($postreq); echo '

'; if ($postres['sex']) echo ' '; else echo ' '; if ($user_id && $user_id != $postres['user_id']) { echo '' . $postres['from'] . ' ' . ' ' . $lng_forum['reply_btn'] . ' ' . ' ' . $lng_forum['cytate_btn'] . ' '; } else { echo '' . $postres['from'] . ' '; } $user_rights = array( 1 => 'Kil', 3 => 'Mod', 6 => 'Smd', 7 => 'Adm', 8 => 'SV' ); echo @$user_rights[$postres['rights']]; echo (time() > $postres['lastdate'] + 300 ? ' [Off]' : ' [ON]'); echo ' (' . functions::display_date($postres['time']) . ')
'; if ($postres['close']) { echo '' . $lng_forum['post_deleted'] . '
'; } echo functions::checkout(substr($postres['text'], 0, 500), 0, 2); if (strlen($postres['text']) > 500) echo '...' . $lng_forum['read_all'] . ''; echo '

'; } if ($filter) echo '
' . $lng_forum['filter_on'] . '
'; // Задаем правила сортировки (новые внизу / вверху) if ($user_id) $order = $set_forum['upfp'] ? 'DESC' : 'ASC'; else $order = ((empty($_SESSION['uppost'])) || ($_SESSION['uppost'] == 0)) ? 'ASC' : 'DESC'; // Запрос в базу $req = mysql_query("SELECT `forum`.*, `users`.`sex`, `users`.`rights`, `users`.`lastdate`, `users`.`status`, `users`.`datereg` FROM `forum` LEFT JOIN `users` ON `forum`.`user_id` = `users`.`id` WHERE `forum`.`type` = 'm' AND `forum`.`refid` = '$id'" . ($rights >= 7 ? "" : " AND `forum`.`close` != '1'") . "$sql ORDER BY `forum`.`id` $order LIMIT $start, $kmess"); // Верхнее поле "Написать" if (($user_id && !$type1['edit'] && $set_forum['upfp'] && $set['mod_forum'] != 3) || ($rights >= 7 && $set_forum['upfp'])) { echo '
'; if ($set_forum['farea']) { echo '

' . (!$is_mobile ? bbcode::auto_bb('form1', 'msg') : '') . '

' . '

' . $lng_forum['add_file'] . ($set_user['translit'] ? '
' . $lng['translit'] : '') . '

' . ($set_forum['preview'] ? '' : '') . '

'; } else { echo '

'; } } if ($rights == 3 || $rights >= 6) echo '
'; $i = 1; while (($res = mysql_fetch_assoc($req)) !== false) { if ($res['close']) echo '
'; else echo $i % 2 ? '
' : '
'; echo '
'; if ($set_user['avatar']) { echo '
'; if (file_exists(('../files/users/avatar/' . $res['user_id'] . '.png'))) echo ' '; else echo ' '; echo ''; } if ($res['sex']) echo ' '; else echo ' '; if ($res['rights'] >= 0) { $color['nick'] = 'black'; } if ($res['rights'] == 9 ) { $color['nick'] = 'red'; } // Ник юзера и ссылка на его анкету if ($res['check']) { echo '' . nick($res['user_id']) . ' '; } else { echo '' . $res['from'] . ' '; } // Метка должности $user_rights = array( 0 => '(Khách)', 1 => '(Khách)', 2 => '(Mod dự bị)', 3 => '(Tổng Quản Lí)', 6 => '(Quản Trị Viên)', 7 => '(Giám Đốc)', 9 => '(Admin)' ); echo @$user_rights[$res['rights']]; // Метка Онлайн / Офлайн echo '
'.functions::display_date($res['time']).'
'; // Ссылки на ответ и цитирование if ($set_user['avatar']) echo '
'; /* ----------------------------------------------------------------- Hiển thị bài viết ----------------------------------------------------------------- */ $trang = $_GET['trang']; if(empty($trang)) $trang=1; $show = '8000'; $tx = $res['text']; $strrpos = mb_strrpos($tx, " "); $total = 1; if(isset($trang)){ $trang = abs(intval($trang)); if($trang == 0) $trang = 1; $start = $trang-1; }else{ $trang = $start+1; } $ta = 0; if($strrpos){ while($ta < $strrpos){ $string = mb_substr($tx, $ta, $show); $tb = mb_strrpos($string, " "); $m_sim = $tb; $strings[$total] = $string; $ta = $tb + $ta; if($trang == $total){ $nd = $strings[$total]; } if($strings[$total] == ""){ $ta = $strrpos++; }else{ $total++; } } if($trang >= $total){ $trang = $total-1; $nd = $strings[$trang]; } $total = $total-1; if($trang != $total){ $prb = mb_strrpos($nd, " "); $nd = mb_substr($nd, 0, $prb); } } else{ $nd = $tx; } $text = $nd; $text = functions::checkout($text, 1, 1); if ($set_user['smileys']) $text = functions::smileys($text, $res['rights'] ? 1 : 0); echo ''.$text.''; if(empty($trang)) $trang=1; if($total > 1){ if($trang != 1) $pervpage = ' « '; if($trang != $total) $nextpage = ' »'; if($trang-4 > 0) $first = '1...'; if($trang+4 <= $total) $last = '...'.$total.''; if($trang-2 > 0) $trang2left = ' '.($trang-2).' '; if($trang-1 > 0) $trang1left = ''.($trang-1).' '; if($trang+2 <= $total) $trang2right = ' '.($trang+2).''; if($trang+1 <= $total) $trang1right = ' '.($trang+1).''; if($total > 1) $xemngay = '
'.$pervpage.$first.$trang2left.$trang1left.''.$trang.''.$trang1right.$trang2right.$last.$nextpage.'
'; echo ''.$xemngay.''; echo'

'; } if ($res['kedit']) { // Если пост редактировался, показываем кем и когда } // Если есть прикрепленный файл, выводим его описание $freq = mysql_query("SELECT * FROM `cms_forum_files` WHERE `post` = '" . $res['id'] . "'"); if (mysql_num_rows($freq) > 0) { echo '

Tải Xuống'; while ( $fres = mysql_fetch_assoc($freq)) { $fls = round(@filesize('../files/forum/attach/' . $fres['filename']) / 1024, 2); // Предпросмотр изображений $att_ext = strtolower(functions::format('./files/forum/attach/' . $fres['filename'])); $pic_ext = array( 'gif', 'jpg', 'jpeg', 'png' ); if (in_array($att_ext, $pic_ext)) { echo ''; } else { $jar_ext = array( 'jar' ); echo '
'; echo ($att_ext == 'jar' ? '' : ''); echo '' . $fres['filename'] . ''; if (in_array($att_ext, $jar_ext)) echo ' | .jad'; echo '
Kích cỡ: '.$fls.' Kb
'; echo 'Tải về: '.$fres['dlcount'].' lần'; if ($rights >= 9) echo' - Xóa'; if ($fls == 0) { echo'
File đã bị xóa'; } echo '
'; } $file_id = $fres['id']; } } echo '
'; echo '

Đọc truyện , truyện sex, Truyện ngắn, Truyện Tiểu thuyết, truyện sex hay truyện teen,wap truyen-down truyện tình yêu, đọc truyện ma,wap truyen-down truyện cười


'; //Tag forum if($type1['tags']){ echo '
Tags: '; $deye_jml_tag=substr_count($type1['tags'],',')+1; for($t=0; $t<$deye_jml_tag; $t++) { $deye_exp_label=explode(',',$type1['tags']); if (!empty($deye_exp_label) ? ', ' : '') { echo '

'.$deye_exp_label[$t].',

'; } } echo '
'; } if ((($rights == 3 || $rights >= 6 || $curator) && $rights >= $res['rights']) || ($res['user_id'] == $user_id && !$set_forum['upfp'] && ($start + $i) == $colmes && $res['time'] > time() - 300) || ($res['user_id'] == $user_id && $set_forum['upfp'] && $start == 0 && $i == 1 && $res['time'] > time() - 300)) { // Ссылки на редактирование / удаление постов $menu = array( 'Sửa | Upload', ($rights >= 7 && $res['close'] == 1 ? '' . $lng_forum['restore'] . '' : ''), ($res['close'] == 1 ? '' : 'Xóa') ); echo '
'; if ($rights == 3 || $rights >= 6) echo ' '; echo functions::display_menu($menu); if ($res['close']) { echo '
' . $lng_forum['who_delete_post'] . ': ' . $res['close_who'] . '
'; } elseif (!empty($res['close_who'])) { echo '
' . $lng_forum['who_restore_post'] . ': ' . $res['close_who'] . '
'; } if ($rights == 3 || $rights >= 6) { if ($res['ip_via_proxy']) { echo ''; } else { echo '
' . long2ip($res['ip']) . ' - ' . $res['soft'] . '
'; } } echo '
'; } echo '
'; if ($i == 1) { echo '
'.$cms_ads[1].'
'; } ++$i; } if ($rights == 3 || $rights >= 6) { echo '
'; echo ''; } // Нижнее поле "Написать" echo '
' . ' Lượt xem: '.$type1['view'].'
'; if ($colmes > $kmess) { echo '
' . functions::display_pagination2(''.$home.'/forum/'.functions::manhhai($type1["text"]).'_' . $id, $start, $colmes, $kmess) . '
'; } echo '
'; //chia se bai viet echo '
Chia sẻ:
BB Code:

Link:
'; ///cung chuyen muc echo '
Bài Viết Tương Tự
'; $cung = mysql_query("SELECT * FROM `forum` WHERE `id`= '" . $id . "'"); $tr = mysql_fetch_assoc($cung); $sql = mysql_query("SELECT * FROM `forum` WHERE `refid` = '{$tr['refid']}' && `type` = 't' order by rand() limit 5 "); while($row = mysql_fetch_assoc($sql)){ echo '
» ' . tags($row['text']) . ' [Lượt xem: '.$row['view'].']
'; } ///chu de ngau nhien echo '
Chủ đề ngẫu nhiên
'; $total = mysql_result(mysql_query("SELECT COUNT(*) FROM `forum` WHERE `type` = 't' && `close` = '0' "),0); $sql = mysql_query("SELECT * FROM `forum` WHERE `type` = 't' && `close` = '0' order by rand() limit 5 "); while($row = mysql_fetch_assoc($sql)){ echo '
» ' . tags($row['text']) . ' [Lượt xem: '.$row['view'].']
'; } /* ----------------------------------------------------------------- Ссылки на модераторские функции ----------------------------------------------------------------- */ if ($curators) { $array = array(); foreach ($curators as $key => $value) $array[] = '' . $value . ''; echo '

' . $lng_forum['curators'] . ': ' . implode(', ', $array) . '

'; } if ($rights == 3 || $rights >= 6) { echo '

'; echo 'Khóa Chủ Đề
'; echo 'Thêm từ khóa
'; if ($rights >= 7) echo '' . $lng_forum['topic_rename'] . '
'; echo 'Change Images
'; // Удалить - восстановить тему if ($type1['close'] == 1) echo '' . $lng_forum['topic_restore'] . '
'; echo '' . $lng_forum['topic_delete'] . '
'; echo '' . $lng_forum['topic_move'] . '

'; } if ($wholink) echo '
' . $wholink . '
'; if ($filter) echo '
' . $lng_forum['filter_cancel'] . '
'; else //echo '
' . $lng_forum['filter_on_author'] . '
'; //echo '' . $lng_forum['download_topic'] . ''; break; default: /* ----------------------------------------------------------------- Если неверные данные, показываем ошибку ----------------------------------------------------------------- */ echo functions::display_error($lng['error_wrong_data']); break; } } else { /* ----------------------------------------------------------------- Список Категорий форума ----------------------------------------------------------------- */ $count = mysql_result(mysql_query("SELECT COUNT(*) FROM `cms_forum_files`" . ($rights >= 7 ? '' : " WHERE `del` != '1'")), 0); echo '' . '
» ' . $lng['forum'] . '
' . '
'; ////////mod xem nhieu $tong = mysql_result(mysql_query("SELECT COUNT(*) FROM `forum` WHERE `type` = 't' and kedit='0' AND `close`!='1'"), 0); $req = mysql_query("SELECT * FROM `forum` WHERE `type` = 't' and `close`!='1' ORDER BY `danhgia` DESC LIMIT $start, $kmess"); echo '
Xem nhiều nhất
'; $req = mysql_query("SELECT * FROM `forum` WHERE `type` = 't' and kedit='0' AND `close`!='1' ORDER BY `view` DESC LIMIT $start, $kmess"); if ($tong > 0) { $i = 0; while ($arr = mysql_fetch_array($req)) { $q3 = mysql_query("select `id`, `refid`, `text` from `forum` where type='r' and id='" . $arr['refid'] . "'"); $razd = mysql_fetch_array($q3); $q4 = mysql_query("select `id`, `refid`, `text` from `forum` where type='f' and id='" . $razd['refid'] . "'"); $frm = mysql_fetch_array($q4); $nikuser = mysql_query("SELECT `from`,`id`, `time`, `user_id` FROM `forum` WHERE `type` = 'm' AND `close` != '1' AND `refid` = '" . $arr['id'] . "'ORDER BY time DESC"); $colmes1 = mysql_num_rows($nikuser); $cpg = ceil($colmes1 / $kmess); $nam = mysql_fetch_array($nikuser); $gettop = mysql_fetch_assoc(mysql_query("SELECT * FROM `forum` WHERE `type` = 'r' and id = '".$arr['refid']."'")); $topic = $gettop['text']; echo '
'; echo '
'; $rq=mysql_query("SELECT `text` FROM `forum` WHERE `type`='m' AND `refid`='".$arr['id']."' ORDER BY `id` ASC LIMIT 1"); $rs=mysql_fetch_array($rq); if(preg_match('#\[img\](https?://.+?)\[\/img\]#i', $rs['text'], $Img)) { $img=$Img[1]; } else { $img=''.$home.'/pages/icon.jpg'; } echo ''; echo ''; echo ' 1 && $set_forum['upfp'] && $set_forum['postclip'] ? '_clip_' : '') . ($set_forum['upfp'] && $cpg > 1 ? '_p' . $cpg : '.html') . '" title="'.notags($arr['text']).'">' . bbcode::tags($arr['text']) . '
'; echo ' Lượt xem: '.$arr['view'].'
'; echo ' Mục: '.$topic.''; echo '
'; $i++; } } if ($tong > $kmess){echo '
' . functions::display_pagination('index.php?', $start, $tong, $kmess) . '
';} echo '
'; ///////////////////// $req = mysql_query("SELECT `id`, `text`, `soft` FROM `forum` WHERE `type`='f' ORDER BY `realid`"); $i = 0; while (($res = mysql_fetch_array($req)) !== false) { echo '
'.$res['text'].'
'; // $count = mysql_result(mysql_query("SELECT COUNT(*) FROM `forum` WHERE `type`='r' and `refid`='" . $res['id'] . "'"), 0); $reqf = mysql_query("SELECT `id`, `text`, `soft` FROM `forum` WHERE `type`='r' AND `refid`='".$res['id']."' ORDER BY `realid`"); while (($resf = mysql_fetch_array($reqf)) !== false) { $subcount = mysql_result(mysql_query("SELECT COUNT(*) FROM `forum` WHERE `type`='t' and `refid`='" . $resf['id'] . "'"), 0); echo '
'; echo ' ' . $resf['text'] . ' (' . $subcount . ')'; echo '
'; } echo '
'; } $online_u = mysql_result(mysql_query("SELECT COUNT(*) FROM `users` WHERE `lastdate` > " . (time() - 300) . " AND `place` LIKE 'forum%'"), 0); $online_g = mysql_result(mysql_query("SELECT COUNT(*) FROM `cms_sessions` WHERE `lastdate` > " . (time() - 300) . " AND `place` LIKE 'forum%'"), 0); echo '
' . ($user_id ? '' . $lng_forum['who_in_forum'] . '' : $lng_forum['who_in_forum']) . ' (' . $online_u . ' / ' . $online_g . ')
'; unset($_SESSION['fsort_id']); unset($_SESSION['fsort_users']); } /////////////////Đếm lượt ////////////// mysql_query("UPDATE forum SET view = view + 1 WHERE id = $id"); // Навигация внизу страницы //echo '

' . ($id ? '' . $lng['to_forum'] . '
' : ''); //echo '

'; if (!$user_id) { if ((empty($_SESSION['uppost'])) || ($_SESSION['uppost'] == 0)) { //echo '' . $lng_forum['new_on_top'] . ''; } else { echo '' . $lng_forum['new_on_bottom'] . ''; } } } require_once('../incfiles/end.php'); ?>
game nha tai tro
Free backlink Free backlink backlink bắc giang backlink bắc giang