- Forumlar ve alt forumlar. Alt forumlar yeni bir kategori altına eklenir.
- Başlıklar
- Mesajlar
- Kullanıcılar
- Gruplar
- Rütbeler
- Özel Mesajlar
- Takip edilen başlıklar
- Anketler
- Yasaklama listesi
- Sansürlü kelimeler
Download/İndir
Kod: Tümünü seç
##############################################################
## MOD Title: vBulletin User Login
## MOD Author: Dicky <dicky@askmaggymae.com> http://dicky.askmaggymae.com
## MOD Description: Allows a vBulletin user to login in to a converted vB3 to phpBB bulletin board
## with their vBulletin password
## MOD Version: 1.0.0
##
## Installation Level: Easy
## Installation Time: ~1 Minute
## Files To Edit: login.php
## Included Files: N/A
##############################################################
## MOD History:
##
## 2005-09-17 - Version 1.0.0
## - initial version
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
login.php
#
#-----[ FIND ]------------------------------------------
#
$sql = "SELECT user_id, username, user_password, user_active, user_level
#
#-----[ IN-LINE FIND ]------------------------------------------
#
user_level
#
#-----[ AFTER, ADD ]------------------------------------------
#
, salt
#
#-----[ FIND ]------------------------------------------
#
if( $row['user_level'] != ADMIN && $board_config['board_disable'] )
{
redirect(append_sid("index.$phpEx", true));
}
else
{
#
#-----[ AFTER, ADD ]------------------------------------------
#
// check if this is a converted user
// handles punbb, vBulletin3 and Invision Power Board user passwords
if( md5($password) !== $row['user_password'] && $row['user_active'] )
{
$md5passwrd = md5($password);
// $md5password_salt = md5(md5($password) . $row['salt']);
if ( $row['user_password'] == md5(md5($password) . $row['salt'] ) || ( $row['user_password'] == md5(md5($row['salt']) . md5($password)) ) || ( $row['user_password'] == substr( sha1( $HTTP_POST_VARS['password'] ), 0, 32) ) )
{
// this is a vb3 user. Welcome them and make them a phpBB user now!
//take the subbed pass and put a md5 encryption on it and insert it into the database
$sql = "UPDATE " . USERS_TABLE . " SET user_password = '" . md5( $HTTP_POST_VARS['password'] ) . "' WHERE user_id = '" . $row['user_id'] . "'";
if( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Password Error:<br />Please contact the board administrator immediately.', '', __LINE__, __FILE__, $sql);
}
// reset $row[user_password]
$sql = "SELECT user_id, username, user_password, user_active, user_level FROM " . USERS_TABLE . "
WHERE username = '" . str_replace("\\'", "''", $username) . "'";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Error in obtaining userdata', '', __LINE__, __FILE__, $sql);
}
$row = $db->sql_fetchrow($result);
}
}
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
Bu forumu görüntüleyen kullanıcılar: Hiç bir kayıtlı kullanıcı yok ve 12 misafir