Zeile 11 | Zeile 11 |
---|
/** * Build a list of forum bits. *
|
/** * Build a list of forum bits. *
|
* @param int The parent forum to fetch the child forums for (0 assumes all) * @param int The depth to return forums with.
| * @param int $pid The parent forum to fetch the child forums for (0 assumes all) * @param int $depth The depth to return forums with.
|
* @return array Array of information regarding the child forums of this parent forum */ function build_forumbits($pid=0, $depth=1)
| * @return array Array of information regarding the child forums of this parent forum */ function build_forumbits($pid=0, $depth=1)
|
Zeile 132 | Zeile 132 |
---|
); }
|
); }
|
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; $showlockicon = 1;
| { $hideinfo = true; $showlockicon = 1;
|
Zeile 184 | Zeile 184 |
---|
); }
|
); }
|
// If the current forums lastpost is greater than other child forums of the current parent, overwrite it if(!isset($parent_lastpost) || $lastpost_data['lastpost'] > $parent_lastpost['lastpost'])
| // If the current forums lastpost is greater than other child forums of the current parent and forum info isn't hidden, overwrite it if((!isset($parent_lastpost) || $lastpost_data['lastpost'] > $parent_lastpost['lastpost']) && $hideinfo != true)
|
{ $parent_lastpost = $lastpost_data; }
| { $parent_lastpost = $lastpost_data; }
|
Zeile 458 | Zeile 458 |
---|
/** * Fetch the status indicator for a forum based on its last post and the read date *
|
/** * Fetch the status indicator for a forum based on its last post and the read date *
|
* @param array Array of information about the forum * @param array Array of information about the lastpost date * @param int Whether or not this forum is locked or not
| * @param array $forum Array of information about the forum * @param array $lastpost Array of information about the lastpost date * @param int $locked Whether or not this forum is locked or not
|
* @return array Array of the folder image to be shown and the alt text */ function get_forum_lightbulb($forum, $lastpost, $locked=0)
| * @return array Array of the folder image to be shown and the alt text */ function get_forum_lightbulb($forum, $lastpost, $locked=0)
|
Zeile 538 | Zeile 538 |
---|
/** * Fetch the number of unapproved posts, formatted, from a forum *
|
/** * Fetch the number of unapproved posts, formatted, from a forum *
|
* @param array Array of information about the forum
| * @param array $forum Array of information about the forum
|
* @return array Array containing formatted string for posts and string for threads */ function get_forum_unapproved($forum)
| * @return array Array containing formatted string for posts and string for threads */ function get_forum_unapproved($forum)
|