1 sayfadan 1. sayfa

Kayıttan Sonra Otomatik Login - Autologin Upon Registration

İletiTarih: 10.05.2006, 09:44
CeNK
Tanımı : Kayıttan Sonra Otomatik Login - Autologin Upon Registration


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

İletiTarih: 11.05.2006, 10:17
Pluton
ben kurdum çalışıyo güzelce :d

İletiTarih: 18.05.2006, 12:27
murtaza
peki aktivasyon maili e-maile gidiyosa
aktive olur olmaz giris yapmismi sayiliyo bu?

Sevgiyle

Cvp: Kayıttan Sonra Otomatik Login - Autologin Upon Registration

İletiTarih: 21.06.2006, 08:31
EFE03
aktivasyon kodu kalkarsa güvenlik açısından bir zarar olurmu?

Re: Kayıttan Sonra Otomatik Login - Autologin Upon Registration

İletiTarih: 22.04.2007, 18:23
bluetooth
aktivasyon kodu aslında e-mail adresini doğrulamak içindir güvenlik açısından birşey olmaz

Re:

İletiTarih: 17.05.2007, 19:16
TheScorpion
murtaza yazdı:peki aktivasyon maili e-maile gidiyosa
aktive olur olmaz giris yapmismi sayiliyo bu?

Sevgiyle

Güzel bir soru ama cevap gelmemiş.