added some checks for email and password entry

svn path=/trunk/boinc/; revision=343
This commit is contained in:
Barry Luong 2002-08-15 22:22:07 +00:00
parent 51366510a6
commit d6f708dfab
1 changed files with 15 additions and 1 deletions

View File

@ -36,7 +36,21 @@
$user = mysql_fetch_object($result); $user = mysql_fetch_object($result);
mysql_free_result($result); mysql_free_result($result);
} }
if ($user) { if (strlen($HTTP_POST_VARS["new"]) == 0) {
page_head("Creating Account");
printf(
TABLE2."\n"
."<tr><td>You must enter an email address to create an account.\n"
."</td></tr>\n"
."</table>"
);
} else if (strlen($HTTP_POST_VARS["new_password"]) == 0) {
page_head("Creating Account");
printf(
TABLE2."\n"
."<tr><td>You must enter a web password to create an account.\n"
);
} else if ($user) {
page_head("Creating Account"); page_head("Creating Account");
printf( printf(
TABLE2."\n" TABLE2."\n"