Vergleich printthread.php - 1.8.6 - 1.8.7

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 49Zeile 49
$tid = $thread['tid'];

// Is the currently logged in user a moderator of this forum?

$tid = $thread['tid'];

// Is the currently logged in user a moderator of this forum?

if(is_moderator($fid))
{
$ismod = true;
}
else
{
$ismod = false;
}

$ismod = is_moderator($fid);









// Make sure we are looking at a real thread here.
if(($thread['visible'] != 1 && $ismod == false) || ($thread['visible'] > 1 && $ismod == true))


// Make sure we are looking at a real thread here.
if(($thread['visible'] != 1 && $ismod == false) || ($thread['visible'] > 1 && $ismod == true))

Zeile 133Zeile 126
$postrows = '';
if(is_moderator($forum['fid'], "canviewunapprove"))
{

$postrows = '';
if(is_moderator($forum['fid'], "canviewunapprove"))
{

    $visible = "AND (p.visible='0' OR p.visible='1')";

	$visible = "AND (p.visible='0' OR p.visible='1')";

}
else
{

}
else
{

    $visible = "AND p.visible='1'";

	$visible = "AND p.visible='1'";

}
$query = $db->query("

}
$query = $db->query("

    SELECT u.*, u.username AS userusername, p.*
FROM ".TABLE_PREFIX."posts p
LEFT JOIN ".TABLE_PREFIX."users u ON (u.uid=p.uid)
WHERE p.tid='$tid' {$visible}
ORDER BY p.dateline

	SELECT u.*, u.username AS userusername, p.*
FROM ".TABLE_PREFIX."posts p
LEFT JOIN ".TABLE_PREFIX."users u ON (u.uid=p.uid)
WHERE p.tid='$tid' {$visible}
ORDER BY p.dateline

	LIMIT {$start}, {$perpage}
");
while($postrow = $db->fetch_array($query))

	LIMIT {$start}, {$perpage}
");
while($postrow = $db->fetch_array($query))