Vergleich misc.php - 1.6.0 - 1.6.1

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 397Zeile 397
elseif($mybb->input['action'] == "whoposted")
{
$numposts = 0;

elseif($mybb->input['action'] == "whoposted")
{
$numposts = 0;

	$altbg = "trow1";

	$altbg = alt_trow();

	$whoposted = '';
$tid = intval($mybb->input['tid']);
$thread = get_thread($tid);

	$whoposted = '';
$tid = intval($mybb->input['tid']);
$thread = get_thread($tid);

Zeile 698Zeile 698

function makesyndicateforums($pid="0", $selitem="", $addselect="1", $depth="", $permissions="")
{


function makesyndicateforums($pid="0", $selitem="", $addselect="1", $depth="", $permissions="")
{

	global $db, $forumcache, $permissioncache, $mybb, $selecteddone, $forumlist, $forumlistbits, $theme, $templates, $flist, $lang;


	global $db, $forumcache, $permissioncache, $mybb, $selecteddone, $forumlist, $forumlistbits, $theme, $templates, $flist, $lang, $unviewable;
static $unviewableforums;


$pid = intval($pid);
if(!$permissions)
{
$permissions = $mybb->usergroup;
}


$pid = intval($pid);
if(!$permissions)
{
$permissions = $mybb->usergroup;
}

 


	if(!is_array($forumcache))
{
// Get Forums

	if(!is_array($forumcache))
{
// Get Forums

Zeile 713Zeile 715
		{
$forumcache[$forum['pid']][$forum['disporder']][$forum['fid']] = $forum;
}

		{
$forumcache[$forum['pid']][$forum['disporder']][$forum['fid']] = $forum;
}

	}


	}


	if(!is_array($permissioncache))

	if(!is_array($permissioncache))

	{

	{

		$permissioncache = forum_permissions();
}

		$permissioncache = forum_permissions();
}

 

if(!$unviewableforums)
{
// Save our unviewable forums in an array
$unviewableforums = explode(",", str_replace("'", "", $unviewable));
}


	if(is_array($forumcache[$pid]))
{
foreach($forumcache[$pid] as $key => $main)

	if(is_array($forumcache[$pid]))
{
foreach($forumcache[$pid] as $key => $main)

Zeile 731Zeile 741
					{
$optionselected = "selected=\"selected\"";
$selecteddone = "1";

					{
$optionselected = "selected=\"selected\"";
$selecteddone = "1";

					}

					}

					else
{
$optionselected = '';

					else
{
$optionselected = '';

					}

if($forum['password'] == '')

					}

if($forum['password'] == '' && !in_array($forum['fid'], $unviewableforums) || $forum['password'] && $mybb->cookies['forumpass'][$forum['fid']] == md5($mybb->user['uid'].$forum['password']))

					{
$forumlistbits .= "<option value=\"{$forum['fid']}\" $optionselected>$depth {$forum['name']}</option>\n";
}

					{
$forumlistbits .= "<option value=\"{$forum['fid']}\" $optionselected>$depth {$forum['name']}</option>\n";
}

 


					if($forumcache[$forum['fid']])
{
$newdepth = $depth."&nbsp;&nbsp;&nbsp;&nbsp;";

					if($forumcache[$forum['fid']])
{
$newdepth = $depth."&nbsp;&nbsp;&nbsp;&nbsp;";