CLEANUP: make index.php very short and move everything in separate files
[e-DoKo.git] / register.php
index 42b62ad067367b581872ba741d2ed69594847795..9f4cf0e49690c383dbc55d352ca3c03b91440e81 100644 (file)
@@ -2,9 +2,9 @@
 error_reporting(E_ALL);
 
 include_once("config.php");      
-include_once("output.php");      /* html output only */
-include_once("db.php");          /* database only */
-include_once("functions.php");   /* the rest */
+include_once("./include/output.php");      /* html output only */
+include_once("./include/db.php");          /* database only */
+include_once("./include/functions.php");   /* the rest */
 
 config_check();
 
@@ -41,7 +41,7 @@ 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".