X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=e-DoKo.git;a=blobdiff_plain;f=register.php;fp=register.php;h=827e77ea3c0b7524db2190f64b1e1288afe9a9f0;hp=0000000000000000000000000000000000000000;hb=046b683603f1c49460079595f819591b1918c9a2;hpb=b29ab3c07ebe1667e852457f22f6f51193970c1b diff --git a/register.php b/register.php new file mode 100644 index 0000000..827e77e --- /dev/null +++ b/register.php @@ -0,0 +1,98 @@ +"; + $ok=0; + } + if(DB_get_userid_by_email($_REQUEST["Remail"])) + { + echo "this email address is already used ?!
"; + $ok=0; + } + if($ok) + { + $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)"); + + if($r) + echo " Welcome to e-DoKo, you are now registered, please visit the". + " homepage to continue."; + else + echo " something went wrong, couldn't add you to the database, please contact $ADMIN_NAME at $ADMIN_EMAIL."; + } + } +/* page for registration */ + else + { + echo "IMPORTANT: passwords are going over the net as clear text, so pick an easy password. No need to pick anything complicated here ;)

"; + ?> +
+
+ Register + + + + + + + + + + + + + + + +
+ + (If your timezone is not listed, just select whatever you want and email the admin your correct time zone.) +
+
+
+