Viewing Archive for $f

\n"; } else if($a == "Poster") { $news .= "

Viewing Archive for $f

\n"; } else if($a == "Default") { $news .= "

Viewing " . ucfirst(inttotext($count)) . " Latest News Items

\n"; } fclose($datafile); for($i=0; $i\n"; $news .= "

Posted by " . $news_item[$i][2] . " - " . $news_item[$i][3] . " " . $news_item[$i][4] . "

\n"; for($x = 5; $x < count($news_item[$i]); $x++) { $news .= "

" . $news_item[$i][$x] . "

\n"; } $news .= "

 

\n"; } } if($news == "") { $news .= "

No News Today

\n"; $news .= "

No news could be found. If you would like to submit a news item, please contact Drakael in-game with the details.

\n"; } echo stripslashes($news); } $archives = array(); $posters = array(); $datafile = fopen("admin/data/news.dat","r") or die("Could not open datafile"); $count = 0; while (!feof($datafile)) { $line = fgets($datafile, 4096); $entry = explode("|",$line); if($entry[0]) { $temp = substr($entry[3],6,4) . "-" . substr($entry[3],0,2) . "-" . substr($entry[3],3,2); $posters[$count] = $entry[2]; $archives[$count] = date("F Y", strtotime($temp)); } $count++; } fclose($datafile); $posters = array_unique($posters); sort($posters); $archives = array_unique($archives); usort($archives, "date_sort"); ?> - The Green Council -
 
W

his is the Green Council news archive. Here you can read all past news items that have been posted on the site. You can view posts by archived month, or by author, using the links to the right.

News

*Monthly Archives

$archives[$i]
\n"; } ?>

*Poster Archives

$posters[$i]
\n"; } ?>