trying out some search stuff...

This commit is contained in:
Dan Olson 2000-06-18 20:48:48 +00:00
parent 6406111246
commit 6eacd9cd3c
2 changed files with 69 additions and 67 deletions

View file

@ -1,67 +1,67 @@
<? // Preamble
$pageName = "Developer Central";
$focused = "home"; // Dock icon name to gets a border
$need = 'auth';
require("../parts/preamble.php"); // Load most of document
?>
<?
function infoItem($url, $desc, $longdesc)
{
echo '<DL>' .
' <DT><A href="' . $url . '"><STRONG>' . $desc . '</STRONG></A></DT>' .
' <DD><EM>' . $longdesc . '</EM></DD>' .
'</DL>';
}
?>
<H2>Welcome to Developer Central!</H2>
<P>This is the area for developers to post news, edit your user information,
and so on. Members with Admin-level access can modify news items and post
State of the Code items here as well.
<P>
<?
tableHeader("100%", "black");
?>
<TR vAlign="top">
<TD align="left">
<?
tableBoxHeader("100%", "black", tableHeadColor);
tableTitle("QuakeForge Developer Resources", 1, "black");
?>
<TR vAlign="top">
<TD>
<?
infoItem('addnews.php', 'Post News', 'Post new news items from here.');
infoItem('userinfo.php', 'User Info', 'Display or change your user information; Please use this when your email address, phone number, or snailmail address changes.');
infoItem('plan.php', 'Edit "plan"', 'Not used by the web site at the moment, this will provide something for users to see what the hell we\'re working on.');
?>
</TD>
</TR>
<? tableBoxFooter() ?>
</TD>
<? if ($userInfo[u_admin] == 'Y') { ?>
<TD align="right">
<?
tableBoxHeader(featureBgColor, tableHeadColor);
tableTitle("Administration", 1, tableHeadColor);
?>
<TR>
<TD class="featureBox" align="right">
News [ <A href="addnews.php">Add</A> | <A href="editnews.php">Edit</A> | <A href="delnews.php">Delete</A> ]<BR>
SotC [ <A href="addsotc.php">Add</A> | <A href="editsotc.php">Edit</A> | <A href="delsotc.php">Delete</A> ]<BR>
User [ <A href="adduser.php">Add</A> | <A href="edituser.php">Edit</A> | <A href="deluser.php">Delete</A> ]<BR>
</TD>
</TR>
<?
tableBoxFooter();
?>
</TD>
<? } ?>
</TR>
<? tableFooter(); ?>
<?
require (siteHome ."/parts/postamble.php"); // Finish this sucker up
?>
<? // Preamble
$pageName = "Developer Central";
$focused = "home"; // Dock icon name to gets a border
$need = 'auth';
require("../parts/preamble.php"); // Load most of document
?>
<?
function infoItem($url, $desc, $longdesc)
{
echo '<DL>' .
' <DT><A href="' . $url . '"><STRONG>' . $desc . '</STRONG></A></DT>' .
' <DD><EM>' . $longdesc . '</EM></DD>' .
'</DL>';
}
?>
<H2>Welcome to Developer Central!</H2>
<P>This is the area for developers to post news, edit your user information,
and so on. Members with Admin-level access can modify news items and post
State of the Code items here as well.
<P>
<?
tableHeader("100%", "black");
?>
<TR vAlign="top">
<TD align="left">
<?
tableBoxHeader("100%", "black", tableHeadColor);
tableTitle("QuakeForge Developer Resources", 1, "black");
?>
<TR vAlign="top">
<TD>
<?
infoItem('addnews.php', 'Post News', 'Post new news items from here.');
infoItem('userinfo.php', 'User Info', 'Display or change your user information; Please use this when your email address, phone number, or snailmail address changes.');
infoItem('plan.php', 'Edit "plan"', 'Update this to notify the outside world what you\'re currently working on.');
?>
</TD>
</TR>
<? tableBoxFooter() ?>
</TD>
<? if ($userInfo[u_admin] == 'Y') { ?>
<TD align="right">
<?
tableBoxHeader(featureBgColor, tableHeadColor);
tableTitle("Administration", 1, tableHeadColor);
?>
<TR>
<TD class="featureBox" align="right">
News [ <A href="addnews.php">Add</A> | <A href="editnews.php">Edit</A> | <A href="delnews.php">Delete</A> ]<BR>
SotC [ <A href="addsotc.php">Add</A> | <A href="editsotc.php">Edit</A> | <A href="delsotc.php">Delete</A> ]<BR>
User [ <A href="adduser.php">Add</A> | <A href="edituser.php">Edit</A> | <A href="deluser.php">Delete</A> ]<BR>
</TD>
</TR>
<?
tableBoxFooter();
?>
</TD>
<? } ?>
</TR>
<? tableFooter(); ?>
<?
require (siteHome ."/parts/postamble.php"); // Finish this sucker up
?>

View file

@ -8,6 +8,8 @@
$focused = "none"; // Dock icon name to gets a border
require("parts/preamble.php"); // Load most of document
// Start actual search
$lib = dblist();
echo "<P>Using dbm library '$lib'";
$dbm = dbmopen("siteindex.db","r");
if (dbmexists($dbm, $string)) {
$parseMe = dbmfetch($dbm, $string);