[مجابة] ممكن هاك إغلاق التسجيل و يكون معرب
المشرف: alhitary
- jaber sadiq
- عضو متميز
- مشاركات: 389
- اشترك في: الأربعاء أكتوبر 19, 2005 12:27 am
[?????] ???? ??? ????? ??????? ? ???? ????
?????? ?????
???? ??? ????? ??????? ? ???? ????
??? ???? ??? ??????????
????? ? ?? ?????? ????
???? ?? ???? ??
???? ??? ????? ??????? ? ???? ????
??? ???? ??? ??????????
????? ? ?? ?????? ????
???? ?? ???? ??
آخر تعديل بواسطة jaber sadiq في الأربعاء أكتوبر 26, 2005 6:59 pm، تم التعديل مرة واحدة.
- jaber sadiq
- عضو متميز
- مشاركات: 389
- اشترك في: الأربعاء أكتوبر 19, 2005 12:27 am
- jaber sadiq
- عضو متميز
- مشاركات: 389
- اشترك في: الأربعاء أكتوبر 19, 2005 12:27 am
- jaber sadiq
- عضو متميز
- مشاركات: 389
- اشترك في: الأربعاء أكتوبر 19, 2005 12:27 am
كود: تحديد الكل
##############################################################
## ??? ????? : ??? ????? ??????? ?? ???? ??????
##?????????????????????: FhdQa fhd_qa@yahoo.com www.lewaa.com FhdQa
##
## ??? ????? : ??? ????? ????? ?? ???? ??????? ???? ?????
## ?????? ?????
##
## ????? ????? : 1.1.0
##
## ????? ????? : ???
## ????? ?????? ??????? : 5 ????? (??? ???? ?????????? ????)
## ??????? ??????? ???????: 5
## admin/admin_board.php
## includes/usercp_register.php
## language/lang_english/lang_main.php
## language/lang_english/lang_admin.php
## templates/subSilver/admin/board_config_body.tpl
## ??????? ??????? ???????:?? ????
##############################################################
## ???? ???? ???????? ??? ????? ??????
## ????? ????? : FhdQa
##############################################################
#
#-----[ 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('"', '"', strip_tags($new['sitename']));
#
#-----[ ????? ??? ]----------------------------------------------
#
// BEGIN Disable Registration MOD
$new['registration_closed'] = str_replace('"', '"', $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_STATUS_EXPLAIN" => $lang['registration_status_explain'],
"L_REGISTRATION_CLOSED" => $lang['registration_closed'],
"L_REGISTRATION_CLOSED_EXPLAIN" => $lang['registration_closed_explain'],
// 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
#
#-----[ ???? ?? ]----------------------------------------------
#
// ---------------------------------------
// Load agreement template since user has not yet
// agreed to registration conditions/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_status_explain'] = '??? ?????? ????? ?? ????? ???? ???? ???????.';
$lang['registration_closed'] = '??? ????? ???????';
$lang['registration_closed_explain'] = '??? ???? ????? ????? ??? ????? ??????? ??? ?????? ?????? ????? ???????.';
// 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/subSilver/admin/board_config_body.tpl
#
#-----[ ???? ?? ]----------------------------------------------
#
<tr>
<td class="row1">{L_DISABLE_BOARD}<br /><span class="gensmall">{L_DISABLE_BOARD_EXPLAIN}</span></td>
<td class="row2"><input type="radio" name="board_disable" value="1" {S_DISABLE_BOARD_YES} /> {L_YES} <input type="radio" name="board_disable" value="0" {S_DISABLE_BOARD_NO} /> {L_NO}</td>
</tr>
#
#-----[ ????? ??? ]----------------------------------------------
#
<tr>
<td class="row1">{L_REGISTRATION_STATUS}<br /><span class="gensmall">{L_REGISTRATION_STATUS_EXPLAIN}</span></td>
<td class="row2"><input type="radio" name="registration_status" value="1" {S_REGISTRATION_STATUS_YES} /> {L_YES} <input type="radio" name="registration_status" value="0" {S_REGISTRATION_STATUS_NO} /> {L_NO}</td>
</tr>
<tr>
<td class="row1">{L_REGISTRATION_CLOSED}<br /><span class="gensmall">{L_REGISTRATION_CLOSED_EXPLAIN}</span></td>
<td class="row2"><input class="post" type="text" size="40" maxlength="255" name="registration_closed" value="{REGISTRATION_CLOSED}" /></td>
</tr>
#
#-----[ ???? ???? ??????? ??????? ]--------------------------------
#
#????? ???????
?? ??????? ??? ???????? FhdQa,,
##############################################################
## ??? ????? : ??? ????? ??????? ?? ???? ??????
##?????????????????????: FhdQa fhd_qa@yahoo.com http://www.lewaa.com FhdQa
##
## ??? ????? : ??? ????? ????? ?? ???? ??????? ???? ?????
## ?????? ?????
##
## ????? ????? : 1.1.0
##
## ????? ????? : ???
## ????? ?????? ??????? : 5 ????? (??? ???? ?????????? ????)
## ??????? ??????? ???????: 5
## admin/admin_board.php
## includes/usercp_register.php
## language/lang_english/lang_main.php
## language/lang_english/lang_admin.php
## templates/subSilver/admin/board_config_body.tpl
## ??????? ??????? ???????:?? ????
##############################################################
## ???? ???? ???????? ??? ????? ??????
## ????? ????? : FhdQa
##############################################################
#
#-----[ 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('"', '"', strip_tags($new['sitename']));
#
#-----[ ????? ??? ]----------------------------------------------
#
// BEGIN Disable Registration MOD
$new['registration_closed'] = str_replace('"', '"', $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_STATUS_EXPLAIN" => $lang['registration_status_explain'],
"L_REGISTRATION_CLOSED" => $lang['registration_closed'],
"L_REGISTRATION_CLOSED_EXPLAIN" => $lang['registration_closed_explain'],
// 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
#
#-----[ ???? ?? ]----------------------------------------------
#
// ---------------------------------------
// Load agreement template since user has not yet
// agreed to registration conditions/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_status_explain'] = '??? ?????? ????? ?? ????? ???? ???? ???????.';
$lang['registration_closed'] = '??? ????? ???????';
$lang['registration_closed_explain'] = '??? ???? ????? ????? ??? ????? ??????? ??? ?????? ?????? ????? ???????.';
// 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/subSilver/admin/board_config_body.tpl
#
#-----[ ???? ?? ]----------------------------------------------
#
<tr>
<td class="row1">{L_DISABLE_BOARD}<br /><span class="gensmall">{L_DISABLE_BOARD_EXPLAIN}</span></td>
<td class="row2"><input type="radio" name="board_disable" value="1" {S_DISABLE_BOARD_YES} /> {L_YES} <input type="radio" name="board_disable" value="0" {S_DISABLE_BOARD_NO} /> {L_NO}</td>
</tr>
#
#-----[ ????? ??? ]----------------------------------------------
#
<tr>
<td class="row1">{L_REGISTRATION_STATUS}<br /><span class="gensmall">{L_REGISTRATION_STATUS_EXPLAIN}</span></td>
<td class="row2"><input type="radio" name="registration_status" value="1" {S_REGISTRATION_STATUS_YES} /> {L_YES} <input type="radio" name="registration_status" value="0" {S_REGISTRATION_STATUS_NO} /> {L_NO}</td>
</tr>
<tr>
<td class="row1">{L_REGISTRATION_CLOSED}<br /><span class="gensmall">{L_REGISTRATION_CLOSED_EXPLAIN}</span></td>
<td class="row2"><input class="post" type="text" size="40" maxlength="255" name="registration_closed" value="{REGISTRATION_CLOSED}" /></td>
</tr>
#
#-----[ ???? ???? ??????? ??????? ]--------------------------------
#
#????? ???????
?? ??????? ??? ???????? FhdQa,,
????? ????? ?? ??????
الموجودون الآن
المتصفحون للمنتدى الآن: لا يوجد أعضاء مسجلين متصلين و 8 زوار