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

Reply
 
Thread Tools Display Modes
  #1  
Old 02-19-2004, 02:37 PM
shukoor shukoor is offline
 
Join Date: Apr 2003
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default vb3 uploading service

i had my Uploading service Center working in VB2...

but now after i upgraded its not workin at all :dead:

its intregation is depending on a file called "authvb.php" where it query the database

im sure u guys understand what im saying and now its totaly not workin after i upgraded my forum to vb3

i just need help around and someone to modify the code for me so that i use it again coz i need it in my site alot

look here

<?php
$auth = "false";
if (isset( $PHP_AUTH_USER ) && 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
username = '$PHP_AUTH_USER' AND
password = '$chkpw' AND
(usergroupid = '2' or usergroupid = '5' or usergroupid = '6' or usergroupid = '7' or usergroupid = '8' or usergroupid = '668' or usergroupid = '669')";
$result = mysql_query( $sql )
or die ( 'Unable to execute query.' );
$num = mysql_numrows( $result );
if ( $num != 0 ) {
$auth = "true";
}
}
?>
Reply With Quote
  #2  
Old 02-19-2004, 02:47 PM
Dark_Wizard Dark_Wizard is offline
 
Join Date: Nov 2001
Location: North Carolina
Posts: 1,251
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Change this:
PHP Code:
$sql "SELECT * FROM user WHERE 
To this:
PHP Code:
$sql "SELECT * FROM " TABLE_PREFIX "user WHERE 
If that doesn't work then the issue lies elsewhere...I would need to see the full script. Also the change I made needs to stay there as vb now uses table prefixes...
Reply With Quote
  #3  
Old 02-19-2004, 03:49 PM
shukoor shukoor is offline
 
Join Date: Apr 2003
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

here is the hack it was released for vb2 :disappointed:
but when i installed vb3 it stoped working
i really hope some one give me the right answer coz i tried the
the above one and didn't work out :disappointed:

i tried to upload the zip file but it was not gettin uploaded anyway heres is all the hack files
Attached Files
File Type: php authvb.php (928 Bytes, 7 views)
File Type: php config.php (1.2 KB, 7 views)
File Type: php upload.php (10.3 KB, 7 views)
Reply With Quote
  #4  
Old 02-19-2004, 03:54 PM
Dark_Wizard Dark_Wizard is offline
 
Join Date: Nov 2001
Location: North Carolina
Posts: 1,251
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hacks for vb2 WILL NOT work for vb3....plain and simple. It would have to be rewritten...
Reply With Quote
  #5  
Old 02-19-2004, 04:02 PM
shukoor shukoor is offline
 
Join Date: Apr 2003
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i guess not coz the only problem is with the authvb.php file and the way it tries to request the password from the database coz there is a some new things they added to the md5 called salt and im not into that much i wish i get some help guys
Reply With Quote
  #6  
Old 02-19-2004, 05:06 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Change
PHP Code:
if ($encryptedpw) {
$chkpw md5($PHP_AUTH_PW);
} else {
$chkpw $PHP_AUTH_PW;

To
PHP Code:
if ($encryptedpw) {
$chkpw "MD5(CONCAT('" addslashes($PHP_AUTH_PW) . "', salt))";
} else {
$chkpw "MD5(CONCAT(MD5('" addslashes($PHP_AUTH_PW) . "'), salt))";

Change
PHP Code:
password '$chkpw' AND 
To
PHP Code:
password $chkpw AND 
This might work.
Reply With Quote
  #7  
Old 02-19-2004, 05:20 PM
Dark_Wizard Dark_Wizard is offline
 
Join Date: Nov 2001
Location: North Carolina
Posts: 1,251
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

LOL...I just PM'ed him a fix...
Reply With Quote
  #8  
Old 03-21-2004, 09:22 AM
toadyd toadyd is offline
 
Join Date: May 2003
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Are you willing to share your fix here?
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 04:56 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04192 seconds
  • Memory Usage 2,255KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (6)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (3)postbit_attachment
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete