NEW FEATURE: some more statistics
[e-DoKo.git] / register.php
index 7c3a373989bdfcd9d91bca39dff5014d9482183e..42b62ad067367b581872ba741d2ed69594847795 100644 (file)
@@ -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<br />";
        $ok=0;
       }
-    if(DB_get_userid_by_email($_REQUEST["Remail"]))
+    if(DB_get_userid('email',$_REQUEST["Remail"]))
       {
        echo "this email address is already used ?!<br />";
        $ok=0;
@@ -44,7 +45,7 @@ if(myisset("Rfullname","Remail","Rpassword","Rtimezone") )
        
        if($r)
          echo " Welcome to e-DoKo, you are now registered, please visit the".
-           " <a href=\"$host\">homepage</a> to continue.";
+           " <a href=\"".$HOST.$INDEX."\">homepage</a> to continue.";
        else
          echo " something went wrong, couldn't add you to the database, please contact $ADMIN_NAME at $ADMIN_EMAIL.";
       }