X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=e-DoKo.git;a=blobdiff_plain;f=register.php;h=1c482886cd51847b65b38825d5b39abe9f3da969;hp=7c3a373989bdfcd9d91bca39dff5014d9482183e;hb=9f3cec73181b5ac35486fea031828b11468bceb9;hpb=a28cbfa660f2ff982f1cdcee41c09cec772d84af
diff --git a/register.php b/register.php
index 7c3a373..1c48288 100644
--- a/register.php
+++ b/register.php
@@ -24,13 +24,14 @@ output_header();
/* new user wants to register */
if(myisset("Rfullname","Remail","Rpassword","Rtimezone") )
{
+ global $HOST,$INDEX;
$ok=1;
- if(DB_get_userid_by_name($_REQUEST["Rfullname"]))
+ if(DB_get_userid('name',$_REQUEST["Rfullname"]))
{
echo "please chose another name
";
$ok=0;
}
- if(DB_get_userid_by_email($_REQUEST["Remail"]))
+ if(DB_get_userid('email',$_REQUEST["Remail"]))
{
echo "this email address is already used ?!
";
$ok=0;
@@ -40,11 +41,11 @@ if(myisset("Rfullname","Remail","Rpassword","Rtimezone") )
$r=mysql_query("INSERT INTO User VALUES(NULL,".DB_quote_smart($_REQUEST["Rfullname"]).
",".DB_quote_smart($_REQUEST["Remail"]).
",".DB_quote_smart(md5($_REQUEST["Rpassword"])).
- ",".DB_quote_smart($_REQUEST["Rtimezone"]).",NULL)");
+ ",".DB_quote_smart($_REQUEST["Rtimezone"]).",NULL,NULL)");
if($r)
echo " Welcome to e-DoKo, you are now registered, please visit the".
- " homepage to continue.";
+ " homepage to continue.";
else
echo " something went wrong, couldn't add you to the database, please contact $ADMIN_NAME at $ADMIN_EMAIL.";
}