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_searchforum,forumdisplay_thread_rating,forumdisplay_threadlist_rating";
| $templatelist = "forumdisplay,forumdisplay_thread,forumbit_depth1_cat,forumbit_depth2_cat,forumbit_depth2_forum,forumdisplay_subforums,forumdisplay_threadlist,forumdisplay_moderatedby,forumdisplay_searchforum,forumdisplay_forumsort,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 .= ",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";
|
Zeile 95 | Zeile 95 |
---|
$forumsread = array(); if(isset($mybb->cookies['mybb']['forumread'])) {
|
$forumsread = array(); if(isset($mybb->cookies['mybb']['forumread'])) {
|
$forumsread = my_unserialize($mybb->cookies['mybb']['forumread']);
| $forumsread = my_unserialize($mybb->cookies['mybb']['forumread'], false);
|
}
if(is_array($forumsread) && empty($forumsread))
| }
if(is_array($forumsread) && empty($forumsread))
|
Zeile 172 | Zeile 172 |
---|
}
// Make forum jump...
|
}
// Make forum jump...
|
| $forumjump = '';
|
if($mybb->settings['enableforumjump'] != 0) { $forumjump = build_forum_jump("", $fid, 1);
| if($mybb->settings['enableforumjump'] != 0) { $forumjump = build_forum_jump("", $fid, 1);
|
Zeile 275 | Zeile 276 |
---|
}
// Get the users browsing this forum.
|
}
// Get the users browsing this forum.
|
| $usersbrowsing = '';
|
if($mybb->settings['browsingthisforum'] != 0) { $timecut = TIME_NOW - $mybb->settings['wolcutoff'];
| if($mybb->settings['browsingthisforum'] != 0) { $timecut = TIME_NOW - $mybb->settings['wolcutoff'];
|
Zeile 789 | Zeile 791 |
---|
$cookie = array(); if(isset($mybb->cookies['mybb']['announcements'])) {
|
$cookie = array(); if(isset($mybb->cookies['mybb']['announcements'])) {
|
$cookie = my_unserialize(stripslashes($mybb->cookies['mybb']['announcements']));
| $cookie = my_unserialize(stripslashes($mybb->cookies['mybb']['announcements']), false);
|
}
$announcementlist = '';
| }
$announcementlist = '';
|
Zeile 1089 | Zeile 1091 |
---|
$thread['subject'] = $parser->parse_badwords($thread['subject']); $thread['subject'] = htmlspecialchars_uni($thread['subject']);
|
$thread['subject'] = $parser->parse_badwords($thread['subject']); $thread['subject'] = htmlspecialchars_uni($thread['subject']);
|
if($thread['icon'] > 0 && $icon_cache[$thread['icon']])
| if($thread['icon'] > 0 && isset($icon_cache[$thread['icon']]))
|
{ $icon = $icon_cache[$thread['icon']]; $icon['path'] = str_replace("{theme}", $theme['imgdir'], $icon['path']);
| { $icon = $icon_cache[$thread['icon']]; $icon['path'] = str_replace("{theme}", $theme['imgdir'], $icon['path']);
|
Zeile 1129 | Zeile 1131 |
---|
} else {
|
} else {
|
$thread['averagerating'] = (float)round($thread['averagerating'], 2); $thread['width'] = (int)round($thread['averagerating'])*20;
| |
$thread['numratings'] = (int)$thread['numratings'];
|
$thread['numratings'] = (int)$thread['numratings'];
|
| if($thread['numratings'] == 0) { $thread['averagerating'] = 0; $thread['width'] = 0; } else { $thread['averagerating'] = (float)round($thread['averagerating'], 2); $thread['width'] = (int)round($thread['averagerating']) * 20; }
|
$not_rated = ''; if(!isset($thread['rated']) || empty($thread['rated']))
| $not_rated = ''; if(!isset($thread['rated']) || empty($thread['rated']))
|
Zeile 1164 | Zeile 1175 |
---|
{ $thread['posts'] += $thread['deletedposts']; }
|
{ $thread['posts'] += $thread['deletedposts']; }
|
|
|
if($thread['posts'] > $mybb->settings['postsperpage']) { $thread['pages'] = $thread['posts'] / $mybb->settings['postsperpage'];
| if($thread['posts'] > $mybb->settings['postsperpage']) { $thread['pages'] = $thread['posts'] / $mybb->settings['postsperpage'];
|
Zeile 1182 | Zeile 1193 |
---|
}
for($i = 1; $i <= $pagesstop; ++$i)
|
}
for($i = 1; $i <= $pagesstop; ++$i)
|
{
| {
|
$page_link = get_thread_link($thread['tid'], $i); eval("\$threadpages .= \"".$templates->get("forumdisplay_thread_multipage_page")."\";"); }
eval("\$thread['multipage'] = \"".$templates->get("forumdisplay_thread_multipage")."\";");
|
$page_link = get_thread_link($thread['tid'], $i); eval("\$threadpages .= \"".$templates->get("forumdisplay_thread_multipage_page")."\";"); }
eval("\$thread['multipage'] = \"".$templates->get("forumdisplay_thread_multipage")."\";");
|
} else
| } else
|
{ $threadpages = ''; $morelink = ''; $thread['multipage'] = '';
|
{ $threadpages = ''; $morelink = ''; $thread['multipage'] = '';
|
}
| }
|
if($ismod) { if(isset($mybb->cookies[$inlinecookie]) && my_strpos($mybb->cookies[$inlinecookie], "|{$thread['tid']}|") !== false)
| if($ismod) { if(isset($mybb->cookies[$inlinecookie]) && my_strpos($mybb->cookies[$inlinecookie], "|{$thread['tid']}|") !== false)
|
Zeile 1207 | Zeile 1218 |
---|
{ $inlinecheck = ''; }
|
{ $inlinecheck = ''; }
|
|
|
$multitid = $thread['tid']; eval("\$modbit = \"".$templates->get("forumdisplay_thread_modbit")."\";"); } else { $modbit = '';
|
$multitid = $thread['tid']; eval("\$modbit = \"".$templates->get("forumdisplay_thread_modbit")."\";"); } else { $modbit = '';
|
}
| }
|
if($moved[0] == "moved") {
| if($moved[0] == "moved") {
|
Zeile 1226 | Zeile 1237 |
---|
$thread['threadlink'] = get_thread_link($thread['tid']); $thread['lastpostlink'] = get_thread_link($thread['tid'], 0, "lastpost");
|
$thread['threadlink'] = get_thread_link($thread['tid']); $thread['lastpostlink'] = get_thread_link($thread['tid'], 0, "lastpost");
|
|
|
// Determine the folder $folder = ''; $folder_label = '';
if(isset($thread['doticon']))
|
// Determine the folder $folder = ''; $folder_label = '';
if(isset($thread['doticon']))
|
{
| {
|
$folder = "dot_"; $folder_label .= $lang->icon_dot; }
| $folder = "dot_"; $folder_label .= $lang->icon_dot; }
|
Zeile 1251 | Zeile 1262 |
---|
{ $last_read = $read_cutoff; }
|
{ $last_read = $read_cutoff; }
|
}
| }
|
else { $last_read = my_get_array_cookie("threadread", $thread['tid']);
| else { $last_read = my_get_array_cookie("threadread", $thread['tid']);
|
Zeile 1263 | Zeile 1274 |
---|
}
if($thread['lastpost'] > $last_read && $moved[0] != "moved")
|
}
if($thread['lastpost'] > $last_read && $moved[0] != "moved")
|
{
| {
|
$folder .= "new"; $folder_label .= $lang->icon_new; $new_class = "subject_new";
| $folder .= "new"; $folder_label .= $lang->icon_new; $new_class = "subject_new";
|
Zeile 1281 | Zeile 1292 |
---|
{ $folder .= "hot"; $folder_label .= $lang->icon_hot;
|
{ $folder .= "hot"; $folder_label .= $lang->icon_hot;
|
}
| }
|
if($thread['closed'] == 1) {
| if($thread['closed'] == 1) {
|
Zeile 1380 | Zeile 1391 |
---|
{ $thread['start_datetime'] = my_date('relative', $thread['dateline']); eval("\$threads .= \"".$templates->get("forumdisplay_thread")."\";");
|
{ $thread['start_datetime'] = my_date('relative', $thread['dateline']); eval("\$threads .= \"".$templates->get("forumdisplay_thread")."\";");
|
} }
| } }
|
$customthreadtools = $standardthreadtools = ''; if($ismod)
| $customthreadtools = $standardthreadtools = ''; if($ismod)
|
Zeile 1528 | Zeile 1539 |
---|
// Populate Forumsort $forumsort = '';
|
// Populate Forumsort $forumsort = '';
|
if($threadcount > 0) { eval("\$forumsort = \"".$templates->get("forumdisplay_forumsort")."\";"); }
| eval("\$forumsort = \"".$templates->get("forumdisplay_forumsort")."\";");
|
$plugins->run_hooks("forumdisplay_threadlist");
$lang->rss_discovery_forum = $lang->sprintf($lang->rss_discovery_forum, htmlspecialchars_uni(strip_tags($foruminfo['name'])));
| $plugins->run_hooks("forumdisplay_threadlist");
$lang->rss_discovery_forum = $lang->sprintf($lang->rss_discovery_forum, htmlspecialchars_uni(strip_tags($foruminfo['name'])));
|