I tried your hack an get a Parse error in the register.php in the same line the hack starts!
this is the part around and with the code:
PHP Code:
// initialise cookies
if ($cookieuser==1) {
vbsetcookie("bbuserid",$userid);
vbsetcookie("bbpassword",md5($password));
}
$DB_site->query("UPDATE session SET userid=$userid WHERE sessionhash='".addslashes($session['dbsessionhash'])."'");
//Start Hack to Post userinfo to a forum
[Here the code of the hack]
????//End Hack to post userinfo to a forum
if ($newuseremail!="")
{
if ($birthday == 0) {
$birthday = "N/A";
} else {
if (date("Y")>$year and $year>1901 && $year!='0000') {
$birthday = @date($calformat1,mktime(0,0,0,$month,$day,$year));
} else {
$birthday = @date($calformat2,mktime(0,0,0,$month,$day,0));
}
if ($birthday=="") {
$birthday = "$month-$day-$year";
}
}
Any suggestions?
I use 2.2.1g and run the newest php version ;-)
Greetings
StarBuG