Zeile 18 | Zeile 18 |
---|
$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 .= ",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";
| $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";
|
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 314 | Zeile 314 |
---|
if($user['invisible'] != 1 || $mybb->usergroup['canviewwolinvis'] == 1 || $user['uid'] == $mybb->user['uid']) {
|
if($user['invisible'] != 1 || $mybb->usergroup['canviewwolinvis'] == 1 || $user['uid'] == $mybb->user['uid']) {
|
$user['username'] = format_name($user['username'], $user['usergroup'], $user['displaygroup']);
| $user['username'] = format_name(htmlspecialchars_uni($user['username']), $user['usergroup'], $user['displaygroup']);
|
$user['profilelink'] = build_profile_link($user['username'], $user['uid']); eval("\$onlinemembers .= \"".$templates->get("forumdisplay_usersbrowsing_user", 1, 0)."\";"); $comma = $lang->comma;
| $user['profilelink'] = build_profile_link($user['username'], $user['uid']); eval("\$onlinemembers .= \"".$templates->get("forumdisplay_usersbrowsing_user", 1, 0)."\";"); $comma = $lang->comma;
|
Zeile 798 | Zeile 798 |
---|
$announcement['subject'] = $parser->parse_badwords($announcement['subject']); $announcement['subject'] = htmlspecialchars_uni($announcement['subject']); $postdate = my_date('relative', $announcement['startdate']);
|
$announcement['subject'] = $parser->parse_badwords($announcement['subject']); $announcement['subject'] = htmlspecialchars_uni($announcement['subject']); $postdate = my_date('relative', $announcement['startdate']);
|
| $announcement['username'] = htmlspecialchars_uni($announcement['username']);
|
$announcement['profilelink'] = build_profile_link($announcement['username'], $announcement['uid']);
if($mybb->settings['allowthreadratings'] != 0 && $foruminfo['allowtratings'] != 0 && $fpermissions['canviewthreads'] != 0)
| $announcement['profilelink'] = build_profile_link($announcement['username'], $announcement['uid']);
if($mybb->settings['allowthreadratings'] != 0 && $foruminfo['allowtratings'] != 0 && $fpermissions['canviewthreads'] != 0)
|
Zeile 954 | Zeile 957 |
---|
if($threadcache[$readthread['tid']]) { $threadcache[$readthread['tid']]['lastread'] = $readthread['dateline'];
|
if($threadcache[$readthread['tid']]) { $threadcache[$readthread['tid']]['lastread'] = $readthread['dateline'];
|
} } }
| } } }
|
if($mybb->settings['threadreadcut'] > 0 && $mybb->user['uid']) { $query = $db->simple_select("forumsread", "dateline", "fid='{$fid}' AND uid='{$mybb->user['uid']}'");
| if($mybb->settings['threadreadcut'] > 0 && $mybb->user['uid']) { $query = $db->simple_select("forumsread", "dateline", "fid='{$fid}' AND uid='{$mybb->user['uid']}'");
|
Zeile 967 | Zeile 970 |
---|
if($forum_read == 0 || $forum_read < $read_cutoff) { $forum_read = $read_cutoff;
|
if($forum_read == 0 || $forum_read < $read_cutoff) { $forum_read = $read_cutoff;
|
}
| }
|
} else {
| } else {
|
Zeile 986 | Zeile 989 |
---|
if(!$mybb->settings['maxmultipagelinks']) { $mybb->settings['maxmultipagelinks'] = 5;
|
if(!$mybb->settings['maxmultipagelinks']) { $mybb->settings['maxmultipagelinks'] = 5;
|
}
| }
|
if(!$mybb->settings['postsperpage'] || (int)$mybb->settings['postsperpage'] < 1) { $mybb->settings['postsperpage'] = 20;
| if(!$mybb->settings['postsperpage'] || (int)$mybb->settings['postsperpage'] < 1) { $mybb->settings['postsperpage'] = 20;
|
Zeile 1006 | Zeile 1009 |
---|
elseif($thread['visible'] == -1) { $bgcolor = "trow_shaded trow_deleted";
|
elseif($thread['visible'] == -1) { $bgcolor = "trow_shaded trow_deleted";
|
} else {
| } else {
|
$bgcolor = alt_trow();
|
$bgcolor = alt_trow();
|
}
| }
|
if($thread['sticky'] == 1)
|
if($thread['sticky'] == 1)
|
{
| {
|
$thread_type_class = " forumdisplay_sticky";
|
$thread_type_class = " forumdisplay_sticky";
|
} else {
| } else {
|
$thread_type_class = " forumdisplay_regular"; }
|
$thread_type_class = " forumdisplay_regular"; }
|
|
|
$folder = ''; $prefix = '';
$thread['author'] = $thread['uid']; if(!$thread['username'])
|
$folder = ''; $prefix = '';
$thread['author'] = $thread['uid']; if(!$thread['username'])
|
{ $thread['username'] = $thread['threadusername']; $thread['profilelink'] = $thread['threadusername']; }
| { $thread['username'] = $thread['profilelink'] = htmlspecialchars_uni($thread['threadusername']); }
|
else {
|
else {
|
| $thread['username'] = htmlspecialchars_uni($thread['username']);
|
$thread['profilelink'] = build_profile_link($thread['username'], $thread['uid']); }
// If this thread has a prefix, insert a space between prefix and subject $thread['threadprefix'] = $threadprefix = ''; if($thread['prefix'] != 0)
|
$thread['profilelink'] = build_profile_link($thread['username'], $thread['uid']); }
// If this thread has a prefix, insert a space between prefix and subject $thread['threadprefix'] = $threadprefix = ''; if($thread['prefix'] != 0)
|
{
| {
|
$threadprefix = build_prefixes($thread['prefix']); if(!empty($threadprefix)) {
| $threadprefix = build_prefixes($thread['prefix']); if(!empty($threadprefix)) {
|
Zeile 1196 | Zeile 1199 |
---|
if(!empty($thread['lastread'])) { $last_read = $thread['lastread'];
|
if(!empty($thread['lastread'])) { $last_read = $thread['lastread'];
|
} else {
| } else {
|
$last_read = $read_cutoff; } }
| $last_read = $read_cutoff; } }
|
Zeile 1256 | Zeile 1259 |
---|
$inline_edit_class = "subject_editable"; }
|
$inline_edit_class = "subject_editable"; }
|
$lastposter = $thread['lastposter'];
| $lastposter = htmlspecialchars_uni($thread['lastposter']);
|
$lastposteruid = $thread['lastposteruid']; $lastpostdate = my_date('relative', $thread['lastpost']);
| $lastposteruid = $thread['lastposteruid']; $lastpostdate = my_date('relative', $thread['lastpost']);
|
Zeile 1357 | Zeile 1360 |
---|
{ eval("\$customthreadtools = \"".$templates->get("forumdisplay_inlinemoderation_custom")."\";"); }
|
{ eval("\$customthreadtools = \"".$templates->get("forumdisplay_inlinemoderation_custom")."\";"); }
|
}
| }
|
$inlinemodopenclose = $inlinemodstickunstick = $inlinemodsoftdelete = $inlinemodrestore = $inlinemoddelete = $inlinemodmanage = $inlinemodapproveunapprove = '';
if(is_moderator($fid, "canopenclosethreads"))
| $inlinemodopenclose = $inlinemodstickunstick = $inlinemodsoftdelete = $inlinemodrestore = $inlinemoddelete = $inlinemodmanage = $inlinemodapproveunapprove = '';
if(is_moderator($fid, "canopenclosethreads"))
|
Zeile 1406 | Zeile 1409 |
---|
{ eval("\$inlinemod = \"".$templates->get("forumdisplay_inlinemoderation")."\";"); }
|
{ eval("\$inlinemod = \"".$templates->get("forumdisplay_inlinemoderation")."\";"); }
|
} }
| } }
|
// If there are no unread threads in this forum and no unread child forums - mark it as read require_once MYBB_ROOT."inc/functions_indicators.php";
| // If there are no unread threads in this forum and no unread child forums - mark it as read require_once MYBB_ROOT."inc/functions_indicators.php";
|
Zeile 1438 | Zeile 1441 |
---|
// Is this a real forum with threads? if($foruminfo['type'] != "c") {
|
// Is this a real forum with threads? if($foruminfo['type'] != "c") {
|
if(!$threadcount)
| if($fpermissions['canviewthreads'] != 1) { eval("\$threads = \"".$templates->get("forumdisplay_nopermission")."\";"); }
if(!$threadcount && $fpermissions['canviewthreads'] == 1)
|
{ eval("\$threads = \"".$templates->get("forumdisplay_nothreads")."\";"); }
| { eval("\$threads = \"".$templates->get("forumdisplay_nothreads")."\";"); }
|