• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF add-on bridge

Ryan Kent

Well-known member
I am trying to create a XF login bridge to a unique piece of software. I am basing the bridge off of a vB bridge to the same app. This is my first time working with xF logins and it is quite a stretch for me. The code I am working with is below.

My immediate question is, what is the XF equivalent to

if (!empty($vbulletin->GPC['password']) OR !empty($vbulletin->GPC['password_md5']))

<![CDATA[if (!empty($vbulletin->GPC['password']) OR !empty($vbulletin->GPC['password_md5']))
        $tempipaddress = $userinfo['ipaddress'];
        $tempusername = mysql_real_escape_string($userinfo['username']);
        $tempemail = mysql_real_escape_string($userinfo['email']);
        $password = mysql_real_escape_string($userinfo['password']);
        $tempsalt = mysql_real_escape_string($userinfo['salt']);

        $vbulletin->db->query("INSERT INTO members (name, ipaddress, salt, password, email, act) VALUES ('$tempusername','$tempipaddress','$tempsalt','$password','$tempemail', '1')");
        $vbulletin->db->query("INSERT INTO members_details (salt) VALUES ('$tempsalt')");