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();
/* 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;
$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".
- " <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.";
}