Zeile 11 | Zeile 11 |
---|
define("IN_MYBB", 1); define('THIS_SCRIPT', 'forumdisplay.php');
|
define("IN_MYBB", 1); define('THIS_SCRIPT', 'forumdisplay.php');
|
$templatelist = "forumdisplay,forumdisplay_thread,forumbit_depth1_cat,forumbit_depth2_cat,forumbit_depth2_forum,forumdisplay_subforums,forumdisplay_threadlist,forumdisplay_moderatedby,forumdisplay_newthread,forumdisplay_searchforum,forumdisplay_thread_rating,forumdisplay_threadlist_rating,forumdisplay_threadlist_sortrating"; $templatelist .= ",forumbit_depth1_forum_lastpost,forumdisplay_thread_multipage_page,forumdisplay_thread_multipage,forumdisplay_thread_multipage_more,forumdisplay_thread_gotounread,forumbit_depth2_forum_lastpost,forumdisplay_rules,forumdisplay_rules_link,forumdisplay_orderarrow"; $templatelist .= ",multipage,multipage_breadcrumb,multipage_end,multipage_jump_page,multipage_nextpage,multipage_page,multipage_page_current,multipage_page_link_current,multipage_prevpage,multipage_start,forumdisplay_thread_icon,forumdisplay_thread_unapproved_posts,forumdisplay_nothreads,forumdisplay_announcements_announcement_modbit,forumbit_depth2_forum_viewers"; $templatelist .= ",forumjump_advanced,forumjump_special,forumjump_bit,forumdisplay_password_wrongpass,forumdisplay_password,forumdisplay_inlinemoderation_custom_tool,forumdisplay_inlinemoderation_custom,forumbit_subforums,forumbit_moderators,forumbit_depth2_forum_lastpost_never,forumbit_depth2_forum_lastpost_hidden";
| $templatelist = "forumdisplay,forumdisplay_thread,forumbit_depth1_cat,forumbit_depth2_cat,forumbit_depth2_forum,forumdisplay_subforums,forumdisplay_threadlist,forumdisplay_moderatedby,forumdisplay_searchforum,forumdisplay_thread_rating,forumdisplay_threadlist_rating"; $templatelist .= ",forumbit_depth1_forum_lastpost,forumdisplay_thread_multipage_page,forumdisplay_thread_multipage,forumdisplay_thread_multipage_more,forumdisplay_thread_gotounread,forumbit_depth2_forum_lastpost,forumdisplay_rules_link,forumdisplay_orderarrow,forumdisplay_newthread"; $templatelist .= ",multipage,multipage_breadcrumb,multipage_end,multipage_jump_page,multipage_nextpage,multipage_page,multipage_page_current,multipage_page_link_current,multipage_prevpage,multipage_start,forumdisplay_thread_unapproved_posts,forumdisplay_nothreads"; $templatelist .= ",forumjump_advanced,forumjump_special,forumjump_bit,forumdisplay_password_wrongpass,forumdisplay_password,forumdisplay_inlinemoderation_custom_tool,forumbit_subforums,forumbit_moderators,forumbit_depth2_forum_lastpost_never,forumbit_depth2_forum_lastpost_hidden";
|
$templatelist .= ",forumdisplay_usersbrowsing_user,forumdisplay_usersbrowsing,forumdisplay_inlinemoderation,forumdisplay_thread_modbit,forumdisplay_inlinemoderation_col,forumdisplay_inlinemoderation_selectall,forumdisplay_threadlist_clearpass,forumdisplay_thread_rating_moved";
|
$templatelist .= ",forumdisplay_usersbrowsing_user,forumdisplay_usersbrowsing,forumdisplay_inlinemoderation,forumdisplay_thread_modbit,forumdisplay_inlinemoderation_col,forumdisplay_inlinemoderation_selectall,forumdisplay_threadlist_clearpass,forumdisplay_thread_rating_moved";
|
$templatelist .= ",forumdisplay_announcements_announcement,forumdisplay_announcements,forumdisplay_threads_sep,forumbit_depth3_statusicon,forumbit_depth3,forumdisplay_sticky_sep,forumdisplay_thread_attachment_count,forumdisplay_rssdiscovery,forumdisplay_announcement_rating,forumbit_moderators_group"; $templatelist .= ",forumdisplay_inlinemoderation_openclose,forumdisplay_inlinemoderation_stickunstick,forumdisplay_inlinemoderation_softdelete,forumdisplay_inlinemoderation_restore,forumdisplay_inlinemoderation_delete,forumdisplay_inlinemoderation_manage,forumdisplay_inlinemoderation_approveunapprove"; $templatelist .= ",forumbit_depth2_forum_unapproved_posts,forumbit_depth2_forum_unapproved_threads,forumbit_moderators_user,forumdisplay_inlinemoderation_standard,forumdisplay_threadlist_prefixes_prefix,forumdisplay_threadlist_prefixes,forumdisplay_nopermission";
| $templatelist .= ",forumdisplay_announcements_announcement,forumdisplay_announcements,forumdisplay_threads_sep,forumbit_depth3_statusicon,forumbit_depth3,forumdisplay_sticky_sep,forumdisplay_thread_attachment_count,forumdisplay_rssdiscovery,forumbit_moderators_group"; $templatelist .= ",forumdisplay_inlinemoderation_openclose,forumdisplay_inlinemoderation_stickunstick,forumdisplay_inlinemoderation_softdelete,forumdisplay_inlinemoderation_restore,forumdisplay_inlinemoderation_delete,forumdisplay_inlinemoderation_manage,forumdisplay_nopermission"; $templatelist .= ",forumbit_depth2_forum_unapproved_posts,forumbit_depth2_forum_unapproved_threads,forumbit_moderators_user,forumdisplay_inlinemoderation_standard,forumdisplay_threadlist_prefixes_prefix,forumdisplay_threadlist_prefixes,forumdisplay_thread_icon,forumdisplay_rules"; $templatelist .= ",forumdisplay_thread_deleted,forumdisplay_announcements_announcement_modbit,forumbit_depth2_forum_viewers,forumdisplay_threadlist_sortrating,forumdisplay_inlinemoderation_custom,forumdisplay_announcement_rating,forumdisplay_inlinemoderation_approveunapprove";
|
require_once "./global.php"; require_once MYBB_ROOT."inc/functions_post.php";
| require_once "./global.php"; require_once MYBB_ROOT."inc/functions_post.php";
|
Zeile 338 | Zeile 339 |
---|
if($inviscount && $mybb->usergroup['canviewwolinvis'] != 1) { $invisonline = $lang->sprintf($lang->users_browsing_forum_invis, $inviscount);
|
if($inviscount && $mybb->usergroup['canviewwolinvis'] != 1) { $invisonline = $lang->sprintf($lang->users_browsing_forum_invis, $inviscount);
|
}
| }
|
$onlinesep = ''; if($invisonline != '' && $onlinemembers) { $onlinesep = $lang->comma; }
|
$onlinesep = ''; if($invisonline != '' && $onlinemembers) { $onlinesep = $lang->comma; }
|
|
|
$onlinesep2 = ''; if($invisonline != '' && $guestcount || $onlinemembers && $guestcount) {
| $onlinesep2 = ''; if($invisonline != '' && $guestcount || $onlinemembers && $guestcount) {
|
Zeile 371 | Zeile 372 |
---|
"allow_smilies" => 1, "allow_imgcode" => 1 );
|
"allow_smilies" => 1, "allow_imgcode" => 1 );
|
|
|
$foruminfo['rules'] = $parser->parse_message($foruminfo['rules'], $rules_parser); if($foruminfo['rulestype'] == 1 || $foruminfo['rulestype'] == 3) { eval("\$rules = \"".$templates->get("forumdisplay_rules")."\";");
|
$foruminfo['rules'] = $parser->parse_message($foruminfo['rules'], $rules_parser); if($foruminfo['rulestype'] == 1 || $foruminfo['rulestype'] == 3) { eval("\$rules = \"".$templates->get("forumdisplay_rules")."\";");
|
}
| }
|
else if($foruminfo['rulestype'] == 2) { eval("\$rules = \"".$templates->get("forumdisplay_rules_link")."\";"); }
|
else if($foruminfo['rulestype'] == 2) { eval("\$rules = \"".$templates->get("forumdisplay_rules_link")."\";"); }
|
}
| }
|
$bgcolor = "trow1";
|
$bgcolor = "trow1";
|
// Set here to fetch only approved topics (and then below for a moderator we change this). $visibleonly = "AND visible='1'"; $tvisibleonly = "AND t.visible='1'";
| // Set here to fetch only approved/deleted topics (and then below for a moderator we change this). if($fpermissions['canviewdeletionnotice'] != 0) { $visibleonly = "AND visible IN (-1,1)"; $tvisibleonly = "AND t.visible IN (-1,1)"; } else { $visibleonly = "AND visible='1'"; $tvisibleonly = "AND t.visible='1'"; }
|
// Check if the active user is a moderator and get the inline moderation tools. if(is_moderator($fid))
| // Check if the active user is a moderator and get the inline moderation tools. if(is_moderator($fid))
|
Zeile 404 | Zeile 413 |
---|
{ $visibleonly = "AND visible IN (0,1)"; $tvisibleonly = "AND t.visible IN (0,1)";
|
{ $visibleonly = "AND visible IN (0,1)"; $tvisibleonly = "AND t.visible IN (0,1)";
|
}
| }
|
elseif(is_moderator($fid, "canviewdeleted") == true && is_moderator($fid, "canviewunapprove") == false) { $visibleonly = "AND visible IN (-1,1)";
| elseif(is_moderator($fid, "canviewdeleted") == true && is_moderator($fid, "canviewunapprove") == false) { $visibleonly = "AND visible IN (-1,1)";
|
Zeile 465 | Zeile 474 |
---|
$checkdate = TIME_NOW - ($datecut * 86400); $datecutsql = "AND (lastpost >= '$checkdate' OR sticky = '1')"; $datecutsql2 = "AND (t.lastpost >= '$checkdate' OR t.sticky = '1')";
|
$checkdate = TIME_NOW - ($datecut * 86400); $datecutsql = "AND (lastpost >= '$checkdate' OR sticky = '1')"; $datecutsql2 = "AND (t.lastpost >= '$checkdate' OR t.sticky = '1')";
|
}
| }
|
else { $datecutsql = '';
| else { $datecutsql = '';
|
Zeile 524 | Zeile 533 |
---|
// Sort by which field? if(!isset($mybb->input['sortby']) && !empty($foruminfo['defaultsortby']))
|
// Sort by which field? if(!isset($mybb->input['sortby']) && !empty($foruminfo['defaultsortby']))
|
{
| {
|
$mybb->input['sortby'] = $foruminfo['defaultsortby']; } else
| $mybb->input['sortby'] = $foruminfo['defaultsortby']; } else
|
Zeile 584 | Zeile 593 |
---|
if($mybb->input['page'] > 1) { $sorturl = get_forum_link($fid, $mybb->input['page']).$string."datecut=$datecut&prefix=$tprefix";
|
if($mybb->input['page'] > 1) { $sorturl = get_forum_link($fid, $mybb->input['page']).$string."datecut=$datecut&prefix=$tprefix";
|
} else {
| } else {
|
$sorturl = get_forum_link($fid).$string."datecut=$datecut&prefix=$tprefix"; }
| $sorturl = get_forum_link($fid).$string."datecut=$datecut&prefix=$tprefix"; }
|
Zeile 829 | Zeile 838 |
---|
}
if($announcements)
|
}
if($announcements)
|
{
| {
|
eval("\$announcementlist = \"".$templates->get("forumdisplay_announcements")."\";"); $shownormalsep = true; }
| eval("\$announcementlist = \"".$templates->get("forumdisplay_announcements")."\";"); $shownormalsep = true; }
|
Zeile 1006 | Zeile 1015 |
---|
{ $bgcolor = "trow_shaded"; }
|
{ $bgcolor = "trow_shaded"; }
|
elseif($thread['visible'] == -1)
| elseif($thread['visible'] == -1 && is_moderator($fid, "canviewdeleted"))
|
{ $bgcolor = "trow_shaded trow_deleted"; }
| { $bgcolor = "trow_shaded trow_deleted"; }
|
Zeile 1086 | Zeile 1095 |
---|
$rating = ''; if($mybb->settings['allowthreadratings'] != 0 && $foruminfo['allowtratings'] != 0) {
|
$rating = ''; if($mybb->settings['allowthreadratings'] != 0 && $foruminfo['allowtratings'] != 0) {
|
if($moved[0] == "moved")
| if($moved[0] == "moved" || ($fpermissions['canviewdeletionnotice'] != 0 && $thread['visible'] == -1))
|
{ eval("\$rating = \"".$templates->get("forumdisplay_thread_rating_moved")."\";"); }
| { eval("\$rating = \"".$templates->get("forumdisplay_thread_rating_moved")."\";"); }
|
Zeile 1195 | Zeile 1204 |
---|
$donenew = 0;
if($mybb->settings['threadreadcut'] > 0 && $mybb->user['uid'] && $thread['lastpost'] > $forum_read)
|
$donenew = 0;
if($mybb->settings['threadreadcut'] > 0 && $mybb->user['uid'] && $thread['lastpost'] > $forum_read)
|
{
| {
|
if(!empty($thread['lastread'])) { $last_read = $thread['lastread'];
|
if(!empty($thread['lastread'])) { $last_read = $thread['lastread'];
|
}
| }
|
else { $last_read = $read_cutoff; }
|
else { $last_read = $read_cutoff; }
|
}
| }
|
else
|
else
|
{
| {
|
$last_read = my_get_array_cookie("threadread", $thread['tid']);
|
$last_read = my_get_array_cookie("threadread", $thread['tid']);
|
}
if($forum_read > $last_read) {
| }
if($forum_read > $last_read) {
|
$last_read = $forum_read; }
| $last_read = $forum_read; }
|
Zeile 1240 | Zeile 1249 |
---|
{ $folder .= "lock"; $folder_label .= $lang->icon_lock;
|
{ $folder .= "lock"; $folder_label .= $lang->icon_lock;
|
}
| }
|
if($moved[0] == "moved") { $folder = "move";
| if($moved[0] == "moved") { $folder = "move";
|
Zeile 1271 | Zeile 1280 |
---|
else { $lastposterlink = build_profile_link($lastposter, $lastposteruid);
|
else { $lastposterlink = build_profile_link($lastposter, $lastposteruid);
|
}
| }
|
$thread['replies'] = my_number_format($thread['replies']); $thread['views'] = my_number_format($thread['views']);
| $thread['replies'] = my_number_format($thread['replies']); $thread['views'] = my_number_format($thread['views']);
|
Zeile 1286 | Zeile 1295 |
---|
else { $unapproved_posts_count = $lang->sprintf($lang->thread_unapproved_post_count, 1);
|
else { $unapproved_posts_count = $lang->sprintf($lang->thread_unapproved_post_count, 1);
|
}
| }
|
$thread['unapprovedposts'] = my_number_format($thread['unapprovedposts']); eval("\$unapproved_posts = \"".$templates->get("forumdisplay_thread_unapproved_posts")."\";");
| $thread['unapprovedposts'] = my_number_format($thread['unapprovedposts']); eval("\$unapproved_posts = \"".$templates->get("forumdisplay_thread_unapproved_posts")."\";");
|
Zeile 1317 | Zeile 1326 |
---|
$plugins->run_hooks("forumdisplay_thread_end");
|
$plugins->run_hooks("forumdisplay_thread_end");
|
eval("\$threads .= \"".$templates->get("forumdisplay_thread")."\";");
| if($fpermissions['canviewdeletionnotice'] != 0 && $thread['visible'] == -1 && !is_moderator($fid, "canviewdeleted")) { eval("\$threads .= \"".$templates->get("forumdisplay_thread_deleted")."\";"); } else { eval("\$threads .= \"".$templates->get("forumdisplay_thread")."\";"); }
|
}
$customthreadtools = $standardthreadtools = '';
| }
$customthreadtools = $standardthreadtools = '';
|