Kod: Tümünü seç
##############################################################
## MOD Title: Autologin Upon Registration
## MOD Author: battye < cricketmx@hotmail.com > (N/A) http://www.online-scrabble.com
## MOD Description: Users get automatically logged in upon registration
## MOD Version: 0.0.2
##
## Installation Level: Easy
## Installation Time: 1 Minute
##
## Files To Edit: usercp_register.php
## usercp_activate.php
##
## Included Files: -
##
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
##############################################################
## For security purposes, please check: http://www.phpbb.com/mods/
## for the latest version of this MOD. Although MODs are checked
## before being allowed in the MODs Database there is no guarantee
## that there are no security problems within the MOD. No support
## will be given for MODs not found within the MODs Database which
## can be found at http://www.phpbb.com/mods/
##############################################################
## Author Notes: Enjoy :-)
##############################################################
## MOD History:
##
## 2005-12-03 - Version 0.0.1
## - Easier than I thought :)
##
## 2005-12-08 - Version 0.0.2
## - Now for email activation too.
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#---[ OPEN ]-----------------------------
#
includes/usercp_activate.php
#
#---[ FIND ]-----------------------------
# About line 94
$template->assign_vars(array(
'META' => '<meta http-equiv="refresh" content="10;url=' . append_sid("index.$phpEx") . '">')
);
$message = ( $sql_update_pass == '' ) ? $lang['Account_active'] : $lang['Password_activated'];
message_die(GENERAL_MESSAGE, $message);
#
#---[ REPLACE WITH ]-------------------
#
$al_session_id = session_begin($row['user_id'], $user_ip, PAGE_INDEX, FALSE, 0, 0);
if( $al_session_id )
{
$meta_redirect_al = '<meta http-equiv="refresh" content="5;url=' . append_sid("index.$phpEx", true) . '">';
}
else
{
$meta_redirect_al = '';
}
$message = ( $sql_update_pass == '' ) ? $lang['Account_active'] : $lang['Password_activated'];
message_die(GENERAL_MESSAGE, $message . $meta_redirect_al);
#
#---[ OPEN ]-----------------------------
#
includes/usercp_register.php
#
#---[ FIND ]-----------------------------
# About line 722
message_die(GENERAL_MESSAGE, $message);
} // if mode == register
#
#---[ REPLACE WITH ]-------------------
#
if( $board_config['require_activation'] == USER_ACTIVATION_NONE )
{
$al_session_id = session_begin($user_id, $user_ip, PAGE_INDEX, FALSE, 0, 0);
if( $al_session_id )
{
$meta_redirect_al = '<meta http-equiv="refresh" content="5;url=' . append_sid("index.$phpEx", true) . '">';
}
}
else
{
$meta_redirect_al = '';
}
message_die(GENERAL_MESSAGE, $message . $meta_redirect_al);
} // if mode == register
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM