############################################################## 
## 	: 	  
## 	: 	Poupoune < kristff@hotmail.com > (N/A) http://www.phpbb-fr.com 
##    Fantom
## 
##  : 	  /   .
##				      .
##
## MOD Version : 1.1.0
## 
##   : 
##    :  5  
##    :   5 
##      admin/admin_board.php 
##      includes/usercp_register.php 
##      language/lang_russian/lang_main.php
##		language/lang_russian/lang_admin.php 
##		templates/admin/board_config_body.tpl
##
############################################################## 
##  ,       !
############################################################## 

# 
#-----[ SQL ]---------------------------------------------- 
#

INSERT INTO `phpbb_config` VALUES ('registration_status', '0');
INSERT INTO `phpbb_config` VALUES ('registration_closed', '');

# 
#-----[  ]---------------------------------------------- 
# 

admin/admin_board.php

# 
#-----[  ]---------------------------------------------- 
# 

$disable_board_yes = ( $new['board_disable'] ) ? "checked=\"checked\"" : "";
$disable_board_no = ( !$new['board_disable'] ) ? "checked=\"checked\"" : "";

# 
#-----[ ,  ]---------------------------------------------- 
#

// BEGIN Disable Registration MOD
$registration_status_yes = ( $new['registration_status'] ) ? "checked=\"checked\"" : "";
$registration_status_no = ( !$new['registration_status'] ) ? "checked=\"checked\"" : ""; 
// END Disable Registration MOD

# 
#-----[  ]---------------------------------------------- 
# 

$new['sitename'] = str_replace('"', '&quot;', strip_tags($new['sitename']));

# 
#-----[ ,  ]---------------------------------------------- 
#

// BEGIN Disable Registration MOD
$new['registration_closed'] = str_replace('"', '&quot;', $new['registration_closed']);
// END Disable Registration MOD

# 
#-----[  ]---------------------------------------------- 
# 

  "L_DISABLE_BOARD_EXPLAIN" => $lang['Board_disable_explain'],

# 
#-----[ ,  ]---------------------------------------------- 
#

// BEGIN Disable Registration MOD
	"L_REGISTRATION_STATUS" => $lang['registration_status'],
	"L_REGISTRATION_CLOSED" => $lang['registration_closed'],
	// END Disable Registration MOD 


# 
#-----[  ]---------------------------------------------- 
# 

  "S_DISABLE_BOARD_NO" => $disable_board_no,

# 
#-----[ ,  ]---------------------------------------------- 
#

	// BEGIN Disable Registration MOD
	"S_REGISTRATION_STATUS_YES" => $registration_status_yes,
	"S_REGISTRATION_STATUS_NO" => $registration_status_no,
	"REGISTRATION_CLOSED" => $new['registration_closed'], 
	// END Disable Registration MOD  

# 
#-----[  ]---------------------------------------------- 
# 

includes/usercp_register.php

# 
#-----[  ]---------------------------------------------- 
# 

function show_coppa()
{

# 
#-----[ ,  ]---------------------------------------------- 
#

// BEGIN Disable Registration MOD
if( $board_config['registration_status'] && !$userdata['session_logged_in'] )
{
  if( $board_config['registration_closed'] == '' )
  {
    message_die(GENERAL_MESSAGE, 'registration_status', 'Information');
  }
  else
  {
    message_die(GENERAL_MESSAGE, $board_config['registration_closed'], 'Information'); 
  }  
}
// END Disable Registration MOD

# 
#-----[  ]---------------------------------------------- 
# 

language/lang_english/lang_admin.php

# 
#-----[  ]---------------------------------------------- 
# 

?>

# 
#-----[ ,  ]---------------------------------------------- 
#

// BEGIN Disable Registration MOD
$lang['registration_status'] = ' ?';
$lang['registration_closed'] = '  ';
// END Disable Registration MOD 

# 
#-----[  ]---------------------------------------------- 
# 

language/lang_english/lang_main.php

# 
#-----[  ]---------------------------------------------- 
# 

$lang['Board_disable'] = ',   .   ';

# 
#-----[ ,  ]---------------------------------------------- 
#

// BEGIN Disable Registration MOD
$lang['registration_status'] = ',      ,   ))';
// END Disable Registration MOD 

# 
#-----[  ]---------------------------------------------- 
# 

templates/admin/board_config_body.tpl

# 
#-----[  ]---------------------------------------------- 
# 

<tr> 
<td class="row1">{L_DISABLE_BOARD}:<br/>
<span class="genmed">{L_DISABLE_BOARD_EXPLAIN}</span><br/>
<input type="radio" name="board_disable" value="1" {S_DISABLE_BOARD_YES} /> {L_YES}<br/>
<input type="radio" name="board_disable" value="0" {S_DISABLE_BOARD_NO} /> {L_NO}
</td>
</tr>

# 
#-----[ ,  ]---------------------------------------------- 
#

<tr>
<td class="row1">
{L_REGISTRATION_STATUS}<br />
<input type="radio" name="registration_status" value="1" {S_REGISTRATION_STATUS_YES} /> {L_YES}<br/>
<input type="radio" name="registration_status" value="0" {S_REGISTRATION_STATUS_NO} /> {L_NO}
<br />
{L_REGISTRATION_CLOSED}<br/>
<input class="post" type="text" size="40" maxlength="255" name="registration_closed" value="{REGISTRATION_CLOSED}" />
</td>
</tr>

# 
#-----[    ]------------------------------------------ 
# 
# FdM & Fantom (http://rock-club.net