Fixed news.

This commit is contained in:
Jeff Teunissen 2000-03-19 07:52:10 +00:00
parent bc64789d06
commit 8cb2372450
2 changed files with 8 additions and 8 deletions

View file

@ -43,15 +43,15 @@
if ( $numRows > 0 ) { if ( $numRows > 0 ) {
for ( $i = 0 ; $i < $numRows ; $i++ ) { for ( $i = 0 ; $i < $numRows ; $i++ ) {
list( $n_date, $n_user, $n_news ) = pg_fetch_row( $result,$i ); list( $n_date, $n_user, $n_news ) = pg_fetch_row( $result,$i );
tableNewsItem( $n_date, $n_user, $n_news ); newsItem( $n_date, $n_user, $n_news );
} }
} else { } else {
tableNewsItem( 'Now', 'nobody', 'No current news!' ); newsItem( 'Now', 'nobody', 'No current news!' );
} }
$result = mysql_close( $conn ); $result = mysql_close( $conn );
} else { } else {
$newsitem = '<P>A new <A HREF="http://quake.sourceforge.net/progress.php">State of the Code</A> address has been posted coitaining important information about support for MegaTF\'s upcoming Mega2k release. If you play MegaTF it is highly recommended that you read this less technical than usual SotC. Even if you don\'t play it, you probably should have a look.'; $newsitem = '<P>A new <A href="http://quake.sourceforge.net/progress.php">State of the Code</A> address has been posted coitaining important information about support for MegaTF\'s upcoming Mega2k release. If you play MegaTF it is highly recommended that you read this less technical than usual SotC. Even if you don\'t play it, you probably should have a look.';
tableNewsItem( '18 Mar 2000', 'Knghtbrd', $newsItem ); newsItem( '18 Mar 2000', 'Knghtbrd', $newsItem );
$newsItem = '<P>Thanks to Deek we now have a brand new site layout which should be much more consistent.' . $newsItem = '<P>Thanks to Deek we now have a brand new site layout which should be much more consistent.' .
'<P>In other news, the votes for the logo are still being submitted, but we should have something real soon now.'; '<P>In other news, the votes for the logo are still being submitted, but we should have something real soon now.';

View file

@ -39,15 +39,15 @@
if ( $numRows > 0 ) { if ( $numRows > 0 ) {
for ( $i = 0 ; $i < $numRows ; $i++ ) { for ( $i = 0 ; $i < $numRows ; $i++ ) {
list( $n_date, $n_user, $n_news ) = pg_fetch_row( $result,$i ); list( $n_date, $n_user, $n_news ) = pg_fetch_row( $result,$i );
tableNewsItem( $n_date, $n_user, $n_news ); newsItem( $n_date, $n_user, $n_news );
} }
} else { } else {
tableNewsItem( 'Now', 'nobody', 'No news!' ); newsItem( 'Now', 'nobody', 'No news!' );
} }
$result = mysql_close( $conn ); $result = mysql_close( $conn );
} else { } else {
$newsitem = '<P>A new <A HREF="http://quake.sourceforge.net/progress.php">State of the Code</A> address has been posted coitaining important information about support for MegaTF\'s upcoming Mega2k release. If you play MegaTF it is highly recommended that you read this less technical than usual SotC. Even if you don\'t play it, you probably should have a look.'; $newsitem = '<P>A new <A href="http://quake.sourceforge.net/progress.php">State of the Code</A> address has been posted coitaining important information about support for MegaTF\'s upcoming Mega2k release. If you play MegaTF it is highly recommended that you read this less technical than usual SotC. Even if you don\'t play it, you probably should have a look.';
tableNewsItem( '18 Mar 2000', 'Knghtbrd', $newsItem ); newsItem( '18 Mar 2000', 'Knghtbrd', $newsItem );
$newsItem = '<P>Thanks to Deek we now have a brand new site layout which should be much more consistent.' . $newsItem = '<P>Thanks to Deek we now have a brand new site layout which should be much more consistent.' .
'<P>In other news, the votes for the logo are still being submitted, but we should have something real soon now.'; '<P>In other news, the votes for the logo are still being submitted, but we should have something real soon now.';