gaim/www

Initial import into CVS
chipx86
2002-09-26, Christian Hammond
b958585b8459
Parents 3a6e4550e25e
Children 687b787e73e6
Initial import into CVS
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/htdocs/register.php Thu Sep 26 06:22:04 2002 -0400
@@ -0,0 +1,103 @@
+<?php
+ require "base.inc.php";
+
+ setup_site("Register");
+
+ $missinginfo = false;
+
+ if ($action == "join"):
+ $ok = $users->register();
+
+ if ($ok):
+ start_section("You are a winner!");
+?>
+<p>
+
+<p>
+ Congratulations! You can now enjoy all the happy and wonderful things that
+ only priviledged members can participate in, such as fame, fortune, and the
+ ability to post plugins to the Plugins page. Now please
+ <a href="<?php print $session->localUrl('login.php'); ?>">login</a> with your
+ new username and password to get started.
+</p>
+<?php
+ end_section();
+ site_shutdown();
+ else:
+ $missinginfo = true;
+ endif;
+ endif;
+
+ start_section("Register an Account");
+
+ if ($missinginfo):
+ if ($username == "-2"):
+?>
+<p>
+ <b>Note:</b> You have entered a username that somebody has already taken.
+ Please choose a new one.
+</p>
+<?php
+ endif;
+?>
+<p>
+ You must enter in all the required information. Please fill in the information
+ in <font color="#FF0000">red</font>, as well as your password again, to
+ register.
+</p>
+<?php endif; ?>
+<p>
+ Please note that all fields marked with a red asterisk
+ (<font color="#FF0000">*</font>) must be filled in!
+</p>
+
+<br />
+
+<?php
+ end_section();
+?>
+
+<form method="post" action="register.php">
+ <input type="hidden" name="action" value="join" />
+<?php
+ start_section("Required Account Information");
+?>
+ <table border="0" cellspacing="0" cellpadding="0" width="100%">
+<?php
+ form_item("Username", "username", $username, true, 15, 15);
+ form_item("Password", "password", "", true, 15, 15);
+ form_item("Password (again)", "password2", "", true, 15, 15);
+ form_item("E-mail", "email", $email, true, "", 85);
+?>
+ </table>
+ <br />
+<?php
+ end_section();
+ start_section("Optional Account Information");
+?>
+ <table border="0" cellspacing="0" cellpadding="0" width="100%">
+<?php
+ form_item("First Name", "firstname", $firstname, false, "", 20);
+ form_item("Last Name", "lastname", $lastname, false, "", 20);
+ form_item("ICQ UIN", "icquin", $icquin, false, "", 20);
+ form_item("AIM Screen Name", "aimname", $aimname, false, "", 40);
+ form_item("Yahoo! Screen Name", "yahooname", $yahooname, false, "", 40);
+ form_item("Jabber ID", "jabbername", $jabbername, false, "", 40);
+ form_item("MSN Name", "msnname", $msnname, false, "", 40);
+ form_item("Gadu-Gadu ID", "ggname", $ggname, false, "", 20);
+?>
+ </table>
+
+ <br />
+ <div align="center">
+ <input type="reset" value="Clear Fields" />&nbsp;&nbsp;
+ <input type="submit" value="Register" />
+ </div>
+<?php
+ end_section();
+?>
+</form>
+
+<?php
+ site_shutdown();
+?>