| Server IP : 208.122.213.31 / Your IP : 216.73.216.185 Web Server : Apache System : Linux msd6191.mjhst.com 4.18.0-553.137.1.el8_10.x86_64 #1 SMP Wed Jun 24 11:40:24 UTC 2026 x86_64 User : WHMCS_MIA_382 ( 1001) PHP Version : 7.4.33 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/httpd/html/baberankings.com.bak/templates/compiled/ |
Upload File : |
<? global $en,$configtable,$aconfigtable,$hidftable,$fieldtable,$admmenutable,$sertable,$modstable,$poptstable,$paytable,$picstable,$ratetable,$viewtable,$favstable,$questtable,$langtable,$roomtable,$chattable,$chatonlinetable,$polltable,$pollqtable,$blogtable,$bcomtable,$newsltable,$newstable,$typetable,$membtable,$onlinetable,$logstable,$mbantable,$picscommtable,$msgtable,$fgrouptable,$forumtable,$fthreadtable,$fposttable,$fmembtable,$fmodstable,$fsubscrforumtable,$fsubscrthreadtable; /* ----------- FORUM PAGE HEADER ---------- */ ?>
<div id="wide-column">
<Br>
<h1><? echo do_format('f_name'); ?></h1>
<Br>
<div style='text-align:left;'>
<b><a href='<? echo constant('dir'); ?>forums.html'><? echo _forum_index; ?></a>
<? echo do_format('forum_path'); ?>
<Br><Br>
<b><a href='<? echo constant('dir'); ?>forum_thread_post/<? echo do_format('f_id'); ?>'><? echo _post_thr; ?></a> : <a href='<? echo constant('dir'); ?>forum_new.html'><? echo _f_new; ?></a> : <a href='<? echo constant('dir'); ?>forum_search/<? echo do_format('f_id'); ?>'><? echo _f_search; ?></a> : <a href='<? echo constant('dir'); ?>forum_settings.html'><? echo _forum_settings; ?></a> : <a href='<? echo constant('dir'); ?>forum_mark/<? echo do_format('id'); ?>'><? echo _forum_mark_read; ?></a></b><br>
<br><? /* ----------- SUBFORUMS ---------- */ if ($en['subforums_show']) { ?>
<table class=forum_list>
<tr class=headline><td><? echo _forum_name; ?></td><td><? echo _threads; ?></td><td><? echo _posts; ?></td><td><? echo _forum_last_post; ?></td></tr>
<? $to['sql_4c72eccb21b1f'] = 'max'; $from['sql_4c72eccb21b1f'] = '1'; $query = "SELECT * FROM $forumtable LEFT JOIN $fposttable ON p_id=f_last LEFT JOIN $fthreadtable ON t_id=p_thread WHERE f_parent=".do_format('id')." AND f_visible<=".do_format('level')." ORDER BY f_order ASC"; $sql_4c72eccb21b1f = sql_query($query); if (sql_num_rows($sql_4c72eccb21b1f) > 0) { if (!is_numeric($to['sql_4c72eccb21b1f'])) $to['sql_4c72eccb21b1f'] = sql_num_rows($sql_4c72eccb21b1f); $from['sql_4c72eccb21b1f'] = min($from['sql_4c72eccb21b1f'],sql_num_rows($sql_4c72eccb21b1f)); sql_data_seek($sql_4c72eccb21b1f,$from['sql_4c72eccb21b1f']-1); $en['loops_left'] = $en['total_count'] = $en['total_cnt']['sql_4c72eccb21b1f'] = sql_num_rows($sql_4c72eccb21b1f); } $en['loops_cnt']['sql_4c72eccb21b1f'] = 0; $en['loops_count'] = min(sql_num_rows($sql_4c72eccb21b1f)-($from['sql_4c72eccb21b1f']-1),$to['sql_4c72eccb21b1f']); $tos['sql_4c72eccb21b1f'] = $to; while (($line = sql_fetch_assoc($sql_4c72eccb21b1f)) && $en['loops_cnt']['sql_4c72eccb21b1f'] < $tos['sql_4c72eccb21b1f']) {$en = array_merge($en,$line);
if (!is_array($en['loops_cnt'])) { $en['loops_cnt'] = array(); }
$en['loops_index'] = ++$en['loops_cnt']['sql_4c72eccb21b1f'];
$en['loops_left'] = $en['total_cnt']['sql_4c72eccb21b1f']-$en['loops_cnt']['sql_4c72eccb21b1f']; ?>
<tr class=forum_title align=center><Td align=left><a href='<? echo constant('dir'); ?>forum/<? echo do_format('f_id'); ?>.html'><? echo do_format('f_name'); ?></a>
<br><font class=forum_descr><? echo do_format('f_descr'); ?></font>
</td><td><? echo do_format('f_threads'); ?></td><td><? echo do_format('f_posts'); ?></td>
<? $en['tim'] = str_replace(' ',' ',date('M d H:i',$en['p_time'])); ?>
<td>
<small>
<? if ($en['t_posts'] > 0) { $en['page'] = ceil($en['t_posts'] / forum_num_posts); ?>
<b><a href='<? echo constant('dir'); ?>forum_thread/<? echo do_format('t_id'); ?>/<? echo do_format('page'); ?>'><? echo do_format('t_name'); ?></a></b>
<? echo _f_by; if (do_format('p_member') != 0) { ?>
<a href='<? echo constant('dir'); ?>view/<? echo do_format('p_username'); ?>.html'><? echo do_format('p_username'); ?></a>
<? } else { if ($en['p_username'] == '') $en['p_username'] = _f_guest; ?>
<? echo do_format('p_username'); } ?>
<? echo do_format('tim'); ?><br>
<? } else { echo _f_no_posts; } ?>
</small>
</td>
</tr>
<? } ?>
</table><br>
<? } /* ----------- SUBSCRIPTION TO FORUM ---------- */ if ($en['m_id'] != '') { if ($en['is_subscribed'] == 0) { ?>
<div style='text-align:right;margin-bottom:4px;'><a href='<? echo constant('dir'); ?>forum_subscribe/<? echo do_format('f_id'); ?>' style='font-weight:normal;'><? echo _forum_subscribe; ?></a></div>
<? } else { ?>
<div style='text-align:right;margin-bottom:4px;'><? echo _f_subscribed_to_forum; ?>. <a href='<? echo constant('dir'); ?>forum_settings.html'><? echo _f_unsubscribe; ?></a></div>
<? } } else { ?>
<br>
<? } /* ----------- FORUM THREAD LIST HEADER ---------- */ ?>
<table class=forum_list>
<tr class=headline><td width=50%>
<? if ($en['accept_cookies'] ) { ?>
<a href='<? echo constant('dir'); ?>forum_sort/<? echo do_format('id'); ?>/title/<? echo do_format('title_order_t_name'); ?>' title='<? echo _f_sort_by_thread_title; ?>'><? echo _thread_title; ?></a>
<a href='<? echo constant('dir'); ?>forum_sort/<? echo do_format('id'); ?>/title/<? echo do_format('title_order_t_name'); ?>' title='<? echo _f_sort_by_thread_title; ?>'>
<? echo do_format('title_sort_t_name'); ?>
</a></td>
<td width=15%><a href='<? echo constant('dir'); ?>forum_sort/<? echo do_format('id'); ?>/starter/<? echo do_format('title_order_t_username'); ?>' title='<? echo _f_sort_by_thread_starter; ?>'><? echo _f_started; ?></a>
<a href='<? echo constant('dir'); ?>forum_sort/<? echo do_format('id'); ?>/starter/<? echo do_format('title_order_t_username'); ?>' title='<? echo _f_sort_by_thread_starter; ?>'><? echo do_format('title_sort_t_username'); ?></a></td>
<td width=10%><a href='<? echo constant('dir'); ?>forum_sort/<? echo do_format('id'); ?>/posts/<? echo do_format('title_order_t_posts'); ?>' title='<? echo _f_sort_by_thread_posts; ?>'><? echo _posts; ?></a>
<a href='<? echo constant('dir'); ?>forum_sort/<? echo do_format('id'); ?>/posts/<? echo do_format('title_order_t_posts'); ?>' title='<? echo _f_sort_by_thread_posts; ?>'><? echo do_format('title_sort_t_posts'); ?></a></td>
<td width=10%><a href='<? echo constant('dir'); ?>forum_sort/<? echo do_format('id'); ?>/views/<? echo do_format('title_order_t_views'); ?>' title='<? echo _f_sort_by_thread_views; ?>'><? echo _views; ?></a>
<a href='<? echo constant('dir'); ?>forum_sort/<? echo do_format('id'); ?>/views/<? echo do_format('title_order_t_views'); ?>' title='<? echo _f_sort_by_thread_views; ?>'><? echo do_format('title_sort_t_views'); ?></a></td>
<td width=20%><a href='<? echo constant('dir'); ?>forum_sort/<? echo do_format('id'); ?>/last/<? echo do_format('title_order_t_last_time'); ?>' title='<? echo _f_sort_by_thread_last; ?>'><? echo _forum_last_post; ?></a>
<a href='<? echo constant('dir'); ?>forum_sort/<? echo do_format('id'); ?>/last/<? echo do_format('title_order_t_last_time'); ?>' title='<? echo _f_sort_by_thread_last; ?>'><? echo do_format('title_sort_t_last_time'); ?></a></td></tr>
<? } else { echo _thread_title; ?></td><td width=15%><? echo _f_started; ?></td><td width=10%><? echo _posts; ?></td><td width=10%><? echo _views; ?></td><td width=20%><? echo _forum_last_post; ?></td></tr>
<? } /* ----------- FORUM THREAD LIST ---------- */ $to['sql_4c72eccb22303'] = 'max'; $from['sql_4c72eccb22303'] = '1'; $query = "SELECT * FROM $fthreadtable LEFT JOIN $fposttable ON p_id=t_last WHERE t_forum=".do_format('id')." ORDER BY t_sticky DESC, ".do_format('sort')." ".do_format('order')." LIMIT ".do_format('lfrom').",".do_format('forum_num_threads').""; $sql_4c72eccb22303 = sql_query($query); if (sql_num_rows($sql_4c72eccb22303) > 0) { if (!is_numeric($to['sql_4c72eccb22303'])) $to['sql_4c72eccb22303'] = sql_num_rows($sql_4c72eccb22303); $from['sql_4c72eccb22303'] = min($from['sql_4c72eccb22303'],sql_num_rows($sql_4c72eccb22303)); sql_data_seek($sql_4c72eccb22303,$from['sql_4c72eccb22303']-1); $en['loops_left'] = $en['total_count'] = $en['total_cnt']['sql_4c72eccb22303'] = sql_num_rows($sql_4c72eccb22303); } $en['loops_cnt']['sql_4c72eccb22303'] = 0; $en['loops_count'] = min(sql_num_rows($sql_4c72eccb22303)-($from['sql_4c72eccb22303']-1),$to['sql_4c72eccb22303']); $tos['sql_4c72eccb22303'] = $to; while (($line = sql_fetch_assoc($sql_4c72eccb22303)) && $en['loops_cnt']['sql_4c72eccb22303'] < $tos['sql_4c72eccb22303']) {$en = array_merge($en,$line);
if (!is_array($en['loops_cnt'])) { $en['loops_cnt'] = array(); }
$en['loops_index'] = ++$en['loops_cnt']['sql_4c72eccb22303'];
$en['loops_left'] = $en['total_cnt']['sql_4c72eccb22303']-$en['loops_cnt']['sql_4c72eccb22303']; $en['class'] = $en['loops_index'] % 2; $en['read_img'] = isset($en['forum_read'][$en['t_id']]) ? '<font color=red>*</font> ' : ''; ?>
<Tr class=thread_entry_<? echo do_format('class'); ?>><td style='text-align:left;'><? echo do_format('read_img'); if ($en['t_sticky'] == 1) { ?>
<b><? echo _f_sticky_th; ?>:</b>
<? } if ($en['t_mods_only'] > 0) { ?>
<b><? echo _f_closed_th; ?>:</b>
<? } ?>
<a href='<? echo constant('dir'); ?>forum_thread/<? echo do_format('t_id'); ?>.html'><? echo do_format('t_name'); ?></a>
<? if (forum_thread_descr=='Yes' && $en['t_descr'] != '') { ?>
<br><small><? echo do_format('t_descr'); ?></small>
<? } ?>
</td>
<td>
<? if (do_format('t_member') != 0) { ?>
<a href='<? echo constant('dir'); ?>view/<? echo do_format('t_username'); ?>.html'><? echo do_format('t_username'); ?></a>
<? } else { if ($en['t_username'] == '') $en['t_username'] = _f_guest; echo do_format('t_username'); } ?>
</td>
<td><? echo do_format('t_posts'); ?></td>
<td><? echo do_format('t_views'); ?></td>
<? $en['tim'] = str_replace(' ',' ',date('M d H:i',$en['p_time'])); ?>
<td>
<? echo _f_by; if (do_format('p_member') != 0) { ?>
<a href='<? echo constant('dir'); ?>view/<? echo do_format('p_username'); ?>.html'><? echo do_format('p_username'); ?></a>
<? } else { if ($en['p_username'] == '') $en['p_username'] = _f_guest; ?>
<? echo do_format('p_username'); } ?>
<? echo do_format('tim'); ?>
</td>
</tr>
<? $en['lc']++; } /* ----------- NO THREADS POSTED ---------- */ if ($en['lc'] == '') { ?>
<tr class=thread_entry_0><td colspan=5><? echo _no_threads; ?></td></tr>
<? } ?>
</table><? /* ----------- FORUM NAVIGATION ---------- */ ?>
<BR><div style='text-align:left;'>
<? if ($en['lc'] != '') { echo _f_showing_t; ?> <b><? echo do_format('from'); ?> - <? echo do_format('to'); ?></b> <? echo _from; ?> <b><? echo do_format('f_threads'); ?></b> <? echo _f_total_t; ?>.<Br>
<? if ($en['pages'] > 1) { echo _jump_to_page; ?> (<? echo do_format('pages'); ?> <? echo _pages; ?>):
<? echo do_format('prev10'); echo do_format('prev'); echo do_format('ff_spac'); echo do_format('pagelinks'); echo do_format('ft_spac'); echo do_format('next'); echo do_format('next10'); ?>
<Br>
<? } ?>
<Br>
<? } ?>
<b><a href='<? echo constant('dir'); ?>forum_thread_post/<? echo do_format('f_id'); ?>'><? echo _post_thr; ?></a> : <a href='<? echo constant('dir'); ?>forum_new/<? echo do_format('f_id'); ?>'><? echo _f_new; ?></a> : <a href='<? echo constant('dir'); ?>forum_search/<? echo do_format('f_id'); ?>'><? echo _f_search; ?></a> : <a href='<? echo constant('dir'); ?>forum_settings.html'><? echo _forum_settings; ?></a></b>
</div>
</div>
</div>