1 <? require_once("inc/header.php"); ?>
5 <td class="contentTopic">
10 <table width="90%" align="center">
13 <table class="news" style="width: 99%">
19 // read file into an array and revert that
20 // revert cause array_pop always gets the last element
22 //currently the english-version from above
23 $file = "../news.txt";
24 $lines = array_reverse(file($file)) or
25 die("Kein Newsfile gefunden!");
27 // as long as there are lines ...
29 while(count($lines) > 0 && $news_counter < $max_news) {
31 $line = array_pop($lines);
34 if(eregi("^[a-z0-9]+;;;", $line)) {
36 list($author,$date,$time) = explode(";;;",$line);
39 $subject = array_pop($lines);
40 printf('<tr><td class="newsHeader">%s</td></tr>', $subject);
41 printf('<tr><td class="newsContent"><pre class="newsContent">');
47 if(eregi("^;;;", $line)) {
48 printf('</pre></td></tr>');
50 printf('<td class="newsFooter">%s - %s, %s</td>', $date, $time, $author);
52 printf('<tr><td><img src="images/spacer.gif" width="1px" height="15px"></td></tr>');
65 <? require_once("inc/header.php"); ?>