Vergleich printthread.php - 1.01 - 1.18

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 55Zeile 55
// Password protected forums ......... yhummmmy!
checkpwforum($fid, $forum['password']);


// Password protected forums ......... yhummmmy!
checkpwforum($fid, $forum['password']);


$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' ORDER BY p.dateline");

$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");

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

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

	$postrow['subject'] = htmlspecialchars_uni(stripslashes(dobadwords($postrow['subject'])));

	$postrow['subject'] = htmlspecialchars_uni(dobadwords($postrow['subject']));

	$postrow['date'] = mydate($mybb->settings['dateformat'], $postrow['dateline']);
$postrow['time'] = mydate($mybb->settings['timeformat'], $postrow['dateline']);

	$postrow['date'] = mydate($mybb->settings['dateformat'], $postrow['dateline']);
$postrow['time'] = mydate($mybb->settings['timeformat'], $postrow['dateline']);

	$postrow['message'] = postify(stripslashes($postrow['message']), $forum['allowmycode'], $forum['allowsmilies'], $forum['allowimgcode']);

	$postrow['message'] = postify($postrow['message'], $forum['allowhtml'], $forum['allowmycode'], $forum['allowsmilies'], $forum['allowimgcode']);

	// do me code
if($forum['allowmycode'] != "no")
{

	// do me code
if($forum['allowmycode'] != "no")
{