" . $title[0] . " Seite $act_page von $anz_pages Seiten ";} ?>
 
";} ?>
 
" . $file_array[2] . "
"; for ( $next=0; $next < count($file_array); $next++ ){ if (trim($file_array[$next])=="#"){ $flag++; $act_page++; $next++; $next++; echo "" . $file_array[$next] . "
"; } } } else { $file_array = file("sections/$weiter"); $keys=array(1); for ( $i=0; $i < count($file_array); $i++ ) { if (trim($file_array[$i])=="#"){ array_push($keys,"$i"); } } if(isset($zurueck)){ $x=($flag-2); $next=($keys[$x]+1); $flag=($flag-1); } for ( $next; $next < count($file_array); $next++ ) { if (trim($file_array[$next])!="#"){ echo $file_array[$next]; // echo$next; if ($next==(count($file_array)-1)){$flag++;} } else { if(!isset($zurueck)){$flag++;} break; } echo"
"; } if($act_page!=1){echo"zurueck " ;} echo"Abschnitte " ; if($next != count($file_array)){$next++; $act_page++; echo"weiter " ;} else{echo"StartMenue";} echo"

"; } } if(!isset($weiter)){ $handle=opendir('sections'); $file = readdir ($handle) ; //sort($file); while (false !== ($file = readdir ($handle))) { $hallo=explode(".",$file); If($file != ".." && $file != "."){ echo "$hallo[0]
"; } } closedir($handle);} ?>