From 046b683603f1c49460079595f819591b1918c9a2 Mon Sep 17 00:00:00 2001 From: Arun Persaud Date: Sat, 28 Jul 2007 09:44:33 -0700 Subject: 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. --- index.php | 32 -------------------------------- 1 file changed, 32 deletions(-) (limited to 'index.php') diff --git a/index.php b/index.php index 8c34a2b..40708f8 100644 --- a/index.php +++ b/index.php @@ -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
"; - $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 " 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 { -- cgit v1.2.3-18-g5258