Zeile 6 | Zeile 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 3790 2008-04-23 22:50:33Z Tikitiki $
| * $Id: printthread.php 5379 2011-02-21 11:06:42Z Tomm $
|
*/
define("IN_MYBB", 1);
|
*/
define("IN_MYBB", 1);
|
| define('THIS_SCRIPT', 'printthread.php');
|
$templatelist = "printthread,printthread_post";
| $templatelist = "printthread,printthread_post";
|
Zeile 79 | Zeile 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'])
|