Das ist die Ausgabe was auch alles inordnung ist.
Jedoch will ich ja wie gesagt eine neue funktion hinzufügen also das er in alles sucht und nicht einzelnd.
// 7 = forum
if($_GET['in'] == 7) {
$q = "SELECT DISTINCT a.fid as fid, a.name as titel, 'foru' as typ, a.id as id, `time`, c.erst as autor, c.erstid as autorid, c.txt as besch
FROM prefix_posts c
LEFT JOIN prefix_topics a ON a.id = c.tid
LEFT JOIN prefix_forums b ON b.id = a.fid
LEFT JOIN prefix_groupusers vg ON vg.uid = ".$_SESSION['authid']." AND vg.gid = b.view
LEFT JOIN prefix_groupusers rg ON rg.uid = ".$_SESSION['authid']." AND rg.gid = b.reply
LEFT JOIN prefix_groupusers sg ON sg.uid = ".$_SESSION['authid']." AND sg.gid = b.start
WHERE (((b.view >= ".$_SESSION['authright']." AND b.view <= 0) OR
(b.reply >= ".$_SESSION['authright']." AND b.reply <= 0) OR
(b.start >= ".$_SESSION['authright']." AND b.start <= 0)) OR
(vg.fid IS NOT NULL OR rg.fid IS NOT NULL OR sg.fid IS NOT NULL OR ".$_SESSION['authright']." = -9))
AND (".$str_forum." 1 = 1)
AND (".$str_forum_a." 1 = 1)
GROUP BY a.id
ORDER BY time DESC";
}
Eine neue Kategorie sprich get in forum zu 7 gemacht und 1 was standart ist habe ich alles genommen jedoch fehlt mir dort halt wie ich komplett alles aus der db auslese und dann ausgebe mit richtigen link usw