mirror of
https://git.code.sf.net/p/quake/website
synced 2024-11-27 22:42:57 +00:00
woohoo! Look at the plans
This commit is contained in:
parent
b2c024b7a5
commit
52b544ca4b
2 changed files with 47 additions and 0 deletions
21
plans.php
Normal file
21
plans.php
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
<? // Preamble
|
||||||
|
$pageName = "Developer Plans";
|
||||||
|
$focused = "none"; // Dock icon name to gets a border
|
||||||
|
require("parts/preamble.php"); // Load most of document
|
||||||
|
?>
|
||||||
|
<!--SEARCHME-->
|
||||||
|
<TABLE width="100%" cellSpacing="0" cellPadding="0" border="0">
|
||||||
|
<TR vAlign="top">
|
||||||
|
<TD colSpan="2"><? // News display
|
||||||
|
tableBoxHeader( 'black', tableHeadColor );
|
||||||
|
tableTitle( 'Developer Plans', 1, tableHeadColor );
|
||||||
|
require("news_funcs.php");
|
||||||
|
include("see_plans.php");
|
||||||
|
tableBoxFooter();
|
||||||
|
?></TD>
|
||||||
|
</TR>
|
||||||
|
</TABLE>
|
||||||
|
<!--NOSEARCH-->
|
||||||
|
<?
|
||||||
|
require("parts/postamble.php"); // Finish this sucker up
|
||||||
|
?>
|
26
see_plans.php
Normal file
26
see_plans.php
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
<?
|
||||||
|
need('date sql');
|
||||||
|
|
||||||
|
$conn = @mysql_pconnect (sqlHost, sqlUser, sqlPass);
|
||||||
|
if ($conn) {
|
||||||
|
$query = 'SELECT p_date, p_user, p_news FROM devel_plans' .
|
||||||
|
' ORDER BY n_date DESC';
|
||||||
|
$result = @mysql_db_query (sqlDB, $query, $conn);
|
||||||
|
if ($result) {
|
||||||
|
$numRows = @mysql_num_rows ($result);
|
||||||
|
if ($numRows) {
|
||||||
|
for ($i = 0 ; $i < $numRows ; $i++) {
|
||||||
|
list ($n_date, $n_user, $n_news) = mysql_fetch_row ($result);
|
||||||
|
newsItem (dateFromSQLDateTime ($n_date), $n_user, StripSlashes($n_news));
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
newsItem ('now', 'Web Server', '<P>No current news!');
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
newsItem ('now', 'Web Server', '<P>No news in database!');
|
||||||
|
}
|
||||||
|
mysql_close ($conn);
|
||||||
|
} else {
|
||||||
|
newsItem ('Now', 'Web Server', '<P>Error: Could not connect to SQL server to fetch plans. Please notify the server administrator.');
|
||||||
|
}
|
||||||
|
?>
|
Loading…
Reference in a new issue