So, I`ve created a custom plugin, sort of a bridge.
Upon registration, it should copy the user data to another script.
This is how it looks.
PHP Code:
$db->select_db("otherscriptdb");
$currdate = date('Y-m-d');
$query = "INSERT INTO `member` SET
`member_username` = '".$userinfo['username']."',
`member_password` = '".$userinfo['password']."',
`member_firstname` = 'First',
`member_lastname` = 'Last',
`member_address` = 'Address',
`member_city` = 'City',
`member_state` = 'State',
`member_zip` = '123456',
`member_country` = '252',
`member_phone` = '0000',
`member_fax` = '0000',
`member_email` = '".$userinfo['email']."',
`member_code` = '".addslashes(randomcodegen())."',
`member_status` = 'email_pending',
`member_add` = '$currdate',
`salt` = '".addslashes($userinfo['salt'])."'";
$db->query_write($query);
$db->select_db("forumdb");
The hook I`m using is
: register_addmember_complete.
--------------- Added [DATE]1225382529[/DATE] at [TIME]1225382529[/TIME] ---------------
Anyone any ideas ?
--------------- Added [DATE]1225382701[/DATE] at [TIME]1225382701[/TIME] ---------------
I also tried escaping the text with db->escape_string, same thing.