#########################################################
# gbNews 1.0.0a #
# Created by Gleb "Lars" Belov #
# Last Change: The 2nd of January, 2004 #
# #
# Please visit http://www.gbscripts.tk #
# for new versions, updates and official support #
# #
# You are free to use and modify this script as you #
# like but please report all founded bugs on the forums #
# and don't erase the copyright. #
# #
# (c) gbScripts. Gleb 'Lars" Belov. 2004 #
#########################################################
$NewsBase=file("news.inc.dat");
# Copying all strings to the news.inc.dat file
$NewsCount=count($NewsBase);
# Count the number of strings in the DB.
while($string=array_pop($NewsBase))
# Begin
{
# Date and news.
list($date,$news)=split(" ",$string,2);
# $data Ц date, $news Ц news.
echo " Date: ".$date." ".$news." ";
# Execute the date and the news.
}
# End.
echo " Total number of news: ".$NewsCount."";
# Total amount of news in the DB.
echo " News powered by ";
?>
|