0, 'upfp' => 0, 'preview' => 1, 'postclip' => 1, 'postcut' => 2 ); /* ----------------------------------------------------------------- S?SzSlN?SlSa NESzN?N^SlNESuS?SlSa N"SzSaS"SlS2, NESzS.NESuN^SuS?S?N

' . $error . '

'; require('../incfiles/end.php'); exit; } $headmod = $id ? 'forum,' . $id : 'forum'; /* ----------------------------------------------------------------- Mod Prefix waptok ----------------------------------------------------------------- */ switch ($res['waptok']){ case 0 : $prefix='[DEFAULT]'; break; case 1 : $prefix='[SHARE]'; break; case 2 : $prefix='[MODD]'; break; case 3 : $prefix='[FIX]'; break; case 4 : $prefix='[ASK]'; break; case 5 : $prefix='[HELP]'; break; case 6 : $prefix='[HOT]'; break; case 7 : $prefix='[DISCUSS]'; break; case 8 : $prefix='[INFO]'; break; case 9 : $prefix='[NOTIFE]'; break; default: $prefix=''; break; } $textl=$prefix.' '.$titlex; // S-SzS"SlS"SlS2SaSl N?N,NESzS?SlN? N"SlNEN?SLSz if (empty($id)) { $textl = '' . $lng['forum'] . ''; } else { $trangvip = mysql_query("SELECT * FROM `forum` WHERE `id`= '$id'"); // TAGS MOD $trangvip1 = mysql_fetch_assoc($trangvip); // waptok tags $req = mysql_query("SELECT `text` FROM `forum` WHERE `id`= '" . $id . "'"); $res = mysql_fetch_assoc($req); $hdr = strtr($res['text'], array( '«' => '', '»' => '', '"' => '', '&' => '', '<' => '', '>' => '', ''' => '' )); $hdr = mb_substr($hdr, 0, 30); $hdr = functions::checkout($hdr); $hdr = html_entity_decode($hdr,ENT_QUOTES,'UTF-8'); $textl = mb_strlen($res['text']) > 30 ? $hdr . '...' : $hdr; //$textl = ''.bbcode::notags($res['text']).'...'.$trangvip1['tags'].''; } // SzSuNESuSaS"NZN?SzSuSL NESuS?SlSLN< NESzS+SlN,N< $mods = array( 'addfile', 'addvote', 'close', 'deltema', 'delvote', 'editpost', 'editvote', 'file', 'files', 'filter', 'import', 'loadtem', 'massdel', 'new', 'nt', 'per', 'post', 'ren', 'restore', 'say', 'tema', 'users', 'vip', 'vote', 'who', 'curators' ); if ($act && ($key = array_search($act, $mods)) !== false && file_exists('includes/' . $mods[$key] . '.php')) { require('includes/' . $mods[$key] . '.php'); } else { require('../incfiles/head.php'); // SRN?S"Sl N"SlNEN?SL S.SzSaNEN' . $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) { // SzSzNESuS'SuS"NZSuSL N,SlSz S.SzSzNESlN?Sz (SaSzN,SzS"SlS", SlS"Sl N,SuSLSz) $type = mysql_query("SELECT * FROM `forum` WHERE `id`= '$id'"); if (!mysql_num_rows($type)) { // SRN?S"Sl N,SuSLN< S?Su N?N?NeSuN?N,S2N?SuN,, SzSlSaSzS.N' . $lng['to_forum'] . ''); require('../incfiles/end.php'); exit; } $type1 = mysql_fetch_assoc($type); // SRSlSaN?SzN?SlNZ N"SzSaN,Sz SzNESlN?N,SuS?SlNZ ScSlSzSlSaSz 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() . "'"); } } // SzSlS"N?N?SzSuSL N?N,NEN?SaN,N?NEN? N"SlNEN?SLSz $res = true; $allow = 0; $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[] = '' . $res['text'] . ''; if ($res['type'] == 'r' && !empty($res['edit'])) { $allow = intval($res['edit']); } } $parent = $res['refid']; } $tree[] = '' . $lng['forum'] . ''; krsort($tree); if ($type1['type'] != 't' && $type1['type'] != 'm') $tree[] = '' . $type1['text'] . ''; // S?N?SuN,N?SlSa N"SzSaS"SlS2 Sl N?N?N 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; // S?N?SuN,N?SlSa "SsN,Sl S2 N,SuSLSu?" $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 . ')
'; } // S'N

' . counters::forum_new(1) . '

' . '
' . functions::display_menu($tree) . '
' . '
' . $lng['search'] . '' . ($filelink ? ' | ' . $filelink : '') . ($wholink ? ' | ' . $wholink : '') . '
'; // bookmark if ($type1['type'] == 't' && $user_id) { if(!$res_r['bookmark'] && isset($_GET['addBookmark'])) { mysql_query("UPDATE `cms_forum_rdm` SET `bookmark` = '1' WHERE `topic_id` = '$id' AND `user_id` = '$user_id' LIMIT 1"); $res_r['bookmark'] = 1; } elseif($res_r['bookmark'] && isset($_GET['delBookmark'])) { mysql_query("UPDATE `cms_forum_rdm` SET `bookmark` = '0' WHERE `topic_id` = '$id' AND `user_id` = '$user_id' LIMIT 1"); $res_r['bookmark'] = 0; } echo '
'; echo $res_r['bookmark'] ? 'Hapus Bookmark' : 'Tambah Bookmark'; echo ' | Panel Bookmark'; $usersBookmark = mysql_result(mysql_query("SELECT COUNT(*) FROM `cms_forum_rdm` WHERE `topic_id` = '$id' AND `bookmark` = '1'"), 0); if($usersBookmark && !isset($_GET['usersBookmark'])) echo '
' . $usersBookmark . ' Users Bookmark this thread.'; echo '
'; } if(isset($_GET['usersBookmark']) && $usersBookmark) { echo '
'; $req = mysql_query("SELECT `cms_forum_rdm`.*, `users`.`rights`, `users`.`lastdate`, `users`.`name`, `users`.`sex`, `users`.`status`, `users`.`datereg`, `users`.`id` FROM `cms_forum_rdm` LEFT JOIN `users` ON `cms_forum_rdm`.`user_id` = `users`.`id` WHERE `cms_forum_rdm`.`topic_id`='$id' AND `cms_forum_rdm`.`bookmark` = '1' ORDER BY `id` DESC LIMIT $start,$kmess"); $i = 0; while ($res = mysql_fetch_array($req)) { echo $i % 2 ? '
' : '
'; echo functions::display_user($res, array ('iphide' => 1)); echo '
'; ++$i; } echo '
Total: ' . $usersBookmark . '
'; if ($usersBookmark > $kmess) { echo '
' . functions::display_pagination('index.php?id=' . $id . '&usersBookmark&', $start, $usersBookmark, $kmess) . '
' . '

' . '' . '

'; } echo '
'; echo '

To Thread

'; require_once('../incfiles/end.php'); exit; } //end bookmark switch ($type1['type']) { case 'f': //////////////////////////////////////////////////////////// // S?SzSlN?SlSa NESzS.S'SuS"SlS2 N"SlNEN?SLSz // //////////////////////////////////////////////////////////// echo '
'; $req = mysql_query("SELECT `id`, `text`, `soft`, `edit` 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 '' . $res['text'] . ''; if ($coltem) echo " [$coltem]"; if (!empty($res['soft'])) echo '
' . $res['soft'] . '
'; echo '
'; ++$i; } echo '
'; unset($_SESSION['fsort_id']); unset($_SESSION['fsort_users']); } else { echo '
'; } echo '
' . $lng['total'] . ': ' . $total . '
'; break; case 'r': //////////////////////////////////////////////////////////// // S?SzSlN?SlSa N,SlSzSlSaSlS2 // //////////////////////////////////////////////////////////// $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'] != 4) || core::$user_rights) { // SsS?SlSzSaSz N?SlS.S'SzS?SlNZ S?SlS2SlSa N,SuSLN< echo '
'; } echo '
'; if ($total) { $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"); $i = 0; while (($res = mysql_fetch_assoc($req)) !== false) { if ($res['close']) echo '
'; else echo $i % 2 ? '
' : '
'; $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); // S-S?SzN?SaSl $icons = array( ($np ? (!$res['vip'] ? functions::image('op.gif') : '') : functions::image('np.gif')), ($res['vip'] ? functions::image('pt.gif') : ''), ($res['realid'] ? functions::image('rate.gif') : ''), ($res['edit'] ? functions::image('tz.gif') : '') ); echo functions::display_menu($icons, ' ', ' '); /* ----------------------------------------------------------------- Mod Prefix waptok ----------------------------------------------------------------- */ echo ''; switch ($res['waptok']){ case 0 : echo '[DEFAULT]'; break; case 1 : echo '[SHARE]'; break; case 2 : echo '[MODD]'; break; case 3 : echo '[FIX]'; break; case 4 : echo '[ASK]'; break; case 5 : echo '[HELP]'; break; case 6 : echo '[HOT]'; break; case 7 : echo '[DISCUSS]'; break; case 8 : echo '[INFO]'; break; case 9 : echo '[NOTIFE]'; break; default: break; } echo ''; echo ' ' . $res['text'] . ' [' . $colmes1 . ']'; if ($cpg > 1) { echo ' >>'; } echo '
'; echo $res['from']; if (!empty($nam['from'])) { echo ' / ' . $nam['from']; } echo ' (' . functions::display_date($res['time']) . ')
'; ++$i; } echo '
'; unset($_SESSION['fsort_id']); unset($_SESSION['fsort_users']); } else { echo '
'; } echo '
' . $lng['total'] . ': ' . $total . '
'; if ($total > $kmess) { echo '
' . functions::display_pagination(''.$home.'/forum/'.functions::gantiurl($type1["text"]).'_' . $id, $start, $colmes, $kmess) . '
' . '

' . '' . '' . '

'; } break; case 't': //////////////////////////////////////////////////////////// // SzSlSaSzS.N

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

'; require('../incfiles/end.php'); exit; } // S?N?SuN,N?SlSa SzSlN?N,SlS2 N,SuSLN< $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) { // S~N?SzNESzS2S"NZSuSL S.SzSzNESlN? S?Sz S?SuN?N?NeSuN?N,S2N?NZNeN?NZ N?N,NESzS?SlN?N? $start = max(0, $colmes - (($colmes % $kmess) == 0 ? $kmess : ($colmes % $kmess))); } // S'N
waptok'; /* -------------------------------------------------------- Mod Prefix waptok -------------------------------------------------------- */ echo ' '; switch ($type1['waptok']){ case 0 : echo '[DEFAULT]'; break; case 1 : echo '[SHARE]'; break; case 2 : echo '[MODD]'; break; case 3 : echo '[FIX]'; break; case 4 : echo '[ASK]'; break; case 5 : echo '[HELP]'; break; case 6 : echo '[HOT]'; break; case 7 : echo '[DISCUSS]'; break; case 8 : echo '[INFO]'; break; case 9 : echo '[NOTIFE]'; break; default: break; } echo ' '; echo '' . $type1['text'] . '
'; if ($colmes > $kmess) { echo '
' . functions::display_pagination(''.$home.'/forum/'.functions::gantiurl($type1["text"]).'_' . $id, $start, $colmes, $kmess) . '
'; } echo '
'; /* ------------------------------------------- Mod thank waptok ------------------------------------------- */ include 'prus_mod/like_dislike.php'; // SsSuN,SaSz N?S'SzS"SuS?SlNZ N,SuSLN< 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'] . '
'; } // SsSuN,SaSz S.SzSaNEN' . $lng_forum['topic_closed'] . ''; } // Tags forum echo '
Tags: '; echo $type1['tags']; echo '
'; // simple vip forum include 'vip_waptok.php'; // S'S"SlSa S"SlS"SlN?SlS2SzS?SlSa 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) { // S'N'; while (($vote = mysql_fetch_assoc($vote_result)) !== false) { echo ' ' . functions::checkout($vote['name'], 0, 1) . '
'; } echo '


' . $lng_forum['results'] . '

'; } else { // S'N'; 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 (core::$user_rights > 6) echo '' . $topic_vote['count'] . ''; else echo $topic_vote['count']; echo '
'; if ($user_id && $vote_user == 0) echo ''; } echo ''; } // SzSlS"N?N?SzSuSL S'SzS?S?N 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'] . ' '; } /* ----------------------------------------------------------------- Mod Pangkat waptok ----------------------------------------------------------------- */ if ($res['postforum'] != 0) { $arank = $res['postforum']; if ($arank <= 75) $arank = 'Newbie'; elseif ($arank <= 200) $arank = ''.$set['copyright'].' User'; elseif ($arank <= 400) $arank = ''.$set['copyright'].' Activist'; elseif ($arank <= 600) $arank = ''.$set['copyright'].' Holic'; elseif ($arank <= 850) $arank = ''.$set['copyright'].' Addict'; elseif ($arank <= 1200) $arank = ''.$set['copyright'].' Maniac'; elseif ($arank <= 3200) $arank = ''.$set['copyright'].' Geek'; elseif ($arank <= 4500) $arank = ''.$set['copyright'].' Freak'; elseif ($arank >= 5000) $arank = 'Made in '.$set['copyright'].''; } if (!empty($res['pangkat'])){ $jenenge = '' . bbcode::tags($res['pangkat']). ''; }else{ $jenenge = ''.$arank.''; } $user_rights = array( 0 => '' . $jenenge . '
 ', 3 => 'Moderator
 ', 6 => 'Staff
 ', 7 => 'Ngadimin
 ', 9 => 'Admin Sevuh
 ' ); echo @$user_rights[$postres['rights']]; echo(time() > $postres['lastdate'] + 300 ? '' : ''); echo ' (' . functions::display_date($postres['time']) . ')
'; if ($postres['close']) { echo '' . $lng_forum['post_deleted'] . '
'; } echo functions::checkout(mb_substr($postres['text'], 0, 500), 0, 2); if (mb_strlen($postres['text']) > 500) echo '...' . $lng_forum['read_all'] . ''; echo '

'; } // SzSzSLNZN,SaSz, N?N,Sl S2SaS"NZN?SuS? N"SlS"NSN,NE if ($filter) { echo '
' . $lng_forum['filter_on'] . '
'; } // S-SzS'SzSuSL SzNESzS2SlS"Sz N?SlNEN,SlNESlS2SaSl (S?SlS2N= 7 ? "" : " AND `forum`.`close` != '1'") . "$sql ORDER BY `forum`.`id` $order LIMIT $start, $kmess "); // S'SuNENaS?SuSu SzSlS"Su "StSzSzSlN?SzN,NS" if (($user_id && !$type1['edit'] && $set_forum['upfp'] && $set['mod_forum'] != 3 && $allow != 4) || ($rights >= 7 && $set_forum['upfp'])) { echo '
Balas Cepat
'; if ($set_forum['farea']) { $token = mt_rand(1000, 100000); $_SESSION['token'] = $token; echo '

' . bbcode::auto_bb('form1', 'msg') . '

' . '

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

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

'; } else { echo '

'; } } // S"S"NZ SzS'SLSlS?SlN?N,NESzN?SlSl S2SaS"NZN?SzSuSL N"SlNESLN? SLSzN?N?SlS2SlS"Sl N?S'SzS"SuS?SlNZ SzSlN?N,SlS2 if ($rights == 3 || $rights >= 6) echo '
'; $i = 1; $nomer = $page ? $page * 10 + 1 : 1; //////////////////////////////////////////////////////////// // SzN?S?SlS2S?SlSa N?SzSlN?SlSa SzSlN?N,SlS2 // //////////////////////////////////////////////////////////// while (($res = mysql_fetch_assoc($req)) !== false) { // SRSlS? SzSlN?N,Sz if ($res['close']) echo '
'; else echo $i % 2 ? '
' : '
'; echo '
' . '' . '
 ' . functions::display_date($res['time']) . '#'.($nomer - 10).'
'; // SzSlS"NSS.SlS2SzN,SuS"NSN?SaSlSa SzS2SzN,SzNE echo '
'; if ($set_user['avatar']) { echo '
'; if (file_exists(('../files/users/avatar/' . $res['user_id'] . '.png'))) echo '' . $res['from'] . ''; else echo '' . $res['from'] . ' '; } echo ''; if (!empty($user_id) && ($user_id != $res['user_id'])) { $name_lat = mysql_result (mysql_query ("SELECT `name_lat` FROM `users` WHERE `id` = '" .$res['user_id']. "' LIMIT 1;"), 0); echo ' ' . $res['from'] . ' '; } else { echo ' ' . $res['from'] . ' '; } echo (time() > $res['lastdate'] + 300 ? '':''); echo '
 '; /* ----------------------------------------------------------------- Mod Pangkat waptok ----------------------------------------------------------------- */ if ($res['postforum'] != 0) { $arank = $res['postforum']; if ($arank <= 75) $arank = 'Newbie'; elseif ($arank <= 200) $arank = ''.$set['copyright'].' User'; elseif ($arank <= 400) $arank = ''.$set['copyright'].' Activist'; elseif ($arank <= 600) $arank = ''.$set['copyright'].' Holic'; elseif ($arank <= 850) $arank = ''.$set['copyright'].' Addict'; elseif ($arank <= 1200) $arank = ''.$set['copyright'].' Maniac'; elseif ($arank <= 3200) $arank = ''.$set['copyright'].' Geek'; elseif ($arank <= 4500) $arank = ''.$set['copyright'].' Freak'; elseif ($arank >= 5000) $arank = 'Made in '.$set['copyright'].''; } if (!empty($res['pangkat'])){ $jenenge = '' . bbcode::tags($res['pangkat']). ''; }else{ $jenenge = ''.$arank.''; } /* ----------------------------------------------------------------- Mod pangkat ori ----------------------------------------------------------------- */ $user_rights = array( 0 => '' . $jenenge . '
 ', 3 => 'Moderator
 ', 6 => 'Staff
 ', 7 => 'Ngadimin
 ', 9 => 'Admin Sevuh
 ' ); echo @$user_rights[$res['rights']]; echo '
'; /* ----------------------------------------------------------------- Mod Total Post waptok ----------------------------------------------------------------- */ if ($user_id && $user_id != $res['user_id']) echo 'PM
'; echo 'Post: ' . $res['postforum'] . ''; //if (!empty($res['status'])) // Mod total thanks $waptok = mysql_result(mysql_query("SELECT COUNT(*) FROM `forum_thank` WHERE `user` = " . $res['user_id'] . ";"), 0); echo '
waptokthank ' . $waptok . ''; //echo '
' . $res['status'] . ''; if ($set_user['avatar']) echo '
'; include 'rank.php'; echo '
'; if ($res['close']) echo '
'; else echo '
'; /* ----------------------------------------------------------------- Mod thank waptok ----------------------------------------------------------------- */ include ('prus_mod/ngusere_seneng.php'); include ('prus_mod/ngusere.php'); //////////////////////////////////////////////////////////// // S'N
Hidden content
Silakan Terima artikel ini harus dipertimbangkan konten tersembunyi
', $text); } else { $text = preg_replace('#\[thank\](.*?)\[/thank\]#si', '\1', $text); } echo $text; if (($start + $i) == 1){ echo '
'; // ads here //echo ' '; } } // SRN?S"Sl SzSlN?N, NESuS'SzSaN,SlNESlS2SzS"N?NZ, SzSlSaSzS.N' . $lng_forum['edited'] . ' ' . $res['edit'] . ' (' . functions::display_date($res['tedit']) . ') [' . $res['kedit'] . ']'; } // SRN?S"Sl SuN?N,NS SzNESlSaNESuSzS"SuS?S?N 0) { $fres = mysql_fetch_assoc($freq); $fls = round(@filesize('../files/forum/attach/' . $fres['filename']) / 1024, 2); echo '
' . $lng_forum['attached_file'] . ':'; // SzNESuS'SzNESlN?SLSlN,NE SlS.SlS+NESzS?SuS?SlSa $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 { if (empty($user_id) || $ban['1'] || $ban['12'] || $ban['11'] || $datauser['postforum'] < 2){ echo '
File Terkunci

Min 2 Tanggapan, Untuk Download File Ini

'; } else { if ($user_id && $user_id != $res['user_id'] && (mysql_result($checkthank, 0) < 1)) echo '
Klik Thanks Untuk Mendownload'; else echo '
' . $fres['filename'] . ''; echo ' (' . $fls . ' kb)
'; echo $lng_forum['downloads'] . ': ' . $fres['dlcount'] . ' ' . $lng_forum['time'] . '
'; $file_id = $fres['id']; if ($rights >= 6) echo' [x] Hapus lampiran'; if ($fls == 0) { echo'
File telah duhapus'; } } } echo '
'; } echo '
'; /* ----------------------------------------------------------------- Mod signature waptok ----------------------------------------------------------------- */ if(!empty($res['podpis'])) echo '
 ' . functions::smileys(bbcode::tags($res['podpis'])) . '
'; echo '
'; if (($start + $i) == 1){ if ($user_id && $user_id != $res['user_id']) { if (!$datauser['karma_off'] && (!$user['rights'] || ($user['rights'] && !$set_karma['adm'])) && $user['ip'] != $datauser['ip']) { $sum = mysql_result(mysql_query("SELECT SUM(`points`) FROM `karma_users` WHERE `user_id` = '$user_id' AND `time` >= '" . $datauser['karma_time'] . "'"), 0); $count = mysql_result(mysql_query("SELECT COUNT(*) FROM `karma_users` WHERE `user_id` = '$user_id' AND `karma_user` = '" .$res['user_id']. "' AND `time` > '" . (time() - 86400) . "'"), 0); if (!$ban && $datauser['postforum'] >= $set_karma['forum'] && $datauser['total_on_site'] >= $set_karma['karma_time'] && ($set_karma['karma_points'] - $sum) > 0 && !$count) { echo 'Polling '; } } } } /* ---------------------------------------------------------------------------------------------------------------------------------- Mod thanks waptok ---------------------------------------------------------------------------------------------------------------------------------- */ if ($user_id && $user_id != $res['user_id']) { include ('prus_mod/ngusere_prus.php'); } echo ' '; echo ''; if ($user_id && $user_id != $res['user_id']) { echo ' Reply ' .'Quote'; } else { if ( $user_id == $res [ 'user_id' ]) echo ' '; } echo '
'; // S?N?N= 6 || $curator) && $rights >= $res['rights']) || ($res['user_id'] == $user_id && !$set_forum['upfp'] && ($start + $i) == $colmes && $res['time'] > time() - 99999999) || ($res['user_id'] == $user_id && $set_forum['upfp'] && $start == 0 && $i == 1 && $res['time'] > time() - 99999999) || ($i == 1 && $allow == 2 && $res['user_id'] == $user_id) ) { $menu = array( '' . $lng['edit'] . '', ($rights >= 7 && $res['close'] == 1 ? '' . $lng_forum['restore'] . '' : ''), ($res['close'] == 1 ? '' : '' . $lng['delete'] . ''), 'Upload', 'Import' ); echo '
'; // SNSuSaS+SlSaN? SLSzN?N?SlS2SlS"Sl N?S'SzS"SuS?SlNZ SzSlN?N,SlS2 if ($rights == 3 || $rights >= 6) echo ' '; // S?S"N?S?SuS+S?SlSu SLSuS?NZ SzSlN?N,Sz echo functions::display_menu($menu); // SzSlSaSzS.N' . $lng_forum['who_delete_post'] . ': ' . $res['close_who'] . '
'; } elseif (!empty($res['close_who'])) { echo '
' . $lng_forum['who_restore_post'] . ': ' . $res['close_who'] . '
'; } // SzSlSaSzS.N= 6) { if ($res['ip_via_proxy']) { echo ''; } else { echo '
' . long2ip($res['ip']) . ' - ' . $res['soft'] . '
'; } } echo '
'; } // mod extra attach $anu1=$res['id']; $c = mysql_result(mysql_query("select COUNT(*) from `att_file` where `fid` = '$anu1'"),0); if($c > 0) { $sql1 = mysql_query("select * from `att_file` where `fid` = '$anu1'"); echo '
Extra screen:
'; while($res = mysql_fetch_array($sql1)) { echo '['.htmlentities($res['name'],ENT_QUOTES,'utf-8').'],'; } 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)) { echo ''; } echo '
'; ++$nomer; ++$i; } // SsS?SlSzSaSz SLSzN?N?SlS2SlS"Sl N?S'SzS"SuS?SlNZ SzSlN?N,SlS2 if ($rights == 3 || $rights >= 6) { echo '
'; echo ''; } // StSlS?S?SuSu SzSlS"Su "StSzSzSlN?SzN,NS" if (($user_id && !$type1['edit'] && !$set_forum['upfp'] && $set['mod_forum'] != 3 && $allow != 4) || ($rights >= 7 && !$set_forum['upfp'])) { echo '
Balas Cepat
'; if ($set_forum['farea']) { $token = mt_rand(1000, 100000); $_SESSION['token'] = $token; echo bbcode::auto_bb('form2', 'msg'); echo '
' . '

' . $lng_forum['add_file']; if ($set_user['translit']) echo '
' . $lng['translit']; echo '

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

'; } else { $token = mt_rand(1000, 100000); $_SESSION['token'] = $token; echo bbcode::auto_bb('form2', 'msg'); echo '

' . '

' . $lng_forum['add_file']; if ($set_user['translit']) echo '
' . $lng['translit']; echo '

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

'; } } echo '
' . functions::image('up.png', array('class' => '')) . '' . '  ' . $lng['total'] . ': ' . $colmes . '
'; // SzSlN?N,NESzS?SlN?S?SzNZ S?SzS2SlS"SzN?SlNZ if ($colmes > $kmess) { echo '
' . functions::display_pagination2(''.$home.'/forum/'.functions::gantiurl($type1["text"]).'_' . $id, $start, $colmes, $kmess) . '
' . '

' . '' . '' . '
'; } else { echo ''; } //include 'last_forum_upload.php'; echo '
Berbagi Artikel Ini
'; echo '
'; /* ----------------------------------------------------------------- Mod similar topic waptok ----------------------------------------------------------------- */ $req = mysql_query("SELECT * FROM `forum` WHERE `type`='t' AND `refid`='$type1[refid]' AND `id`!='$id' ORDER BY `vip` DESC, `time` DESC LIMIT 5"); $total = mysql_num_rows($req); if($total!=0){ echo '
Similar topics
'; while ($res = mysql_fetch_assoc($req)) { echo ($i % 2) ? ''; echo '
'; } // S?SzSlN?SlSa SaN?NESzN,SlNESlS2 if ($curators) { $array = array(); foreach ($curators as $key => $value) { $array[] = '' . $value . ''; } echo '

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

'; } // S?N?N= 6) { echo '

'; if ($rights >= 7) echo '' . $lng_forum['curators_of_the_topic'] . '
'; echo isset($topic_vote) && $topic_vote > 0 ? '' . $lng_forum['edit_vote'] . '
' . $lng_forum['delete_vote'] . '
' : '' . $lng_forum['add_vote'] . '
'; echo '' . $lng_forum['topic_rename'] . '
'; // S-SzSaNEN' . $lng_forum['topic_open'] . '
'; else echo '' . $lng_forum['topic_close'] . '
'; // S' . $lng_forum['topic_restore'] . '
'; echo '' . $lng_forum['topic_delete'] . '
'; if ($type1['vip'] == 1) echo '' . $lng_forum['topic_unfix'] . ''; else echo '' . $lng_forum['topic_fix'] . ''; echo '
' . $lng_forum['topic_move'] . '

'; } break; default: // SRN?S"Sl S?SuS2SuNES?N= 7 ? '' : " WHERE `del` != '1'")), 0); echo '

' . counters::forum_new(1) . '

' . '
' . $lng['forum'] . '
' . ''; $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 $i % 2 ? '
' : '
'; $count = mysql_result(mysql_query("SELECT COUNT(*) FROM `forum` WHERE `type`='r' and `refid`='" . $res['id'] . "'"), 0); echo '' . $res['text'] . ' [' . $count . ']'; if (!empty($res['soft'])) echo '
' . $res['soft'] . '
'; echo '
'; ++$i; } $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']); } // StSzS2SlS"SzN?SlNZ S2S?SlS.N? N?N,NESzS?SlN?N< echo '

' . ($id ? '' . $lng['to_forum'] . '
' : ''); if (!$id) { echo '' . $lng_forum['forum_rules'] . ''; } 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');