Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by dabean dabean is offline
Developer Last Online: Dec 2003 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 05-31-2001 Last Update: Never Installs: 0
 
No support by the author.

Updated 15th July 2001
Simplish hack that allows end users to chose if they want to store encrypted versions of their password.

Full details of how this is implemented are contained in the file.
Requirements:
vBulletin 2.0.0
This has not been tested on rc1/2/3 beta1-5. It might work or it might not.

From the june 3rd update onwards a installation script is included, full details in the instructions.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #42  
Old 06-28-2001, 04:19 PM
dabean dabean is offline
 
Join Date: Oct 2001
Posts: 247
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I had orginally planned on improving the hack to allow users to revert to plain text passwords, but forgot to post exactly how to do it. Yes md5 is indeed non-reversable but you can allways prompt for a new password. If anyone really wants the exact code to do this then I can post it.
Reply With Quote
  #43  
Old 06-28-2001, 04:25 PM
jmcneese
Guest
 
Posts: n/a
Default

yes, do post the code. i'm to lazy to figure it out myself.
Reply With Quote
  #44  
Old 06-28-2001, 06:26 PM
dabean dabean is offline
 
Join Date: Oct 2001
Posts: 247
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

first all you need to fix a little bug in hack.

In member.php Find
PHP Code:
  // validate old password
  
if ($currentpassword!=$bbuserinfo[password]) {
    eval(
"standarderror(\"".gettemplate("error_wrongpassword")."\");");
    exit;
  } 
above it add
PHP Code:
  // secure password mod - encrypt password
  
if ($bbuserinfo[encryptedpass]==1) {
    
$currentpassword=md5($currentpassword);
  } 
// end secure password mod 

now for the actual improvement.

File: member.php

Find...
PHP Code:
  if ($newpassword!=$newpasswordconfirm) {
    eval(
"standarderror(\"".gettemplate("error_passwordmismatch")."\");");
    exit;
  }

  
// secure passwords
  
if ($bbuserinfo[encryptedpass]==1) {
    
$newpassword=md5($newpassword);
  }
  
// end secure passwords 
replace it with
PHP Code:
  if ($newpassword!=$newpasswordconfirm) {
    eval(
"standarderror(\"".gettemplate("error_passwordmismatch")."\");");
    exit;
  }

  
// secure passwords
  
if ($encryption=="off" && $bbuserinfo[encryptedpass]==1) {
    
$DB_site->query("UPDATE user SET encryptedpass=0 WHERE userid='$bbuserinfo[userid]'");
  } else {
    if (
$bbuserinfo[encryptedpass]==1) {
      
$newpassword=md5($newpassword);
    }
  }
  
// end secure passwords 

Find
PHP Code:
  // secure passwords
  
if ($bbuserinfo[encryptedpass]==1) {
    
// md5 hash password & store todo
    
$cryptpassword=1;
    
$urltoforward=""
  
} else { 
Replace with
PHP Code:
  // secure passwords
  
if ($bbuserinfo[encryptedpass]==&& $cryptpassword==0) {
    
// md5 hash password & store todo
    
$cryptpassword=1;
    
$downgradepass=1;
  } else { 
Find
PHP Code:
  } else {      
      
$goto="usercp.php?s=$session[sessionhash]";
  } 
replace with
PHP Code:
  } else {         // secure passwords
    
if($downgradepass!=1) {
      
$goto="usercp.php?s=$session[sessionhash]";
    } else {
      
$goto="member.php?s=$session[sessionhash]&action=editpassword&encryption=off";
    }
  }           
// end secure passwords 
now for the templates

template modifypassword
below
<input type="hidden" name="s" value="$session[sessionhash]">

add
<input type="hidden" name="encryption" value="$encryption">
Reply With Quote
  #45  
Old 07-15-2001, 02:05 PM
webhost's Avatar
webhost webhost is offline
 
Join Date: Oct 2001
Location: St. Louis
Posts: 577
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there anyway you can post a updated version of this hack in your first post of the thread. I saw where the last time you edited it was on the 5th I believe but I have seen on your last reply that you made changes on the 28th. Also does your zip also have Kevin's file in it?
Reply With Quote
  #46  
Old 07-15-2001, 02:34 PM
dabean dabean is offline
 
Join Date: Oct 2001
Posts: 247
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay I've altered the zip to include the previous modifications and there is/was a table altering script included previously and currently so Kevin's file is no longer needed.
Reply With Quote
  #47  
Old 07-15-2001, 02:42 PM
webhost's Avatar
webhost webhost is offline
 
Join Date: Oct 2001
Location: St. Louis
Posts: 577
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks
Reply With Quote
  #48  
Old 07-18-2001, 06:00 AM
DarkReaper DarkReaper is offline
 
Join Date: Oct 2001
Posts: 429
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Damn that took a while! finallty finished though and it works great, woo hoo!
Reply With Quote
  #49  
Old 07-18-2001, 01:02 PM
rebby rebby is offline
 
Join Date: Oct 2001
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by DarkReaper
Damn that took a while! finallty finished though and it works great, woo hoo!
yes, this hack is very slick... i can't wait until this is in the default install of vb...
Reply With Quote
  #50  
Old 07-31-2001, 01:46 PM
rebby rebby is offline
 
Join Date: Oct 2001
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i just upgraded to 2.0.3 and forgot about doing this hack

what changes might i need???
Reply With Quote
  #51  
Old 07-31-2001, 01:50 PM
dabean dabean is offline
 
Join Date: Oct 2001
Posts: 247
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Not looked at 2.0.3 yet but nearly the whole hack would need reapplying. I'd guess.
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:40 AM.


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.06948 seconds
  • Memory Usage 2,323KB
  • Queries Executed 25 (?)
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
  • (8)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (11)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete