function registerIPBAccount($name,$password,$email) { //my sql host info $sqlHost = 'localhost'; $sqlLogin = 'root'; $sqlPassword = '124'; //ipb forum info $ipbDatabase = 'forum'; $ipbPasswordSalt = '$#FD'; $ipbMembersTable = 'members' // dont edit $link = mysql_connect($sqlHost, $sqlLogin,$sqlPassword); mysql_select_db($ipbDatabase,$link); $password = md5(md5($ipbPasswordSalt) . md5($password)); $timeJ = time(); $uIP = $_SERVER['REMOTE_ADDR']; mysql_query("INSERT INTO $ipbMembersTable (ip_address,member_group_id,name,email,joined,members_pass_hash,members_pass_salt,members_l_display_name,members_l_username,members_display_name,members_seo_name) VALUES ('$uIP','3','$name', '$email','$timeJ','$password','$passwordKey','$name','$name','$name','$name')"); mysql_close($link); }