Vergleich printthread.php - 1.4.3 - 1.4.14

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/about/license
*

 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/about/license
*

 * $Id: printthread.php 4081 2008-08-08 01:47:02Z Tikitiki $

 * $Id: printthread.php 4304 2009-01-02 01:11:56Z chris $

 */

define("IN_MYBB", 1);

 */

define("IN_MYBB", 1);

Zeile 80Zeile 80
$thread['threadlink'] = get_thread_link($tid);

$postrows = '';

$thread['threadlink'] = get_thread_link($tid);

$postrows = '';

 
if(is_moderator($forum['fid']))
{
$visible = "AND (p.visible='0' OR p.visible='1')";
}
else
{
$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' AND p.visible=1
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
");

while($postrow = $db->fetch_array($query))
{
if($postrow['userusername'])

while($postrow = $db->fetch_array($query))
{
if($postrow['userusername'])