foreach($newsdata AS $news){
$allnews .= formatnews($template,'0',$news);
}
$i = 1;
foreach($newsdata AS $news){
$allnews .= formatnews($template,'0',$news);
if($i == "1"){
$allnews .= "STUFF";
}
$i++;
}
$newsdata = DataAccess::fetch($sql);
if(ID == "" || ID == "0" || $static){
$template5 = '';
$allnews = '';
$oneortwo = 'one';
$i = 1;
foreach($newsdata AS $news){
$allnews .= formatnews($template,'0',$news);
if($i == "2"){
$numsbo=3;
$sbofiles[]="./includes/banner1.php";
$sbofiles[]="./includes/banner2.php";
$sbofiles[]="./includes/banner3.php";
$option=rand(0,$numsbo-1);
$allnews .= file_get_contents($sbofiles[$option]);
}
$i++;
}