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
  #12  
Old 06-03-2001, 03:48 AM
kdog316
Guest
 
Posts: n/a
Default

does the dbencrypt.php do all the table altering and replacing of the other php files for me
Reply With Quote
  #13  
Old 06-03-2001, 01:04 PM
dabean dabean is offline
 
Join Date: Oct 2001
Posts: 247
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Updated: (15:05 BST)

Improvements:
- Database update script, delete it after using it. Thanks tubedogg but i'd already writen my own to go with this improved version.
- Encypted passwords option at registration

Bug fixes:
- Members can no longer follow a password regeneration link more than once.
Reply With Quote
  #14  
Old 06-04-2001, 03:00 AM
kdog316
Guest
 
Posts: n/a
Default

i ran the encyption file but i dont see any make password encrypted field on registering
Reply With Quote
  #15  
Old 06-04-2001, 03:11 AM
dabean dabean is offline
 
Join Date: Oct 2001
Posts: 247
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

As the text file "password_encryption.txt" contained in the zip states all the installer does it make the database changes for you. You still have to modify the code and templates by following the instructions in the file.
Reply With Quote
  #16  
Old 06-04-2001, 09:36 PM
kdog316
Guest
 
Posts: n/a
Default

ok something wrong is going on here when ever i edit my member.php file the way you say i get this error when i try to access my change password, edit options or any thing else that has to do with the user profile and this is the error

Fatal error: Call to undefined function: getuserinfo() in /home/photo/public_html/tmbps/member.php on line 101

and here is line 101 on member.php


PHP Code:
    $bbuserinfo=getuserinfo($userid); 
Reply With Quote
  #17  
Old 06-04-2001, 10:04 PM
dabean dabean is offline
 
Join Date: Oct 2001
Posts: 247
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hmm, you've obviously made a mistake in altering the code.

the following lines should exist starting at line 47.

PHP Code:
if ($action=="login") {
  include(
"./global.php");
  if (isset(
$username)) { 
if these lines do exist then have another look at precise structure of the alterations you made.

If you'd made any changes to global.php or admin\functions.php as part of any other hacks you have added you may also want to double check them.
Reply With Quote
  #18  
Old 06-04-2001, 10:17 PM
kdog316
Guest
 
Posts: n/a
Default

there at line 42 right after

// ############################### start login ###############################

here is what the code looks like for that section tell me if anything needs to be switched


PHP Code:
if ($action=="login") {
  include(
"./global.php");
  if (isset(
$username)) {
    
// get userid for given username
    
if ($user=$DB_site->query_first("SELECT userid,username,password,cookieuser,encryptedpass FROM user WHERE username='".addslashes(htmlspecialchars($username))."'")) {
      
// secure passwords
      
if ($user[encryptedpass]==1) {
        if (
$user[password]!=md5($password)) {  // check secure password
          
eval("standarderror(\"".gettemplate("error_wrongpassword")."\");");
          exit;
        }
      } else {
        if (
$user[password]!=$password) {  // check standard password
          
eval("standarderror(\"".gettemplate("error_wrongpassword")."\");");
          exit;
        }
      }
      
$userid=$user[userid];
    } else { 
// invalid username entered
       
eval("standarderror(\"".gettemplate("error_wrongusername")."\");");
       exit;
    } 
// end secure passwords
      
$userid=$user[userid];
    } else { 
// invalid username entered
       
eval("standarderror(\"".gettemplate("error_wrongusername")."\");");
       exit;
    }

    if (
$user['cookieuser']==1) {
      
vbsetcookie("bbuserid",$user['userid']);
      
vbsetcookie("bbpassword",md5($user['password']));
    }

    
$DB_site->query("DELETE FROM session WHERE sessionhash='".addslashes($session[dbsessionhash])."'");

    
$session['sessionhash']=md5(uniqid(microtime()));
    
$session['dbsessionhash']=$session['sessionhash'];
    
$DB_site->query("INSERT INTO session (sessionhash,userid,host,useragent,lastactivity,styleid) VALUES ('".addslashes($session['sessionhash'])."','$userid','".addslashes($session['host'])."','".addslashes($session['useragent'])."','".time()."','$session[styleid]')");
    
vbsetcookie("sessionhash",$session['sessionhash'],0);
    
$username $user['username'];
  }

  
$url=ereg_replace("sessionhash=[a-z0-9]{32}&","",$url);
  
$url=ereg_replace("\\?sessionhash=[a-z0-9]{32}","",$url);
  
$url=ereg_replace("s=[a-z0-9]{32}&","",$url);
  
$url=ereg_replace("\\?s=[a-z0-9]{32}","",$url);

  if (
$url!="" and $url!="index.php" and $url!=$HTTP_REFERER) {

    if (
strpos($url,"?")>0) {
      
$url.="&s=$session[dbsessionhash]";
    } else {
      
$url.="?s=$session[dbsessionhash]";
    }
    
//header("Location: $url");

    
$url str_replace("\""""$url);
    eval(
"standardredirect(\"".gettemplate("redirect_login")."\",\"$url\");");
  } else {
    
$bbuserinfo=getuserinfo($userid);
    eval(
"standardredirect(\"".gettemplate("redirect_login")."\",\"index.php?s=$session[dbsessionhash]\");");

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

hmm you've repeated the same block of code twice.

PHP Code:
    // end secure passwords
      
$userid=$user[userid];
    } else { 
// invalid username entered
       
eval("standarderror(\"".gettemplate("error_wrongusername")."\");");
       exit;
    } 
should be changed to
PHP Code:
 // end secure passwords 
Reply With Quote
  #20  
Old 06-04-2001, 10:47 PM
kdog316
Guest
 
Posts: n/a
Default

now i am getting this erorr
Parse error: parse error in /home/photo/public_html/tmbps/member.php on line 1370

and here are lines 1366-1370

PHP Code:
eval("standarderror(\"".gettemplate("error_invalidsecureid")."\");");
  }
}

? > 
withput the space between the ? and the > of course
Reply With Quote
  #21  
Old 06-04-2001, 11:13 PM
dabean dabean is offline
 
Join Date: Oct 2001
Posts: 247
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

okay take a look at
PHP Code:
// ############################### start secure email password ###############################
if ($action=="securepw") { 
check that ?> doesn't appear above it.
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:39 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.07582 seconds
  • Memory Usage 2,329KB
  • 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
  • (7)bbcode_php
  • (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
  • (3)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
  • (6)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