hier der Code
$show_forum = isset($allgAr['SSS_show_forum']) ? (int) $allgAr['SSS_show_forum'] : 10; $ppr = (int) $allgAr['Fpanz'] OR 10; $groups = $_SESSION['authgrp']; $groups[0] = true; $groups = implode(', ', array_keys($_SESSION['authgrp'])); if ( $show_forum && ($result = db_query("SELECT CONCAT('?m=forum&um=showposts&tid=', t.id, '&page=', FLOOR((t.rep - 1) / {$ppr}) + 1, '#', p.id) AS link, t.name AS title, DATE_FORMAT(FROM_UNIXTIME(p.time), '%d.%m.%y %H:%i:%s') AS date, p.erst AS last FROM `prefix_topics` AS t LEFT JOIN `prefix_posts` AS p ON p.id = t.last_post_id INNER JOIN `prefix_forums` AS f ON f.id = t.fid WHERE ( {$_SESSION['authright']} = -5 ) OR ( f.view <= 0 AND f.view >= {$_SESSION['authright']} ) OR ( f.reply <= 0 AND f.reply >= {$_SESSION['authright']} ) OR ( f.start <= 0 AND f.start >= {$_SESSION['authright']} ) OR ( f.mods <= 0 AND f.mods >= {$_SESSION['authright']} ) OR f.view IN ({$groups}) OR f.reply IN ({$groups}) OR f.start IN ({$groups}) OR f.mods IN ({$groups}) ORDER BY p.time DESC LIMIT 0, {$show_forum}")) && mysql_num_rows($result) > 0 ) { print '<center><img src="Forum.jpg"><br><table width="90%" align="center">'; print "Die letzten {$show_forum} Forenbeiträge"; print '</b></td></tr><tr ><td class="Bbody"><table width="100%" align="center" cellspacing="0" border="0" cellpadding="1">'; while ( $row = mysql_fetch_object($result) ) { print "<tr width=\"100%\"><td nowrap><b> » </b></td><td><a href=\"{$row->link}\">{$row->title}</a></td><td nowrap><a href=\"{$row->link}\">{$row->date}</a></td><td nowrap><a href=\"{$row->link}\">{$row->last}</a></td></tr>"; } print '</table></td></tr></table><br>'; }
Nun habe ich das problem ,das auch nicht angemeldete User diese Forumeinträge sehen sollen .
Könnte mir da jemand helfen ?
Grüsse Sven