0){ $c++; $anz = $anz - $anznews; } /* Addon: neues PHP */ if(!isset($_GET['page'])){ $page = 1; $pag = $page-1; } else{ $page = $_GET['page']; $pag = $page-1; } /* */ $array = array(); while($l=mysql_fetch_array($re)){ array_push($array,$l); } $anzahl = mysql_num_rows($re); for($x=($anzahl-$anznews*$page+$anznews)-1; $x>($anzahl-$anznews*$page)-1; $x--){ if($x >= 0){ $id = $array[$x]['user_id']; $result = mysql_query("SELECT vorname, nachname FROM user WHERE id = $id"); $arr = mysql_fetch_array($result); $id = $array[$x]['id']; $topic = $array[$x]['topic']; $datum2 = $array[$x]['datum']; $username = ucfirst($arr["vorname"])." ".ucfirst($arr["nachname"]); $newsdb = $array[$x]['newstext']; $datum = date("d.m.Y",$datum2); $uhrzeit = date("H:i",$datum2); $newstext = bbcode($newsdb); $template = "templates/news.html"; $var_array = array("topic" => $topic, "news" => $newstext, "username" => $username, "datum" => $datum, "uhrzeit" => $uhrzeit); $tpl = new parser($template, $var_array); } } echo "
"; if($page > 1 ){ echo "«  "; echo "  "; } for($b=1;$b<=$c;$b++){ $site = $b; if(isset($page) && $page == $site){ echo "".$b."  "; } else { echo "$b  "; } } $pag = $page+1; if($page < $c ){ echo "  "; echo "»  "; } echo "
"; ?>
(c) 2009-2011 Demorian-Music.com | Impressum