News?


'.$linktext.''.$b; } } return($s); } // change this to the diectory of your news files // they should be plain ASCII text files with extension ".txt" $newspath = '/Web/magelair/News/'; // Declae array to hold filenames $newsfile = array(); $modfile = array(); // Ceate handle to search directory $newspath for files $hd = dir($newspath); // Get all files and stoe them in array while( $filename = $hd->read() ) { $s=strtolower($filename); if (strstr($s,".txt")) { // Determine last modification date $lastchanged=filemtime($newspath.$filename); $newsfile[$filename] = $lastchanged; } } // Sot files in descending order asort($newsfile); // Output files to bowser for(reset($newsfile); $key = key($newsfile); next($newsfile)) { $fa = file($newspath.$key); $n=count($fa); print "\n"; print "
"; print "
\n"; print "\n"; print date("D M d, Y",$newsfile[$key]); print " - "; print date("H:i:s",$newsfile[$key]); print "
\n"; print ""; print "
\n"; print "\n"; for ($i=01; $i<$n; $i=$i+1) { $s=chop($fa[$i]); $s=htmlspecialchars($s); $s=createurl($s); print $s; } print "
"; // print ""; // print "

\n"; print ""; print "
\n"; print "\n"; $s=chop($fa[0]); print "Submitted by: ".$s; print "


\n"; print "\n\n\n"; } $hd->close(); ?>

Previous News