The beginnings of SQL support. Until the login stuff is taken care of,

you'll need to send news updates to me for posting with MySQL.
This commit is contained in:
Jeff Teunissen 2000-05-06 03:11:24 +00:00
parent dd5d25d19f
commit 7915df0394
3 changed files with 73 additions and 221 deletions

View file

@ -1,17 +1,25 @@
<?
$newsItem = '<P>I should be able to get the soundcard shipments out on Saturday actually.';
newsItem('5 May 2000', 'Palisade', $newsItem);
$newsItem = '<P>John Carmack has released the QuakeC code under the GPL, he will be putting up copies of these with the GPL notice on them on the official site which I\'m sure he\'ll announce publically soon. <P>Developers can now get win32 binaries of Quakeforge compiled with Borland C++ instead of MSVC available from <a href="http://personal.inet.fi/cool/quake1/">here</a> and a mirror of snapshot 03/05/00 can be found <a href="ftp://quake.sourceforge.net/pub/quake/files/qf-win32-borl.zip">here</a> (679KB).<P>To members: Don\'t edit other member\'s news items, even if they are wrong, tell them about it and let them fix it or write a NEW news item under your own name clarifying things.<P>Thanks to Creative Labs for donating sound cards to the team. I\'ll be sending them out to team members Monday, sorry for the delay, time does me no favor. I\'d send it tomorrow but I\'ll be at a 2600 conference.';
newsItem('4 May 2000', 'Palisade', $newsItem);
$newsItem = '<P>QuakeForge is planning to integrate <a href="http://www.openal.org/">OpenAL</a> support as optional for those who want it. I\'ve asked John Carmack to consider releasing some of the Quake tools under the GPL. Most of the development crew at QuakeForge consider the quake-devel mailing list the official medium of discussion. Subscribing to this list will get you more in touch with QuakeForge and what we\'re up to, developers should use quake-devel and not the web forums. The research center is now officially up, you can enter it on the side-bar menu or go <a href="research/index.php">here.</a>';
newsItem('26 Apr 2000', 'Palisade', $newsItem);
$newsItem = '<P>A lot of people prefer web forums to mailing lists. SourceForge offers them, but they\'re not very friendly to use. Red Fox, the guy running the <A HREF="http://www.netfrag.com/megaboard">Netfrag Zap UBB board</A> has graciously offered us a forum which is much easier to use. The URL is a long CGI script, so there\'s a shortcut at <A HREF="http://quakeforge.net/board/">http://quakeforge.net/board/</A> to save typing.';
newsItem('25 Apr 2000', 'Knghtbrd', $newsItem);
$newsItem = '<P>Fully working support for Mega2k\'s airscout and view height adjustments have been committed. We\'re also gearing up for a release of 0.2.0 as soon as several critical bugs are found and squashed. Please <A HREF="mailto:quake-devel@lists.sourceforge.net">send us</A> info on any major bugs as well as how to reproduce them.';
newsItem('2 Apr 2000', 'Knghtbrd', $newsItem);
$conn = mysql_pconnect( "moby", "quakeforge", "6ef/HNvv" );
if ( $conn ) {
$query = 'SELECT n_date, n_user, n_news FROM news_main ' .
'WHERE n_date > DATE_SUB(NOW(), INTERVAL 1 MONTH) ' .
'ORDER BY n_date DESC';
$result = mysql_db_query( "quakeforge", $query, $conn );
if ( $result > 0 ) {
$numRows = mysql_num_rows( $result );
if ( $numRows > 0 ) {
for ( $i = 0 ; $i < $numRows ; $i++ ) {
list( $n_date, $n_user, $n_news ) = mysql_fetch_row( $result );
newsItem( $n_date, $n_user, $n_news );
}
} else {
newsItem( 'now', 'Web Server', '<P>No current news!' );
}
} else {
newsItem( 'now', 'Web Server', '<P>No news in database!' );
}
$result = mysql_close( $conn );
} else {
newsItem( 'Now', 'Web Server', '<P>Error: Could not connect to SQL server to fetch news. Please notify the server administrator.' );
}
?>

View file

@ -1,49 +1,32 @@
<?
$sitename = "The QuakeForge Project";
$pagename = "News Archives";
require("parts/library.php"); // Load function library
include("parts/head.php"); // Load the HEAD and open BODY
include("parts/topstrip.php"); // Display top strip
include("parts/titletable.php"); // Display main title w/ logos
<? // Preamble
$pageName = "News Archives";
$focused = "news"; // Dock icon name to gets a border
require("parts/preamble.php"); // Load most of document
?>
<TABLE width="100%" cellspacing=0 cellpadding=0 border=0>
<TR valign="top">
<?
include("parts/menu.php"); // Import left-side menus
tableSpacer( 1, 9, 1, "black"); // Separate content from menus
?>
<TD width="100%">
<?
$focused = "news"; // name of focused icon
include( "parts/topmain.php" ); // Display content top table
?>
<P>
<TABLE width=100% cellSpacing=0 cellPadding=0 border=0>
<TR vAlign=top>
<TD colSpan="2">
<?
tableBoxHeader( 'black', $tableHeadColor );
tableTitle( 'All News', 1, $tableHeadColor );
include("news_funcs.php");
include("cur_news.php");
<!--SEARCHME-->
<TABLE width="100%" cellSpacing="0" cellPadding="0" border="0">
<TR vAlign="top">
<TD colSpan="2"><? // News display
tableBoxHeader( 'black', tableHeadColor );
tableTitle( 'All News', 1, tableHeadColor );
require("news_funcs.php");
include("old_news.php");
tableBoxFooter();
?>
?></TD>
</TR>
<TR vAlign=top>
<? tableSpacer(9, 9, 1, "black"); ?>
</TR>
<TR vAlign=top>
<TD align="center">
<? include("sponsor_incl.html"); ?>
</TD>
</TR>
</TABLE>
&nbsp;<BR>
</TD>
<?php
tableSpacer( 1, 9, 1, "black");
?>
</TR>
<TR>
<TD colSpan="4">
<?php
include("parts/copyright.php");
?>
</TD>
<TR vAlign=top>
<? tableSpacer(9, 9, 1, "black"); ?>
</TR>
</TABLE>
<!--NOSEARCH-->
<?
require("parts/postamble.php"); // Finish this sucker up
?>

View file

@ -1,163 +1,24 @@
<?
$newsItem = '<P>A new <A href="http://quake.sourceforge.net/progress.php">State of the Code</A> address has been posted containing 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. <EM>UPDATE: There\'s new info there, check it out</EM>';
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.' .
'<P>In other news, the votes for the logo are still being submitted, but we should have something real soon now.';
newsItem('06 Mar 2000', 'Mercury', $newsItem);
$newsItem = '<P>Knghtbrd, our stable release manager, has been instructed to lay off the Quack.. &lt;=:]';
newsItem('27 Feb 2000', 'Mercury', $newsItem);
$newsItem = '<P><B>QuackForge 0.1.1 has arrived!</B> tar.gz, tar.bz2, and zip source archives are available at our <A href="http://sourceforge.net/project/filelist.php?group_id=882">Downloads page</A>. Grab your copy today!';
newsItem('27 Feb 2000', 'Knghtbrd', $newsItem);
$newsItem = '<P>Daniel McGregor has joined the project to maintain OpenBSD support.' .
'<P>As a result of the current situation with QuakeLives, we have added a new goal: to support mod developers (such as MegaTF) more and provide 32-bit Windows executables (now that we have a qualified Windows developer working with us) for download.';
newsItem('25 Feb 2000', 'Palisade', $newsItem);
$newsItem = '<P>It turns out that our newest core member, Dan Olson, was responsible for the Hexen <a href="http://www.raven-games.com/hhexen">port</a> to Linux.' .
'<P>QuakeWorld Forever is considering hosting a mirror of the QuakeForge CVS in Australia for better access in that location.' .
'<P>Jason Nelson has successfuly built all targets in win9x/NT/win2k, he\'s working on some glitches in some of the targets.' .
'<P>The QuakeWorld Forever project has <a href="http://qwf.challenge-world.com/">moved</a>, and the site is better than ever.<P>' .
'<P>Zephaniah E. Hull and Bill Currie have fixed some compiling bugs.' .
'<P>Marcus Sundberg fixed GGI and X11 input and has further synced QW/UQ.' .
'<P>Dan Olson made a fix to the console.' .
'<P>Joseph Carter cleaned up a few GLX problems.' .
'<P>Bill Currie has cleaned up shutdown, and fixed a crash during game load.' .
'<P>Jukka Sorjonen has fixed a QW protocol problem.' .
'<P>Zephaniah E. Hull has added profiling support when compiling.' .
'<P>Jason Nelson has applied a large array of fixes for win32.';
newsItem('20 Feb 2000', 'Palisade', $newsItem);
$newsItem = '<P>Work is being done towards a 0.1.1 release.' .
'<P>Marcus Sundberg added DGA/XMESA support and on-the-fly resizing of the window in *-gl versions.' .
'<P>Bill Currie and Joseph Carter have fixed Mercury\'s mess, things are more sane now.' .
'<P>Eric Windisch made some additional tweaks to the pak3 code.' .
'<P>Dan Olson has joined the team.' .
'<P>Input routines are becoming modularized.' .
'<P>Dan Olson has implemented a Q2/Q3-style CVAR system as described by Zoid.' .
'<P>Joseph Carter has gotten Svgalib input to work again.' .
'<P>Pontus Lidman added --enable-ipv6 to configure to enable IPv6 networking.' .
'<P>Loring Holden made changes to get the build to work when zlib is not available.' .
'<P>Loring Holden fixed warnings under AIX, Irix, Linux and Solaris.' .
'<P>Bill Currie fixed some ALSA bugs.' .
'<P>Bill Currie has added gzip support.' .
'<P>Jeff Teunissen has made some fixes to the Makefiles.' .
'<P>Bill Currie has added path searching to plugin.c' .
'<P>Zephaniah Hull has helped add modularity.' .
'<P>Joseph Carter has added netchan support to uquake.' .
'<P>Marcus Sundberg added support for CDROM on (Free)BSD.' .
'<P>Jeff Teunissen fixed a segfault in uquake.';
newsItem('17 Feb 2000', 'Palisade', $newsItem);
$newsItem = '<P><A href="mailto:zoid@sourceforge.net">Dave &quot;Zoid&quot; Kirsch</A> has joined the QuakeForge team.' .
'<P>Zoid has plans to clean up the mouse code.' .
'<P>Joseph Carter is working on making a target for Nelson Rush\'s tty support.' .
'<P>Matrox has graciously shipped Nelson Rush a G400 dual head, and offered 25% for the rest of the team.' .
'<P>We just recieved the first shipment, eight cards, of sixteen voodoo 2 cards from 3Dfx. They\'ve also promised to ship sixteen Voodoo 3 cards, and possibly Voodoo 4 and 5 cards when they are out.' .
'<P>VA Linux Systems will be supplying various 3D cards and hardware to the QuakeForge team.' .
'<P>Eric Windisch is working on water rippling.' .
'<P>The team is working on finishing up the QW/Q1 merge.' .
'<P><A href="mailto:colonelpanic@sourceforge.net">Daniel O\'Neill</A> is integrating qstat for listing internet games while in-game.' .
'<P><A href="mailto:theoddone@quakefiles.com">Dan Olson</A> has contributed a PHP<a href="credits.php">credits</a> section to the website.' .
'<P>Nelson Rush has updated the <a href="progress.php">progress</a> section.';
newsItem('13 Feb 2000', 'Palisade', $newsItem);
$newsItem = '<P>QW/Q1 merge almost complete, thanks to the tireless efforts of Joseph Carter, Bill Currie, Loring Holden, Jeff Teunissen, and the rest of the QuakeForge team. Also, thanks to our fans for all the support, you guys are great.' .
'<P><A href="mailto:pontus@sourceforge.net">Pontus Lidman</A> is now maintaining IPV6 support.' .
'<P><A href="mailto:xC0000005@sourceforge.net">Jason Nelson</A> is now maintaining the VC++ and win32 support.' .
'<P><A href="http://qsg.telefragged.com/">QSG</A> has joined QuakeForge in efforts to pull the Quake development community together.' .
'<P>Phoenix from the <a href="http://www.planetquake.com/qer/">QER</a> project is redesigning the QER engine to be based off of QuakeForge and to also merge features from QER into the QuakeForge engine for mutual compatibility.';
newsItem('11 Feb 2000', 'Palisade', $newsItem);
$newsItem = '<P>Check out the <A href="contest.php">logo contest</A> for a new logo for QuakeForge.';
newsItem('7 Feb 2000', 'Palisade', $newsItem);
$newsItem = '<P>We will be adding a &quot;mirrors&quot; section where you will find mirrors of our website and files.';
newsItem('31 Jan 2000', 'Palisade', $newsItem);
$newsItem = '<P>Developers check out the <a href="develop.php">developer section</a> for more information on how you can contribute.<br>' .
'<P>Zephaniah E. Hull has resigned as Interproject Relations Specialist for QuakeLives over a violation of the GPL.' .
'<P>Nelson Rush has committed tty support, but it needs a target and to be debugged since it hasn\'t been tested yet.' .
'<P>Joseph Carter has rewritten the TODO file to be more informative.' .
'<P>Eric Windisch is currently working on the initial efforts to merge Aftershock.';
newsItem('29 Jan 2000', 'Palisade', $newsItem);
$newsItem = '<P><B>QuakeForge 0.1.0 has been released!</B> Go to the <a href="devfiles.php">downloads</a> section and grab it.';
newsItem('27 Jan 2000', 'Palisade', $newsItem);
$newsItem = '<P>pak3 (Q3A pak file format) support has been implemented.' .
'<P>The &quot;waterwarp&quot; bug has been fixed, set <TT>r_waterwarp 1</TT> to use it.';
newsItem('26 Jan 2000', 'Palisade', $newsItem);
$newsItem = '<P>3Dfx Interactive and VA Linux Systems have graciously offered to donate hardware. In addition, VA will be supplying t-shirts and bumper stickers to the QuakeForge team. The logo on the t-shirt and stickers will not be the one you\'ve seen on the website so far -- we\'ll be replacing that as soon as possible by request of id Software. Due to demand for t-shirts from outside of the core team Copyleft will be selling QuakeForge t-shirts as soon as we give them the logo.';
newsItem('23 Jan 2000', 'Palisade', $newsItem);
$newsItem = '<P>Release 0.1.0 has been branched, since many bugs have popped up since we branched, we will not be releasing tonight. There is no set release date.' .
'<P>Feature freeze is officially over.' .
'<P>Bill Currie has completed the RPM building scripts and Joseph Carter has completed the Debian package building scripts.' .
'<P>Old news that should be mentioned:' .
'<P>In uquake, the chasecam cvar is now cl_chasecam just like it is in qw-client.' .
'<P>qw-client\'s crosshair 2 is now supported in uquake.' .
'<P>A new OpenGL-only experimental crosshair 3 has been added.' .
'<P>The check for a copy of the registered pak files has been changed so that it no longer places restrictions on what the code does.' .
'<P>The OpenGL renderers now support fullbright textures. <B>[note: this has been removed.]</B>' .
'<P>Code to detect clients attempting various time related cheats has been added.' .
'<P>Options for fullscreen and use mouse have been added to some targets\' menu systems.' .
'<P>Preliminary support for the wheels found on some mice has been added to the Linux SVGALib target. To use it bind MHWHEELDOWN and MHWHEELUP to whatever you want to use the wheel for.' .
'<P>New cvar: r_waterripple When set to 1 this will create a small wave effect under the OpenGL renderers.' .
'<DL><DT>new ./configure option: --enable-newstyle</DT>' .
'<DD>Currenly all this does is use "base" instead of "id1" for the default place to look for your game data.</DD></DL>' .
'<P>cvar show_fps now works in uquake as well as qw-client. No more need to use timedemo to check performance! Much more accurate in showing where performance is good and where it isn\'t.' .
'<P>removed cvar r_mirroralpha. This was a cheap hack which affected one texture on one map of the entire game. It also wasn\'t working right, so it\'s been removed.' .
'<P>You may now specify multiple game directories with -game. If for example you wanted to use the original registered game with MegaTF on a new style binary you would use -game id1,megatf. It does work with traditional style binaries and you may specify as many dirs as you like seperated by commas.';
newsItem('21 Jan 2000', 'Palisade', $newsItem);
$newsItem = '<P>Bill Currie will be maintaining the RPM package and Joseph Carter will be maintaining the DEB package. We will support gzipped and bzip2\'d tarballs and zip packages, Nelson Rush will maintain those.' .
'<P>Linux.com did an <a href="http://www.linux.com/interviews/19991229/34/">interview</a> with Nelson Rush (palisade), this is late news but I thought I\'d mention it.' .
'<P>The <A href="http://qwf.challenge-world.com/">QuakeWorld Forever</A> project has agreed to work with QuakeForge toward a better QuakeWorld.' .
'<P>FreeBSD support is complete, now to smooth out the edges.' .
'<P>John Carmack has been sent the GPL\'d mdfour replacement (i think my previous message about it was overlooked) again, and hopefully he provides it as a standard fix to the Quake development community.' .
'<P>Win95/98 is supported now with mingw32 and MSVC, thanks to Marcus Sundberg (mingw32), Jeff Teunissen (gas2masm fix) and Jason Nelson (VC fix).' .
'<P>We are rolling CVS snapshots every 15 minutes, you can grab a copy in the downloads section.';
newsItem('20 Jan 2000', 'Palisade', $newsItem);
$newsItem = '<P>The <a href="http://frag.com/quest/">Quest Quake map editor</a> is actually GPL\'d (Win32/DOS) and the unix port is outdated, the authors have been contacted about releasing the unix port under the GPL as well. If it is, then Quest will be QuakeForge\'s official editor of choice and we\'ll help to maintain it and port it to more platforms.' .
'<P><B>Update:</B> The Quest Map editor is GPL\'d, the older version was not.' .
'<P>Nelson Rush has released a working tweak of the GPL\'d Quest map editor for Linux. You can find it in the <a href="devfiles.php">downloads</a> section under "Linux/BSD/UNIX".' .
'<P>Mercury has finalized his speed cheat fixes, that should about do it.' .
'<P>VA Linux Systems will be making "QuakeForge" T-shirts for the QuakeForge core developers. Just so developers and users outside the project aren\'t left out, Copyleft will be selling QuakeForge T-shirts as well.' .
'<P>Raptor\'s global volumetric fog can now be used with r_fog &lt n &gt.' .
'<P>&quot;ok, if you wanna use fog for now on, id suggest r_fog .0005&quot;, raptor in #quakeforge' .
'<P>We need to redesign the QuakeForge logo, it seems we\'re not allowed to use the Quake 1 symbol in it according to the CEO of id Software, Todd Hollenshead.' .
'<P>Joao Miguel is working on rewriting the Quake Engine\'s rendering pipeline in order to add DirectX support, which includes Direct3D, DirectMusic, etc. He says things are going pretty well and that he should have something usable in a week or so.';
newsItem('19 Jan 2000', 'Palisade', $newsItem);
$newsItem = '<P>Nelson Rush is working aavga into a vid_tty.c handler to make text QuakeForge embedded.';
newsItem('18 Jan 2000', 'Palisade', $newsItem);
$newsItem = '<P>Laurent Giroud is working on merging Amiga support into QuakeForge, cross your fingers!';
newsItem('14 Jan 2000', 'Palisade', $newsItem);
$newsItem = '<P>The Aftershock engine is currently being maintained on our CVS by <a href="mailto:lazyX@home.com">Stephen Taylor</a>, the author of Aftershock. Stephen is also working with us to merge QuakeForge and Aftershock. Aftershock is a Q3A-like rendering engine which can render Q3A levels almost perfectly. You can join in on the discussion by <a href="http://lists.sourceforge.net/mailman/listinfo/quake-aftershock">subscribing</a> to the quake-aftershock mailing list.';
newsItem('13 Jan 2000', 'Palisade', $newsItem);
$newsItem = '<P>Nelson Rush has set up a project called Quake Policy to help projects inter-communicate on Quake&reg; development. Project leaders, members, or anyone interested in collaborating to maintain compatibility and feature sets across all Quake projects can visit the <a href="http://quakepolicy.sourceforge.net/">Quake Policy homepage</a> and subscribe to the mailing list. Quake Policy is a seperate organization from QuakeForge and it\'s only goal is inter-project collaboration. Beyond mailing lists, we might also host projects in the CVS for mutual development, and we could host patches for fixes and feature additions for other projects out there who need them.';
newsItem('12 Jan 2000', 'Palisade', $newsItem);
$newsItem = '<P>Sam Lantinga is working with the QuakeForge project on maintaining SDL support.';
newsItem('11 Jan 2000', 'Palisade', $newsItem);
$newsItem = '<P>We need help implementing IPv6, fixing Svgalib, merging the Aftershock renderer, porting to Amiga, MacOS, BeOS, or any other platforms. We also could use a hand in devising free replacements for the textures/maps/models/etc. Join our <a href="http://lists.sourceforge.net/mailman/listinfo/quake-devel">mailing list</a> to see about contributing.';
newsItem('10 Jan 2000', 'Palisade', $newsItem);
$newsItem = '<P>Feature freeze begun, unstable release 0.1.0 coming soon.';
newsItem('9 Jan 2000', 'Palisade', $newsItem);
$newsItem = '<P>Vote in <a href="http://sourceforge.net/survey/survey.php?group_id=882&survey_id=10062">this survey</A> for the new Quake&reg; and QuakeWorld&reg; engine name.';
newsItem('7 Jan 2000', 'Palisade', $newsItem);
$newsItem = '<P>**Critical** download, grab our GPL\'d mdfour replacement for the proprietary md4 code accidently left in the q1source release from our <a href="devfiles.php">downloads</a> section.';
newsItem('6 Jan 2000', 'Palisade', $newsItem);
$conn = mysql_pconnect( "moby", "quakeforge", "6ef/HNvv" );
if ( $conn ) {
$query = 'SELECT n_date, n_user, n_news FROM news_main ' .
'ORDER BY n_date DESC';
$result = mysql_db_query( "quakeforge", $query, $conn );
if ( $result > 0 ) {
$numRows = mysql_num_rows( $result );
if ( $numRows > 0 ) {
for ( $i = 0 ; $i < $numRows ; $i++ ) {
list( $n_date, $n_user, $n_news ) = mysql_fetch_row( $result );
newsItem( $n_date, $n_user, $n_news );
}
} else {
newsItem( 'now', 'Web Server', '<P>No current news!' );
}
} else {
newsItem( 'now', 'Web Server', '<P>No news in database!' );
}
$result = mysql_close( $conn );
} else {
newsItem( 'Now', 'Web Server', '<P>Error: Could not connect to SQL server to fetch news. Please notify the server administrator.' );
}
?>