mirror of
https://git.code.sf.net/p/quake/website
synced 2025-02-17 09:21:29 +00:00
Minor tweaks.
This commit is contained in:
parent
2e96c8bf85
commit
c8a8e73ea7
3 changed files with 169 additions and 165 deletions
|
@ -4,9 +4,9 @@
|
||||||
require("parts/preamble.php"); // Load most of document
|
require("parts/preamble.php"); // Load most of document
|
||||||
?>
|
?>
|
||||||
<!--SEARCHME-->
|
<!--SEARCHME-->
|
||||||
<P>Website Copyright © 1999,2000 contributors of the QuakeForge Project.
|
<P>Web site Copyright © 1999-<? echo date("Y"); ?> the QuakeForge Project.
|
||||||
|
|
||||||
<P>QuakeForge is Copyright © 1999,2000 contributors of the QuakeForge project.<BR>
|
<P>QuakeForge is Copyright © 1999-<? echo date("Y"); ?> the QuakeForge project.<BR>
|
||||||
Portions Copyright © 1996-1997 id Software, Inc.
|
Portions Copyright © 1996-1997 id Software, Inc.
|
||||||
|
|
||||||
<P>Quake® and QuakeWorld® are registered trademarks of id Software, Inc.
|
<P>Quake® and QuakeWorld® are registered trademarks of id Software, Inc.
|
||||||
|
|
|
@ -2,10 +2,10 @@
|
||||||
$pageName = "Admin - Add User";
|
$pageName = "Admin - Add User";
|
||||||
$focused = "home"; // Dock icon name to gets a border
|
$focused = "home"; // Dock icon name to gets a border
|
||||||
$need = 'auth';
|
$need = 'auth';
|
||||||
require("../parts/preamble.php"); // Load most of document
|
require "../parts/preamble.php"; // Load most of document
|
||||||
?>
|
?>
|
||||||
<?
|
<?
|
||||||
if ($u_username) {
|
if ($userInfo[u_admin] == 'Y' && $u_username) {
|
||||||
need('sql');
|
need('sql');
|
||||||
|
|
||||||
$u_username = AddSlashes ($u_username);
|
$u_username = AddSlashes ($u_username);
|
||||||
|
@ -27,20 +27,20 @@
|
||||||
if ($result) {
|
if ($result) {
|
||||||
$numRows = mysql_affected_rows ($conn);
|
$numRows = mysql_affected_rows ($conn);
|
||||||
if ($numRows) {
|
if ($numRows) {
|
||||||
echo '<P>User added to members dbase successfully.';
|
echo "<P>User "$u_username" added to members database successfully.";
|
||||||
} else {
|
} else {
|
||||||
echo '<P>There was an error in your input. The error was ' . mysql_error ($conn);
|
echo '<P>There was an error in your input. The error was ' . mysql_error ($conn);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
echo '<P>There was an error in your input. The error was ' . mysql_error ($conn);
|
echo '<P>There was an error in your input. The error was ' . mysql_error ($conn);
|
||||||
}
|
}
|
||||||
$query2 = 'INSERT into devel_plans (p_user, p_date, p_plan) VALUES (' .
|
|
||||||
"'$u_username', NOW(), 'None')";
|
$query2 = "INSERT into devel_plans (p_user, p_date, p_plan) VALUES ('$u_username', NOW(), 'None')";
|
||||||
$result2 = mysql_db_query (sqlDB, $query2, $conn);
|
$result2 = mysql_db_query (sqlDB, $query2, $conn);
|
||||||
if ($result2) {
|
if ($result2) {
|
||||||
$numRows2 = mysql_affected_rows ($conn);
|
$numRows2 = mysql_affected_rows ($conn);
|
||||||
if ($numRows2) {
|
if ($numRows2) {
|
||||||
echo '<P>User added to plan dbase successfully.';
|
echo "<P>User "$u_username" added to plan dbase successfully.";
|
||||||
} else {
|
} else {
|
||||||
echo '<P>There was an error in your input. The error was ' . mysql_error ($conn);
|
echo '<P>There was an error in your input. The error was ' . mysql_error ($conn);
|
||||||
}
|
}
|
||||||
|
@ -49,9 +49,10 @@
|
||||||
}
|
}
|
||||||
mysql_close ($conn);
|
mysql_close ($conn);
|
||||||
} else {
|
} else {
|
||||||
echo 'You suck, butthead.';
|
echo 'You suck, butthead. (the SQL server could not be contacted)';
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
if ($userInfo[u_admin] == 'Y') {
|
||||||
?>
|
?>
|
||||||
<FORM action="adduser.php" method="post">
|
<FORM action="adduser.php" method="post">
|
||||||
<?
|
<?
|
||||||
|
@ -154,8 +155,11 @@
|
||||||
?>
|
?>
|
||||||
</FORM>
|
</FORM>
|
||||||
<?
|
<?
|
||||||
|
} else {
|
||||||
|
echo '<P>You are not authorized to view this page. Now go away or I shall taunt you a second time!';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<?
|
<?
|
||||||
require (siteHome ."/parts/postamble.php"); // Finish this sucker up
|
require siteHome . "/parts/postamble.php"; // Finish this sucker up
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -14,8 +14,8 @@
|
||||||
<TR>
|
<TR>
|
||||||
<TD align="center">
|
<TD align="center">
|
||||||
<SPAN class="titleBar">
|
<SPAN class="titleBar">
|
||||||
Copyright © 1999,2000 contributors of the QuakeForge Project.<BR>
|
Copyright © 1999-<? echo date("Y"); ?> the QuakeForge Project.<BR>
|
||||||
<A class="mainTitleBar" href="copyright.php">Additional Copyright and Trademark Acknowledgements</A>
|
<A class="mainTitleBar" href="/copyright.php">Additional Copyright and Trademark Acknowledgements</A>
|
||||||
</SPAN>
|
</SPAN>
|
||||||
</TD>
|
</TD>
|
||||||
</TR>
|
</TR>
|
||||||
|
|
Loading…
Reference in a new issue