vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Snitz forum password login (https://vborg.vbsupport.ru/showthread.php?t=132297)

pompaunpo 11-23-2006 05:57 PM

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

Shazz 11-23-2006 05:58 PM

<a href="https://vborg.vbsupport.ru/forumdisplay.php?f=111" target="_blank">https://vborg.vbsupport.ru/forumdisplay.php?f=111</a>

pompaunpo 11-23-2006 09:30 PM

Quote:

Originally Posted by Shazz (Post 1123805)

sorry, now move this topic in appropriate forum :hurt:

peterska2 11-23-2006 09:52 PM

Moved :)


All times are GMT. The time now is 09:12 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.00913 seconds
  • Memory Usage 1,719KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete