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
23 $lines = array_reverse(file($file)) or
26 // as long as there are lines ...
28 while(count($lines) > 0 && $news_counter < $max_news) {
30 $line = array_pop($lines);
33 if(eregi("^[a-z0-9]+;;;", $line)) {
35 list($author,$date,$time) = explode(";;;",$line);
38 $subject = array_pop($lines);
39 printf('<tr><td class="newsHeader">%s</td></tr>', $subject);
40 printf('<tr><td class="newsContent"><pre class="newsContent">');
46 if(eregi("^;;;", $line)) {
47 printf('</pre></td></tr>');
49 printf('<td class="newsFooter">%s - %s, %s</td>', $date, $time, $author);
51 printf('<tr><td><img src="/images/spacer.gif" width="1px" height="15px"></td></tr>');
64 <? require_once("inc/header.php"); ?>