Zeile 6 | Zeile 6 |
---|
* Website: http://www.mybboard.net * License: http://www.mybboard.net/about/license *
|
* Website: http://www.mybboard.net * License: http://www.mybboard.net/about/license *
|
* $Id: forumdisplay.php 4830 2010-03-20 20:54:55Z musicalmidget $
| * $Id: forumdisplay.php 5379 2011-02-21 11:06:42Z Tomm $
|
*/
define("IN_MYBB", 1);
| */
define("IN_MYBB", 1);
|
Zeile 92 | Zeile 92 |
---|
"); $forumsread = unserialize($mybb->cookies['mybb']['forumread']);
|
"); $forumsread = unserialize($mybb->cookies['mybb']['forumread']);
|
| if(!is_array($forumsread)) { $forumsread = array(); }
|
} else {
| } else {
|
Zeile 124 | Zeile 129 |
---|
$bgcolor = "trow1"; if($mybb->settings['subforumsindex'] != 0)
|
$bgcolor = "trow1"; if($mybb->settings['subforumsindex'] != 0)
|
{
| {
|
$showdepth = 3; } else
|
$showdepth = 3; } else
|
{
| {
|
$showdepth = 2;
|
$showdepth = 2;
|
}
| }
|
$child_forums = build_forumbits($fid, 2); $forums = $child_forums['forum_list']; if($forums) { $lang->sub_forums_in = $lang->sprintf($lang->sub_forums_in, $foruminfo['name']); eval("\$subforums = \"".$templates->get("forumdisplay_subforums")."\";");
|
$child_forums = build_forumbits($fid, 2); $forums = $child_forums['forum_list']; if($forums) { $lang->sub_forums_in = $lang->sprintf($lang->sub_forums_in, $foruminfo['name']); eval("\$subforums = \"".$templates->get("forumdisplay_subforums")."\";");
|
}
$excols = "forumdisplay";
| }
$excols = "forumdisplay";
|
// Password protected forums check_forum_password($foruminfo['fid']);
| // Password protected forums check_forum_password($foruminfo['fid']);
|
Zeile 219 | Zeile 224 |
---|
if($user['uid'] == 0) { ++$guestcount;
|
if($user['uid'] == 0) { ++$guestcount;
|
} else
| } else
|
{ if($doneusers[$user['uid']] < $user['time'] || !$doneusers[$user['uid']]) {
| { if($doneusers[$user['uid']] < $user['time'] || !$doneusers[$user['uid']]) {
|
Zeile 477 | Zeile 482 |
---|
if(!$mybb->settings['threadsperpage']) { $mybb->settings['threadsperpage'] = 20;
|
if(!$mybb->settings['threadsperpage']) { $mybb->settings['threadsperpage'] = 20;
|
}
| }
|
$perpage = $mybb->settings['threadsperpage'];
if(intval($mybb->input['page']) > 0)
| $perpage = $mybb->settings['threadsperpage'];
if(intval($mybb->input['page']) > 0)
|
Zeile 736 | Zeile 741 |
---|
}
if($mybb->settings['threadreadcut'] > 0 && $mybb->user['uid'])
|
}
if($mybb->settings['threadreadcut'] > 0 && $mybb->user['uid'])
|
{
| {
|
$query = $db->simple_select("forumsread", "dateline", "fid='{$fid}' AND uid='{$mybb->user['uid']}'"); $forum_read = $db->fetch_field($query, "dateline");
| $query = $db->simple_select("forumsread", "dateline", "fid='{$fid}' AND uid='{$mybb->user['uid']}'"); $forum_read = $db->fetch_field($query, "dateline");
|
Zeile 994 | Zeile 999 |
---|
if(($thread['uid'] == $mybb->user['uid'] && $thread['closed'] != 1 && $mybb->user['uid'] != 0 && $can_edit_titles == 1) || $ismod == true) { $inline_edit_class = "subject_editable";
|
if(($thread['uid'] == $mybb->user['uid'] && $thread['closed'] != 1 && $mybb->user['uid'] != 0 && $can_edit_titles == 1) || $ismod == true) { $inline_edit_class = "subject_editable";
|
} else
| } else
|
{ $inline_edit_class = ""; }
| { $inline_edit_class = ""; }
|
Zeile 1010 | Zeile 1015 |
---|
if($lastposteruid == 0) { $lastposterlink = $lastposter;
|
if($lastposteruid == 0) { $lastposterlink = $lastposter;
|
} else
| } else
|
{ $lastposterlink = build_profile_link($lastposter, $lastposteruid); }
|
{ $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 1023 | Zeile 1028 |
---|
if($thread['unapprovedposts'] > 0 && $ismod) { if($thread['unapprovedposts'] > 1)
|
if($thread['unapprovedposts'] > 0 && $ismod) { if($thread['unapprovedposts'] > 1)
|
{
| {
|
$unapproved_posts_count = $lang->sprintf($lang->thread_unapproved_posts_count, $thread['unapprovedposts']);
|
$unapproved_posts_count = $lang->sprintf($lang->thread_unapproved_posts_count, $thread['unapprovedposts']);
|
} else {
| } else {
|
$unapproved_posts_count = $lang->sprintf($lang->thread_unapproved_post_count, 1); }
| $unapproved_posts_count = $lang->sprintf($lang->thread_unapproved_post_count, 1); }
|
Zeile 1058 | Zeile 1063 |
---|
}
eval("\$threads .= \"".$templates->get("forumdisplay_thread")."\";");
|
}
eval("\$threads .= \"".$templates->get("forumdisplay_thread")."\";");
|
}
| }
|
$customthreadtools = ''; if($ismod) {
| $customthreadtools = ''; if($ismod) {
|
Zeile 1091 | Zeile 1096 |
---|
if(fetch_unread_count($fid) == 0 && $unread_forums == 0) { mark_forum_read($fid);
|
if(fetch_unread_count($fid) == 0 && $unread_forums == 0) { mark_forum_read($fid);
|
}
| }
|
// Subscription status $query = $db->simple_select("forumsubscriptions", "fid", "fid='".$fid."' AND uid='{$mybb->user['uid']}'", array('limit' => 1));
| // Subscription status $query = $db->simple_select("forumsubscriptions", "fid", "fid='".$fid."' AND uid='{$mybb->user['uid']}'", array('limit' => 1));
|
Zeile 1100 | Zeile 1105 |
---|
{ $add_remove_subscription = 'remove'; $add_remove_subscription_text = $lang->unsubscribe_forum;
|
{ $add_remove_subscription = 'remove'; $add_remove_subscription_text = $lang->unsubscribe_forum;
|
}
| }
|
else { $add_remove_subscription = 'add'; $add_remove_subscription_text = $lang->subscribe_forum; }
|
else { $add_remove_subscription = 'add'; $add_remove_subscription_text = $lang->subscribe_forum; }
|
|
|
// Is this a real forum with threads? if($foruminfo['type'] != "c") { if(!$threadcount) { eval("\$threads = \"".$templates->get("forumdisplay_nothreads")."\";");
|
// Is this a real forum with threads? if($foruminfo['type'] != "c") { if(!$threadcount) { eval("\$threads = \"".$templates->get("forumdisplay_nothreads")."\";");
|
}
| }
|
if($foruminfo['password'] != '')
|
if($foruminfo['password'] != '')
|
{
| {
|
eval("\$clearstoredpass = \"".$templates->get("forumdisplay_threadlist_clearpass")."\";"); }
|
eval("\$clearstoredpass = \"".$templates->get("forumdisplay_threadlist_clearpass")."\";"); }
|
if($load_inline_edit_js == 1)
| if($load_inline_edit_js == 1) { eval("\$inline_edit_js = \"".$templates->get("forumdisplay_threadlist_inlineedit_js")."\";"); }
$post_code_string = ''; if($mybb->user['uid'])
|
{
|
{
|
eval("\$inline_edit_js = \"".$templates->get("forumdisplay_threadlist_inlineedit_js")."\";");
| $post_code_string = "&my_post_key=".$mybb->post_code;
|
}
$lang->rss_discovery_forum = $lang->sprintf($lang->rss_discovery_forum, htmlspecialchars_uni(strip_tags($foruminfo['name'])));
| }
$lang->rss_discovery_forum = $lang->sprintf($lang->rss_discovery_forum, htmlspecialchars_uni(strip_tags($foruminfo['name'])));
|