diff options
author | Arun Persaud <arun@nubati.net> | 2007-07-28 09:44:33 -0700 |
---|---|---|
committer | Arun Persaud <arun@nubati.net> | 2007-07-28 10:07:18 -0700 |
commit | 046b683603f1c49460079595f819591b1918c9a2 (patch) | |
tree | 1994ed0cbad9260706c8a75dd2b9b1f41dded466 /index.php | |
parent | b29ab3c07ebe1667e852457f22f6f51193970c1b (diff) | |
download | e-DoKo-046b683603f1c49460079595f819591b1918c9a2.tar.gz e-DoKo-046b683603f1c49460079595f819591b1918c9a2.tar.bz2 e-DoKo-046b683603f1c49460079595f819591b1918c9a2.zip |
CLEANUP: moved registration to seperate php file
started cleanup on index.php. trying to move as much out of index.php
as possible to make it easier to read.
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 32 |
1 files changed, 0 insertions, 32 deletions
@@ -1902,38 +1902,6 @@ else if( myisset("email","password") || isset($_SESSION["name"]) ) DB_close(); exit(); } -/* page for registration */ - else if(myisset("register") ) - { - output_register(); - } -/* new user wants to register */ - else if(myisset("Rfullname","Remail","Rpassword","Rtimezone") ) - { - $ok=1; - if(DB_get_userid_by_name($_REQUEST["Rfullname"])) - { - echo "please chose another name<br />"; - $ok=0; - } - if(DB_get_userid_by_email($_REQUEST["Remail"])) - { - echo "this email address is already used ?!<br />"; - $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 " added you to the database"; - else - echo " something went wrong, couldn't add you to the database, please contact $ADMIN_NAME at $ADMIN_EMAIL."; - } - } /* default login page */ else { |