Vergleich inc/functions_forumlist.php - 1.8.27 - 1.8.29

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 41Zeile 41
	{
foreach($parent as $forum)
{

	{
foreach($parent as $forum)
{

 
			$forum['viewers'] = 0;

			$subforums = $sub_forums = '';
$lastpost_data = array(
'lastpost' => 0,

			$subforums = $sub_forums = '';
$lastpost_data = array(
'lastpost' => 0,

Zeile 149Zeile 150
			{
$hideinfo = true;
$showlockicon = 1;

			{
$hideinfo = true;
$showlockicon = 1;

 
			}

if(is_array($forum_viewers) && isset($forum_viewers[$forum['fid']]) && $forum_viewers[$forum['fid']] > 0)
{
$forum['viewers'] = $forum_viewers[$forum['fid']];

			}

// Fetch subforums of this forum

			}

// Fetch subforums of this forum

Zeile 161Zeile 167
				$forum['posts'] += $forum_info['counters']['posts'];
$forum['unapprovedthreads'] += $forum_info['counters']['unapprovedthreads'];
$forum['unapprovedposts'] += $forum_info['counters']['unapprovedposts'];

				$forum['posts'] += $forum_info['counters']['posts'];
$forum['unapprovedthreads'] += $forum_info['counters']['unapprovedthreads'];
$forum['unapprovedposts'] += $forum_info['counters']['unapprovedposts'];


if(!empty($forum_info['counters']['viewing']))


if(!empty($forum_info['counters']['viewers']))

				{

				{

					$forum['viewers'] += $forum_info['counters']['viewing'];

					$forum['viewers'] += $forum_info['counters']['viewers'];

				}

// If the child forums' lastpost is greater than the one for this forum, set it as the child forums greatest.

				}

// If the child forums' lastpost is greater than the one for this forum, set it as the child forums greatest.

Zeile 183Zeile 189
					{
$lastpost_data['lastpost'] = $forum['lastpost'];
}*/

					{
$lastpost_data['lastpost'] = $forum['lastpost'];
}*/

				}


				}


				$sub_forums = $forum_info['forum_list'];
}


				$sub_forums = $forum_info['forum_list'];
}


Zeile 203Zeile 209
			if((!isset($parent_lastpost) || $lastpost_data['lastpost'] > $parent_lastpost['lastpost']) && $hideinfo != true)
{
$parent_lastpost = $lastpost_data;

			if((!isset($parent_lastpost) || $lastpost_data['lastpost'] > $parent_lastpost['lastpost']) && $hideinfo != true)
{
$parent_lastpost = $lastpost_data;

			}

if(is_array($forum_viewers) && isset($forum_viewers[$forum['fid']]) && $forum_viewers[$forum['fid']] > 0)
{
$forum['viewers'] = $forum_viewers[$forum['fid']];

 
			}

// Increment the counters for the parent forum (returned later)

			}

// Increment the counters for the parent forum (returned later)

Zeile 234Zeile 235
			$lightbulb = get_forum_lightbulb($forum, $lastpost_data, $showlockicon);

// Fetch the number of unapproved threads and posts for this forum

			$lightbulb = get_forum_lightbulb($forum, $lastpost_data, $showlockicon);

// Fetch the number of unapproved threads and posts for this forum

			$unapproved = get_forum_unapproved($forum);


 
			if($hideinfo == true)
{

			if($hideinfo == true)
{

				unset($unapproved);








				$unapproved = array(
"unapproved_posts" => '',
"unapproved_threads" => '',
);
}
else
{
$unapproved = get_forum_unapproved($forum);

			}

// Sanitize name and description of forum.

			}

// Sanitize name and description of forum.