2002-11-11 10:26:40 +00:00
|
|
|
<?php
|
2004-02-02 23:34:39 +00:00
|
|
|
require_once('../inc/db.inc');
|
|
|
|
require_once('../inc/util.inc');
|
2004-03-26 18:32:57 +00:00
|
|
|
require_once('../inc/countries.inc');
|
|
|
|
|
2003-08-15 01:01:00 +00:00
|
|
|
db_init();
|
2004-05-12 17:54:23 +00:00
|
|
|
page_head('Create an account');
|
2002-11-11 10:26:40 +00:00
|
|
|
|
2004-06-30 18:53:35 +00:00
|
|
|
$config = get_config();
|
2004-11-12 22:50:58 +00:00
|
|
|
if (parse_bool($config, "disable_account_creation")) {
|
2003-09-02 03:54:30 +00:00
|
|
|
echo "
|
|
|
|
<h1>Account Creation is Disabled</h1>
|
|
|
|
<p>
|
|
|
|
Account creation is disabled for ".PROJECT." at the moment.
|
|
|
|
Please try again later.
|
|
|
|
</p>
|
|
|
|
";
|
|
|
|
page_tail();
|
|
|
|
exit();
|
|
|
|
}
|
|
|
|
echo "
|
2002-11-11 10:26:40 +00:00
|
|
|
|
2003-09-02 03:54:30 +00:00
|
|
|
<p><b>Read the <a href=info.php>Rules and Policies</a>
|
|
|
|
before creating an account.</b></p>
|
2002-11-11 10:26:40 +00:00
|
|
|
|
2004-03-03 22:45:06 +00:00
|
|
|
<p>If you already received an account ID, do not submit this form.
|
2003-09-02 03:54:30 +00:00
|
|
|
<a href=account_created.php>Activate your account</a> instead.</p>
|
2003-03-26 20:54:44 +00:00
|
|
|
|
2003-09-02 03:54:30 +00:00
|
|
|
<form action=create_account_action.php method=post>
|
|
|
|
";
|
2004-10-16 04:12:11 +00:00
|
|
|
$teamid = $_GET['teamid'];
|
|
|
|
if ($teamid) {
|
|
|
|
$team = lookup_team($teamid);
|
|
|
|
$user = lookup_user_id($team->userid);
|
2004-10-15 23:46:24 +00:00
|
|
|
if (!$user) {
|
|
|
|
echo "No such user";
|
|
|
|
} else {
|
2004-10-16 04:12:11 +00:00
|
|
|
echo "<b>This account will belong the team
|
|
|
|
<a href=show_team.php?teamid=$team->id>$team->name</a>
|
|
|
|
and will have the project preferences of its founder.</b>
|
2004-10-15 23:46:24 +00:00
|
|
|
<p>
|
|
|
|
";
|
|
|
|
echo "
|
2004-10-16 04:12:11 +00:00
|
|
|
<input type=hidden name=teamid value=$teamid>
|
2004-10-15 23:46:24 +00:00
|
|
|
";
|
|
|
|
}
|
2003-09-02 03:54:30 +00:00
|
|
|
}
|
2004-05-11 22:49:23 +00:00
|
|
|
start_table();
|
|
|
|
row2(
|
|
|
|
"Name<br><span class=description>Identifies you on our web site. Use your real name or a nickname.</span>",
|
|
|
|
"<input name=new_name size=30>"
|
|
|
|
);
|
|
|
|
row2(
|
|
|
|
"Email Address<br><span class=description>Must be a valid address of the form 'name@domain'.</span>",
|
|
|
|
"<input name=new_email_addr size=50>"
|
|
|
|
);
|
|
|
|
row2_init(
|
|
|
|
"Country <br><span class=description>Select the country you want to represent, if any.</span>",
|
|
|
|
"<select name=country>"
|
|
|
|
);
|
2003-09-02 03:54:30 +00:00
|
|
|
print_country_select();
|
2004-05-11 22:49:23 +00:00
|
|
|
echo "</select></td></tr>\n";
|
|
|
|
row2(
|
|
|
|
"Postal or ZIP Code <br><span class=description>Optional.</span>",
|
|
|
|
"<input name=postal_code size=20>"
|
|
|
|
);
|
|
|
|
row2("",
|
|
|
|
"<input type=submit value='Create Account'>"
|
|
|
|
);
|
|
|
|
end_table();
|
2003-09-02 03:54:30 +00:00
|
|
|
echo "
|
|
|
|
</form>
|
|
|
|
";
|
2002-11-11 10:26:40 +00:00
|
|
|
|
2003-08-15 01:01:00 +00:00
|
|
|
page_tail();
|
2002-11-11 10:26:40 +00:00
|
|
|
?>
|
2003-07-22 20:45:42 +00:00
|
|
|
|