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
  #22  
Old 06-04-2001, 11:22 PM
kdog316
Guest
 
Posts: n/a
Default

it wasnt even there let me see what happens when i add it
Reply With Quote
  #23  
Old 06-04-2001, 11:26 PM
kdog316
Guest
 
Posts: n/a
Default

i put it in but it still comes up with the erorr and with the line number of with ? > in it also this ? > is not above the security e-mail
Reply With Quote
  #24  
Old 06-04-2001, 11:47 PM
dabean dabean is offline
 
Join Date: Oct 2001
Posts: 247
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hmm not sure exactly where you have gone wrong then.
Reply With Quote
  #25  
Old 06-05-2001, 04:42 PM
rebby rebby is offline
 
Join Date: Oct 2001
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

in your instructions you have:
Quote:
replace
$users=$DB_site->query("SELECT username,email,password FROM user

with
$users=$DB_site->query("SELECT username,email,password,encryptedpass,userid
with this the email password feature fails.

this change will fix it:
Quote:
replace
$users=$DB_site->query("SELECT username,email,password

with
$users=$DB_site->query("SELECT username,email,password,encryptedpass,userid
Reply With Quote
  #26  
Old 06-05-2001, 05:43 PM
rebby rebby is offline
 
Join Date: Oct 2001
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this works great with the exception of in the user cp... the Secure password storage is not selected to yes or no by default and even if you select yes, it does nothing to the db...

it is encrypting passwords for new users taht select to have encrypted passwords from the start though (they can't unencrypted them like you noted though).
Reply With Quote
  #27  
Old 06-05-2001, 06:16 PM
dabean dabean is offline
 
Join Date: Oct 2001
Posts: 247
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Find
PHP Code:
if ($action=="editoptions") {
  
$templatesused "modifyoptions_maxposts,modifyoptions_styleset,modifyoptions_stylecell,usercpnav,modifyoptions";
  include(
"./global.php");
  
// do modify profile form

  
if ($bbuserinfo[userid]==or $permissions['canmodifyprofile']==0) {
    
show_nopermission();
  } 
now after that block add
PHP Code:
  // secure passwords
  
if ($bbuserinfo[encryptedpass]) {
    
$securepasswordchecked="checked";
    
$securepasswordnotchecked="";
  } else {
    
$securepasswordchecked="";
    
$securepasswordnotchecked="checked";
  }
  
// end secure passwords 
find
PHP Code:
  if ($bbuserinfo[userid]==or $permissions['canmodifyprofile']==0) {
    
show_nopermission();
  }

  
$adminemail=iif($allowmail=="yes",1,0); 
change to

PHP Code:
  if ($bbuserinfo[userid]==or $permissions['canmodifyprofile']==0) {
    
show_nopermission();
  }
  
// secure passwords
  
$cryptpassword=iif($securepassword=="yes",1,0);
  
// end secure passwords
  
$adminemail=iif($allowmail=="yes",1,0); 
now find
PHP Code:
  //delete cookies if cookie user is off
  
if ($cookieuser==0) {
    
vbsetcookie("bbuserid","");
    
vbsetcookie("bbpassword","");
  } 
and after it add
PHP Code:
  // secure passwords
  
if ($bbuserinfo[encryptedpass]==1) {
    
// md5 hash password & store todo
    
$cryptpassword=1;
  } else {
    
// 
    
if ($cryptpassword==1) {
      
$DB_site->query("UPDATE user SET password='".addslashes(md5($bbuserinfo[password]))."' WHERE userid='$bbuserinfo[userid]'");
      
// set new hashed cookie
      
vbsetcookie("bbpassword",md5(md5($bbuserinfo[password])));
    }
  }
  
// end secure passwords 
find
PHP Code:
  $DB_site->query("UPDATE user
                   SET "
.$updatestyles."adminemail='$adminemail',
                      showemail='
$showemail',invisible='$invisible',cookieuser='$cookieuser',
                      maxposts='"
.addslashes($umaxposts)."',daysprune='".addslashes($prunedays)."',
                      timezoneoffset='"
.addslashes($timezoneoffset)."',emailnotification='$emailnotification',
                      startofweek='"
.addslashes($startofweek)."',options='$options',receivepm='$receivepm',
                      emailonpm='
$emailonpm',pmpopup='$pmpopup',usergroupid='$bbuserinfo[usergroupid]',
                      nosessionhash='
$nosessionhash'
                   WHERE userid='
$bbuserinfo[userid]'"); 
and change the line to
PHP Code:
  $DB_site->query("UPDATE user
                   SET "
.$updatestyles."adminemail='$adminemail',
                      showemail='
$showemail',invisible='$invisible',cookieuser='$cookieuser',
                      maxposts='"
.addslashes($umaxposts)."',daysprune='".addslashes($prunedays)."',
                      timezoneoffset='"
.addslashes($timezoneoffset)."',emailnotification='$emailnotification',
                      startofweek='"
.addslashes($startofweek)."',options='$options',receivepm='$receivepm',
                      emailonpm='
$emailonpm',pmpopup='$pmpopup',usergroupid='$bbuserinfo[usergroupid]',
                      nosessionhash='
$nosessionhash', encryptedpass='$cryptpassword'
                   WHERE userid='
$bbuserinfo[userid]'"); 
now after
PHP Code:
  if ($newpassword!=$newpasswordconfirm) {
    eval(
"standarderror(\"".gettemplate("error_passwordmismatch")."\");");
    exit;
  } 
add
PHP Code:
 // secure passwords
  
if ($bbuserinfo[encryptedpass]==1) {
    
$newpassword=md5($newpassword);
  }
  
// end secure passwords 
Alternativly download the updated zip file that now contains these additions that i forgot to paste into the orginal file.
Reply With Quote
  #28  
Old 06-05-2001, 06:20 PM
rebby rebby is offline
 
Join Date: Oct 2001
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

what file is that for??? member.php???
Reply With Quote
  #29  
Old 06-05-2001, 06:21 PM
dabean dabean is offline
 
Join Date: Oct 2001
Posts: 247
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

member.php
Reply With Quote
  #30  
Old 06-05-2001, 06:23 PM
rebby rebby is offline
 
Join Date: Oct 2001
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by dabean
member.php
thanx... i'll give that a go and let you know..
Reply With Quote
  #31  
Old 06-05-2001, 06:34 PM
rebby rebby is offline
 
Join Date: Oct 2001
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

it now encrypts the password (like it should) however the bullet in the user cp does not reflect this...
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 11:24 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.04944 seconds
  • Memory Usage 2,339KB
  • 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
  • (10)bbcode_php
  • (3)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
  • (9)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