Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
  #1  
Old 11-23-2006, 05:57 PM
pompaunpo pompaunpo is offline
 
Join Date: Nov 2006
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Snitz forum password login

Hi, I have a Snitz forum in mysql I want to transfer it in VB.
I have just bought the license new version 3.6.4, installed and imported all with Impex, I have had of the small initial owed problems essentially to the uppercase name of the tables (while they in the db were all lowecase), and despite that they in the last version of Impex have implemented the variable 'lowercase_table_names'
but 'lowercase_table_names' doesn't work!! I in fact have owed however convert in 000.php all the calls to tables name in lowercase

Now I have the problem of the password that in the snitz forum is HASH SHA256 while VB uses MD5.

I have more than 3000 registered users and I would not want send a email for
change the password access.

I have thought about this solution:


1) I import all 3000 password HASH SHA256 in the [user] table while
the new registered users will have the MD5 password;
2) in login page and more precisely in the file:
includes/functions_login.php

I insert this control:
Code:
if ($user['userid'] < 3000)
{

// if the user id is minor to 3000 therefore is old user
// and he  has the  HASH SHA256 password

$oldpassword = bin2hex(mhash(MHASH_SHA256,$vbulletin->userinfo['password']));

// "mhash" it a php class that converts the plain text password insert in login
// input text in HASH SHA256 

}

// now make the query comparison in the USER table between the field
// [password] and the variable $oldpassword
else ( if ($user['userid'] > 3000) .....proceed normally
with the MD5 password control

I not being an experienced programmer and not knowing to background
the system of login used from VB I ask to anybody that knows it well
functions_login.php for create these modifications

help me please
Reply With Quote
  #2  
Old 11-23-2006, 05:58 PM
Shazz's Avatar
Shazz Shazz is offline
 
Join Date: Jun 2006
Location: Utah
Posts: 4,758
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<a href="https://vborg.vbsupport.ru/forumdisplay.php?f=111" target="_blank">https://vborg.vbsupport.ru/forumdisplay.php?f=111</a>
Reply With Quote
  #3  
Old 11-23-2006, 09:30 PM
pompaunpo pompaunpo is offline
 
Join Date: Nov 2006
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Shazz View Post
sorry, now move this topic in appropriate forum :hurt:
Reply With Quote
  #4  
Old 11-23-2006, 09:52 PM
peterska2 peterska2 is offline
 
Join Date: Oct 2003
Location: Manchester, UK
Posts: 6,504
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Moved
Reply With Quote
Reply

Thread Tools
Display Modes

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 03:57 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06621 seconds
  • Memory Usage 2,185KB
  • Queries Executed 13 (?)
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
  • (1)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit_info
  • (4)postbit
  • (4)postbit_onlinestatus
  • (4)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_postinfo_query
  • fetch_postinfo
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete