Ich nehme mal an dass die Änderung in der articles.php gemacht werden muss?
Was muss ich hier ändern?
# sortierung festlegen $sortierung = 'art_id ASC'; $DOM = 'ASC'; $POM = 'ASC'; $DAM = 'ASC'; switch ($menu->get(2)) { case 'positionDESC' : $sortierung = 'art_id DESC'; break; case 'positionASC' : $sortierung = 'art_id ASC'; $POM = 'DESC'; break; case 'seeDESC' : $sortierung = 'art_viewed DESC'; break; case 'seeASC' : $sortierung = 'art_viewed ASC'; $DOM = 'DESC'; break; case 'dateDESC' : $sortierung = 'art_time DESC'; break; case 'dateASC' : $sortierung = 'art_time ASC'; $DAM = 'DESC'; break; } $tpl->set ('POM', $POM); $tpl->set ('DOM', $DOM); $tpl->set ('DAM', $DAM); $erg = db_query("SELECT art_id,art_title,art_uid,art_viewed,DATE_FORMAT(art_time,'%d.%m.%Y') as datum from `prefix_artsys_articles` WHERE art_cat = ".$cid." AND art_status = 1 ORDER BY ".$sortierung); if ( db_num_rows($erg) > 0 ) { $tpl->out(4); $class = 'Cnorm'; while($row = db_fetch_assoc($erg) ) { $class = ( $class == 'Cmite' ? 'Cnorm' : 'Cmite' ); $row['class'] = $class; $row['username'] = get_n($row['art_uid']); $tpl->set_ar_out($row,5); } $tpl->out(6); } $design->footer(); break; case 'show': $fid = escape($menu->get(2), 'integer'); $erg = db_query("SELECT art_cat,art_viewed,art_votes,art_rating,art_title,art_uid,art_content,art_id,DATE_FORMAT(art_time,'%d.%m.%Y') as datum FROM `prefix_artsys_articles` artsys LEFT JOIN `prefix_artsys_cats` ON id = art_cat WHERE art_id = ".$fid." AND art_status = 1 AND (".$_SESSION['authright']." <= recht OR (art_cat = 0 AND recht IS NULL))")OR die(mysql_error()); if (@db_num_rows($erg) !== 1) { $title = $allgAr['title'].' :: Artikeln '; $hmenu = '<a class="smalfont" href="?articles">Artikeln</a>'; $design = new design ( $title , $hmenu ); $design->header(); echo 'Der Artikel wurde nicht gefunden'; $design->footer(1); } $row = db_fetch_assoc($erg);
betroffene Homepage: swiss-shadow-force.ch