(NULL,'$bbuserinfo[userid]','".time()."','$activateid',0)");
^ I think thats line 596 anyway
Edit - Heres a bit of code around it -
//save to DB
$DB_site->query("INSERT INTO useractivation VALUES (NULL,'$bbuserinfo[userid]','".time()."','$activateid',0)");
$username=unhtmlspecialchars($bbuserinfo['username']);
$userid=$bbuserinfo['userid'];
I've had reports from people on my forum that they when they log out, they can't log in again afterwards.. Which is not good o_O;; I'm seriously praying that I haven't killed the forum off here >_<