From c8a8e73ea7b51ea07c3910b27020c6ff25c11e3a Mon Sep 17 00:00:00 2001 From: Jeff Teunissen Date: Wed, 6 Jun 2001 07:40:03 +0000 Subject: [PATCH] Minor tweaks. --- copyright.php | 4 +- members/adduser.php | 326 ++++++++++++++++++++++---------------------- parts/postamble.php | 4 +- 3 files changed, 169 insertions(+), 165 deletions(-) diff --git a/copyright.php b/copyright.php index 2e6ebbc..ef6f5e4 100644 --- a/copyright.php +++ b/copyright.php @@ -4,9 +4,9 @@ require("parts/preamble.php"); // Load most of document ?> -

Website Copyright © 1999,2000 contributors of the QuakeForge Project. +

Web site Copyright © 1999- the QuakeForge Project. -

QuakeForge is Copyright © 1999,2000 contributors of the QuakeForge project.
+

QuakeForge is Copyright © 1999- the QuakeForge project.
Portions Copyright © 1996-1997 id Software, Inc.

Quake® and QuakeWorld® are registered trademarks of id Software, Inc. diff --git a/members/adduser.php b/members/adduser.php index 9f2f0cb..e83e6c2 100644 --- a/members/adduser.php +++ b/members/adduser.php @@ -1,161 +1,165 @@ - -User added to members dbase successfully.'; - } else { - echo '

There was an error in your input. The error was ' . mysql_error ($conn); - } - } else { - echo '

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')"; - $result2 = mysql_db_query (sqlDB, $query2, $conn); - if ($result2) { - $numRows2 = mysql_affected_rows ($conn); - if ($numRows2) { - echo '

User added to plan dbase successfully.'; - } else { - echo '

There was an error in your input. The error was ' . mysql_error ($conn); - } - } else { - echo '

There was an error in your input. The error was ' . mysql_error ($conn); - } - mysql_close ($conn); - } else { - echo 'You suck, butthead.'; - } - } else { -?> -

- - - - - - - Username: - - - - - - Real Name: - - - - - - - - Email: - - - - - - Password: - - - - - - - - - - - - - - - Street: - - - - - - Phone #: - - - - - - - - C/S/ZIP: - - - - - - Country: - - - - - - - - - - - - - - - Admin status? - - - - - - - - - - - - -
- - + +User "$u_username" added to members database successfully."; + } else { + echo '

There was an error in your input. The error was ' . mysql_error ($conn); + } + } else { + echo '

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')"; + $result2 = mysql_db_query (sqlDB, $query2, $conn); + if ($result2) { + $numRows2 = mysql_affected_rows ($conn); + if ($numRows2) { + echo "

User "$u_username" added to plan dbase successfully."; + } else { + echo '

There was an error in your input. The error was ' . mysql_error ($conn); + } + } else { + echo '

There was an error in your input. The error was ' . mysql_error ($conn); + } + mysql_close ($conn); + } else { + echo 'You suck, butthead. (the SQL server could not be contacted)'; + } + } else { + if ($userInfo[u_admin] == 'Y') { +?> +

+ + + + + + + Username: + + + + + + Real Name: + + + + + + + + Email: + + + + + + Password: + + + + + + + + + + + + + + + Street: + + + + + + Phone #: + + + + + + + + C/S/ZIP: + + + + + + Country: + + + + + + + + + + + + + + + Admin status? + + + + + + + + + + + + +
+You are not authorized to view this page. Now go away or I shall taunt you a second time!'; + } + } +?> + diff --git a/parts/postamble.php b/parts/postamble.php index bb3f3df..bfc9e06 100644 --- a/parts/postamble.php +++ b/parts/postamble.php @@ -14,8 +14,8 @@ - Copyright © 1999,2000 contributors of the QuakeForge Project.
- Additional Copyright and Trademark Acknowledgements + Copyright © 1999- the QuakeForge Project.
+ Additional Copyright and Trademark Acknowledgements