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

XF add-on bridge

Discussion in 'XenForo Development Discussions' started by Ryan Kent, Jul 11, 2011.

  1. Ryan Kent

    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')");

Share This Page