Код: Выделить всё
##############################################################
## MOD Title: SmsZamokPHPbb register
## MOD Author: SleepNow
## MOD Idea: VEmpire
## MOD Description: Мод встраивает код смс замка в процедуру регистрации PhpBB
## MOD Version: 0.9 RC
## Compatibility: 2.0.5->2.0.6
##
## Installation Level: Easy
## Installation Time: 3 Minutes
## Files To Edit: 4
## /profile.php
## /includes/usercp_register.php
## /includes/usercp_register2.php
## /buy.php
## Included Files: 0
##
##############################################################
#-----[ OPEN AND COPY TO includes/usercp_register2.php] // Просто создаем копию usercp_register.php с именем usercp_register2.php
includes/usercp_register.php
#
#-----[ OPEN ]------------------------------------------------
#
profile.php
#
#-----[ FIND ]------------------------------------------------
#
else if ( $mode == 'editprofile' || $mode == 'register' )
#
#-----[ REPLACE ]------------------------------------------
#
else if ( $mode == 'editprofile' )
//else if ( $mode == 'editprofile' || $mode == 'register' )
{
if ( !$userdata['session_logged_in'] && $mode == 'editprofile' )
{
login_redirect();
}
require($phpbb_root_path . 'includes/usercp_register2.'.$phpEx);
exit;
#
#-----[ FIND ]------------------------------------------------
#
else if ( $mode == 'email' )
{
require($phpbb_root_path . 'includes/usercp_email.'.$phpEx);
exit;
}
#
#-----[ AFTER, ADD ]-----------------------------------------
#
else if ( $mode == 'register' )
{
require($phpbb_root_path . 'includes/usercp_register.'.$phpEx);
exit;
}
#
#-----[ SAVE/CLOSE FILE ]--------------------------------
#
#-----[ OPEN ]------------------------------------------------
#
includes/usercp_register.php
#
#-----[ FIND ]------------------------------------------------
#
$template->assign_block_vars('switch_namechange_disallowed', array());
}
#
#-----[ AFTER, ADD ]-----------------------------------------
#
require($phpbb_root_path . 'buy.'.$phpEx);
#
#-----[ SAVE/CLOSE FILE ]--------------------------------
#
#-----[ CREATE FILE BUY.PHP in ROOT directory,File contents ]------------------------------------------------
Содержимое файла Buy.php - это и есть код вашего смс замка.
#
#-----[ SAVE/CLOSE ALL FILES ]--------------------------------
#
# sleepnow