Zeile 1 | Zeile 1 |
---|
<?php /** * MyBB 1.4
|
<?php /** * MyBB 1.4
|
* Copyright � 2008 MyBB Group, All Rights Reserved
| * Copyright � 2008 MyBB Group, All Rights Reserved
|
* * 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: functions_forumlist.php 3992 2008-07-06 17:27:56Z Tikitiki $
| * $Id: functions_forumlist.php 4496 2009-11-06 06:10:26Z dennis $
|
*/
/**
| */
/**
|
Zeile 36 | Zeile 36 |
---|
$forums = $subforums = $sub_forums = ''; $lastpost_data = ''; $counters = '';
|
$forums = $subforums = $sub_forums = ''; $lastpost_data = ''; $counters = '';
|
| $forum_viewers_text = ''; $forum_viewers_text_plain = '';
|
// Get the permissions for this forum $permissions = $forumpermissions[$forum['fid']];
| // Get the permissions for this forum $permissions = $forumpermissions[$forum['fid']];
|
Zeile 53 | Zeile 55 |
---|
// This forum has a password, and the user isn't authenticated with it - hide post information $hideinfo = false;
|
// This forum has a password, and the user isn't authenticated with it - hide post information $hideinfo = false;
|
| $showlockicon = 0; if($permissions['canviewthreads'] != 1) { $hideinfo = true; }
|
if($forum['password'] != '' && $mybb->cookies['forumpass'][$forum['fid']] != md5($mybb->user['uid'].$forum['password'])) {
|
if($forum['password'] != '' && $mybb->cookies['forumpass'][$forum['fid']] != md5($mybb->user['uid'].$forum['password'])) {
|
$hideinfo = true;
| $hideinfo = true; $showlockicon = 1;
|
} $lastpost_data = array(
| } $lastpost_data = array(
|
Zeile 121 | Zeile 130 |
---|
}
// Get the lightbulb status indicator for this forum based on the lastpost
|
}
// Get the lightbulb status indicator for this forum based on the lastpost
|
$lightbulb = get_forum_lightbulb($forum, $lastpost_data, $hideinfo);
| $lightbulb = get_forum_lightbulb($forum, $lastpost_data, $showlockicon);
|
// Fetch the number of unapproved threads and posts for this forum $unapproved = get_forum_unapproved($forum);
| // Fetch the number of unapproved threads and posts for this forum $unapproved = get_forum_unapproved($forum);
|
Zeile 132 | Zeile 141 |
---|
}
// Sanitize name and description of forum.
|
}
// Sanitize name and description of forum.
|
| $forum['name'] = preg_replace("#&(?!\#[0-9]+;)#si", "&", $forum['name']); // Fix & but allow unicode $forum['description'] = preg_replace("#&(?!\#[0-9]+;)#si", "&", $forum['description']); // Fix & but allow unicode
|
$forum['name'] = preg_replace("#&([^\#])(?![a-z1-4]{1,10};)#i", "&$1", $forum['name']); $forum['description'] = preg_replace("#&([^\#])(?![a-z1-4]{1,10};)#i", "&$1", $forum['description']);
| $forum['name'] = preg_replace("#&([^\#])(?![a-z1-4]{1,10};)#i", "&$1", $forum['name']); $forum['description'] = preg_replace("#&([^\#])(?![a-z1-4]{1,10};)#i", "&$1", $forum['description']);
|
Zeile 163 | Zeile 174 |
---|
++$donecount; if($donecount == $mybb->settings['subforumsindex']) {
|
++$donecount; if($donecount == $mybb->settings['subforumsindex']) {
|
if(count($parent) > $donecount)
| if(subforums_count($fcache[$pid]) > $donecount)
|
{
|
{
|
$forum_list .= $comma.$lang->sprintf($lang->more_subforums, (count($parent) - $donecount));
| $forum_list .= $comma.$lang->sprintf($lang->more_subforums, (subforums_count($fcache[$pid]) - $donecount));
|
} } continue;
| } } continue;
|
Zeile 214 | Zeile 225 |
---|
} }
|
} }
|
$forum_viewers_text = '';
| |
if($mybb->settings['showforumviewing'] != 0 && $forum['viewers'] > 0) { if($forum['viewers'] == 1)
| if($mybb->settings['showforumviewing'] != 0 && $forum['viewers'] > 0) { if($forum['viewers'] == 1)
|
Zeile 225 | Zeile 235 |
---|
{ $forum_viewers_text = $lang->sprintf($lang->viewing_multiple, $forum['viewers']); }
|
{ $forum_viewers_text = $lang->sprintf($lang->viewing_multiple, $forum['viewers']); }
|
| $forum_viewers_text_plain = $forum_viewers_text;
|
$forum_viewers_text = "<span class=\"smalltext\">{$forum_viewers_text}</span>"; } }
| $forum_viewers_text = "<span class=\"smalltext\">{$forum_viewers_text}</span>"; } }
|