Results 1 to 2 of 2

prfile_updatepassword_complete hook

This is a discussion on prfile_updatepassword_complete hook within the General Discussion forums, part of the vBulletin SEO Discussion category; Hello, Sorry if this is the wrong section to post. I'm trying to create a small script but seem to ...

  1. #1
    Junior Member fogjuice's Avatar
    Real Name
    Chris
    Join Date
    Mar 2010
    Posts
    27
    Liked
    0 times

    prfile_updatepassword_complete hook

    Hello,

    Sorry if this is the wrong section to post.

    I'm trying to create a small script but seem to be running into problems, can someone tell me if they see anything wrong with this code? I have a bridge between two databases, hence the mysql_connect.

    PHP Code:
    mysql_connect("****","****","******"); 


    $sha_pass_hash sha1(mysql_real_escape_string(strtoupper($vbulletin->userinfo['username'])) . ":" mysql_real_escape_string(strtoupper($savepass))); 

    $query mysql_query("SELECT count(*) FROM realmd.account WHERE username='{$vbulletin->userinfo[username]}'"); 
    if(
    mysql_num_rows($query) > 0

        
    mysql_query("UPDATE realmd.account SET v=0,s=0,sha_pass_hash='$sha_pass_hash', email='{$vbulletin->GPC[email]}' WHERE username='{$vbulletin->userinfo[username]}'"); 

    else 

        
    mysql_query("INSERT INTO realmd.account(username,sha_pass_hash, email, expansion) VALUES('{$vbulletin->userinfo[username]}', '$sha_pass_hash' ,'{$vbulletin->userinfo[email]}',2)"); 

    Thanks.

  2. #2
    vBSEO Staff Marco Mamdouh's Avatar
    Real Name
    Marco Mamdouh
    Join Date
    May 2010
    Location
    Egypt
    Posts
    3,143
    Liked
    110 times
    Hello Chris,

    Unfortunately, For coding help you need to post your problem in vb.org or dp.com not in vbseo.com

Similar Threads

  1. I paid, hook me up.. and..
    By rex_b in forum Pre-Sales Questions
    Replies: 3
    Last Post: 11-07-2005, 02:34 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •