Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
Register FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 05-10-2004, 07:15 AM
random_X random_X is offline
 
Join Date: Jul 2003
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default [Help] how i can repaier this code !!

i was Have Uploading service Center work in VB2...



it is affined withe User membership ... But it is not work with VB3 and i think this from the VB auth connect file ..



look here



PHP Code:
<?php 

    $auth = "false"; 

    if (isset( $PHP_AUTH_ID ) && isset( $PHP_AUTH_PW )) { 

        mysql_connect( $checkservername, $dbcheckusername, $dbcheckpassword ) 

            or die ( 'Unable to connect to server.' ); 

        mysql_select_db( $dbcheckbase ) 

            or die ( 'Unable to select database.' ); 

    if ($encryptedpw) { 

        $chkpw = md5($PHP_AUTH_PW); 

    } else { 

        $chkpw = $PHP_AUTH_PW; 

    } 

    $sql = "SELECT * FROM user WHERE 

            userid = '$PHP_AUTH_ID' AND 

            password = '$chkpw' AND 

            (usergroupid = '2' or usergroupid = '5' or usergroupid = '6' or usergroupid = '7')"; 

            $result = mysql_query( $sql ) 

        or die ( 'Unable to execute query.' ); 

    $num = mysql_numrows( $result ); 

    if ( $num != 0 ) { 

        $auth = "true"; 

    } 

} 

?>
Can any one help me to repaier this code ?!!
Reply With Quote
  #2  
Old 05-10-2004, 08:42 AM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

*moved*

passwords are doublehashed in vb3, not just singlehashed, as they were in vb2.

try to do a search, there have been some threads, which explained datailed, how the new pw encryption works
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:30 AM.


Powered by vBulletin® Version 3.9.0
Copyright ©2000 - 2017, vBulletin Solutions Inc.