here you go...
but the source is also viewable at the URL above...
THANKS!
<?php
/*
# php_news_system
# written and maintained by Adam Scheinberg, [email]webmaster@firsttube.com[/email]
# [url]http://tubecode.org[/url]
*/
// please do not remove this source code information
if ($QUERY_STRING=="about") {
if(file_exists("options.php")) { include("options.php"); }
echo "<center><table width=640>";
echo "<TR><TH align=center bgcolor=#003366><font face=tahoma color=#EFEFEF size=2>";
echo "about php_news_system v" . $php_news_system_version . "</a>";
echo "</TH></TR><TR><TD bgcolor=#EFEFEF align=center>";
echo "<br/><p align=center>";
echo "<font size=\"2\" face=\"tahoma,arial,helvetica,nimbus\" color=\"#000006\">";
echo "This is php_news_system, version $php_news_system_version. <br/>This system is ";
echo "fully cross platform - it works on on any web server on any OS and does not use any databases.</p>\n";
echo "<p align=\"center\">This code is completely free and may be editted or reproduced without penalty.</p>\n";
echo "<p align=\"center\">php_news_system is based on scripts originally found at ";
echo "<a href=\"http://codewalkers.com\">codewalkers.com</a>.</p><p align=\"center\">";
echo "For more on php_news_system and for current php_news_system downloads, please ";
echo "visit <a href=\"http://tubecode.org\">tubecode.org</a>.<br/><br/>";
echo "</p></td></tr><tr><td bgcolor=#c0c0c0 align=center>";
echo "<font size=\"2\" face=\"tahoma,arial,helvetica,nimbus\" color=\"#FFFFF4\">";
echo "<a href=\"$HTTP_REFERRER\">back to news</a></td></tr><tr>";
echo "<td bgcolor=#003366 align=center>";
echo "<font size=\"2\" face=\"tahoma,arial,helvetica,nimbus\" color=\"#FFFFF4\">";
echo "php_news_system <a href=\"http://www.fsf.org/copyleft/gpl.html\"><font color=\"#FFFFFF\">copyleft</a> ";
if ((date("Y")) != "2002") { echo "2002 - "; }
echo date("Y");
echo " Adam Scheinberg, <a href=\"http://tubecode.org\">";
echo "<font color=\"#FFFFFF\">tubecode.org</a>, part of <a href=\"http://firsttube.com\">";
echo "<font color=\"#FFFFFF\">firsttube.com</font></a></td></tr></table>";
} elseif ($QUERY_STRING=="viewsource") {
echo "<table width=100%><tr><td bgcolor=white align=left>\n";
highlight_file("news3.4.php");
echo "</td></tr></table>\n";
} else {
// create a new session
@session_start();
// register a session-variable
@session_register("newslimit");
// Assign a value to the session-variable
$newslimit = "0";
if(file_exists("options.php")) { include("options.php"); }
?>
<center>
<table width=<?=$tablewidth?>><tr><td width=100% valign=top align=center>
<?php
$display = (str_replace(""," ",$author));
$data = file("$newsfile");
$data = array_reverse($data);
foreach($data as $element) {
$element = trim($element);
$slashpieces = explode("|", $element);
$pieces[0] = stripslashes($slashpieces[0]);
$pieces[1] = stripslashes($slashpieces[1]);
$pieces[2] = stripslashes($slashpieces[2]);
$pieces[3] = stripslashes($slashpieces[3]);
$pieces[4] = stripslashes($slashpieces[4]);
$rightcat = (str_replace(""," ",$pieces[3]));
$fullname = (str_replace(" ","_",$pieces[1]));
if ($newslimit < $dispnum) {
echo "<TABLE BORDER=\"0\" CELLPADDING=\"0\" CELLSPACING=\"0\" BGCOLOR=\"#000000\"";
echo " WIDTH=\"100%\">\n<TR><TD>\n";
echo "<TABLE BORDER=\"0\" CELLPADDING=\"4\" CELLSPACING=\"1\" WIDTH=\"100%\">\n";
echo "<TR><TD COLSPAN=\"2\" BGCOLOR=\"#dddddd\" WIDTH=\"100%\">";
echo "<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\"><tr><td width=\"60%\">\n";
echo "<FONT COLOR=\"#111111\"><B>" . $pieces[4] . "</B></FONT></td>\n";
echo "<td valign=\"middle\" align=\"center\">\n";
echo "<TD valign=\"middle\" align=\"right\"><SMALL>Posted by ";
echo "<a href=$allnews?author=$fullname>" . $pieces[1] . "</a> on ";
echo $pieces[0] . "</SMALL></TD></TR>\n";
echo "</table></TD></TR>\n";
echo "<TR BGCOLOR=\"#ffffff\"><TD BGCOLOR=\"#ffffff\" COLSPAN=\"2\">\n";
echo "<P>" . $pieces[2] . "</P>";
echo "</TD></TR>\n";
echo "<TR BGCOLOR=\"#D7D7D7\"><TD BGCOLOR=\"#D7D7D7\" ALIGN=\"right\" COLSPAN=\"2\">category: ";
echo "<a href=\"$allnews?showcat=" . $pieces[3] . "\" title=\"more " . $rightcat . "\">" . $rightcat . "</a>";
echo "</TD></TR>\n</TABLE></TD></TR></TABLE><BR>"; }
$newslimit++;
}
echo "<TR><TD align=center bgcolor=#003366><font face=tahoma color=#c0c0c0 size=2>";
echo "[<a href=$allnews><font color=\"#FFFFFF\">view all current news</font></a>] [";
echo "<a href=viewarchives.php><font color=white>view news archives</font></a>]";
echo "</TD></TR>";
session_unregister("newslimit");
session_destroy();
?>
</td></tr></table>
<?php
// we humbly request that if you use this system on your site,
// you leave this slight acknowledgement intact (of course, you don't have to...)
echo "<center><font size=\"1\" face=\"tahoma,arial,helvetica,nimbus\" color=\"#003366\">";
echo "(( php_news_system )) <a href=\"http://www.fsf.org/copyleft/gpl.html\">copyleft</a> ";
echo date("Y") . " <a href=\"http://tubecode.org\">";
echo "tubecode.org</a>, part of <a href=\"http://firsttube.com\">firsttube.com</a> || ";
echo "<a href=\"$PHP_SELF?about\">about this code</a>";
}
?>