News


************************************************* * Micro News
* * Version: 1.0 * Date: 2007-07-12 ************************************************* Micro News is a very basic and simple news script. You can add your news which are stored in flat files so you don't need any database. Installation: 1. Upload all files to your web server. 2. Visit admin.php to add new content. 3. The main page index.php displays all news. Troubleshooting: - Can't see the news text Check the content of the news directory. It should contain all news. If not then change the directory permission to allow the script to write there.



/*************************************************
* Micro News * * Version: 1.0 * Date: 2007-07-12 * * Usage: * ****************************************************/ // This function reads all available news function getNewsList(){ $fileList = array(); // Open the actual directory if ($handle = opendir("news")) { // Read all file from the actual directory while ($file = readdir($handle)) { if (!is_dir($file)) { $fileList[] = $file; } } } rsort($fileList); return $fileList; } ?> Grainseed News
News
"; echo ""; } ?>
$newsTitle$submitDate
".$newsContent."



/*************************************************
* Micro News * * Version: 1.0 * Date: 2007-07-12 * * ****************************************************/ if (!isset($_POST['submit'])) { ?> Grainseed News
Grainseed News - Add news
News title:


Content:

Micro News 1.0