Vergleich inc/functions_forumlist.php - 1.2.4 - 1.2.8

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 113Zeile 113
			{
unset($unapproved);
}

			{
unset($unapproved);
}

 

// Sanitize name and description of forum.
$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']);


			// If this is a forum and we've got subforums of it, load the subforums list template
if($depth == 2 && $sub_forums)
{

			// If this is a forum and we've got subforums of it, load the subforums list template
if($depth == 2 && $sub_forums)
{

Zeile 167Zeile 172
				// No posts have been made in this forum - show never text
if(($lastpost_data['lastpost'] == 0 || $lastpost_data['lastposter'] == '') && $hideinfo != true)
{

				// No posts have been made in this forum - show never text
if(($lastpost_data['lastpost'] == 0 || $lastpost_data['lastposter'] == '') && $hideinfo != true)
{

					$lastpost = "<span style=\"text-align: center;\">".$lang->lastpost_never."</span>";

					$lastpost = "<div style=\"text-align: center;\">{$lang->lastpost_never}</div>";

				}

				}

				elseif($hideinfo != 1)

				elseif($hideinfo != true)

				{
// Format lastpost date and time
$lastpost_date = my_date($mybb->settings['dateformat'], $lastpost_data['lastpost']);

				{
// Format lastpost date and time
$lastpost_date = my_date($mybb->settings['dateformat'], $lastpost_data['lastpost']);

Zeile 194Zeile 199
			// If this forum is a link or is password protected and the user isn't authenticated, set lastpost and counters to "-"
if($forum['linkto'] != '' || $hideinfo == true)
{

			// If this forum is a link or is password protected and the user isn't authenticated, set lastpost and counters to "-"
if($forum['linkto'] != '' || $hideinfo == true)
{

				$lastpost = "<span style=\"text-align: center;\">-</span>";

				$lastpost = "<div style=\"text-align: center;\">-</div>";

				$posts = "-";
$threads = "-";
}

				$posts = "-";
$threads = "-";
}

Zeile 219Zeile 224
						// Fetch each moderator from the cache and format it, appending it to the list
foreach($moderatorcache[$mfid] as $moderator)
{

						// Fetch each moderator from the cache and format it, appending it to the list
foreach($moderatorcache[$mfid] as $moderator)
{

							$moderators .= "{$comma}<a href=\"member.php?action=profile&amp;uid={$moderator['uid']}\">{$moderator['username']}</a>";

							$moderators .= "{$comma}<a href=\"member.php?action=profile&amp;uid={$moderator['uid']}\">".htmlspecialchars_uni($moderator['username'])."</a>";

							$comma = ", ";
}
}

							$comma = ", ";
}
}