## . .

## phpBB 2.0
## : 1.0.1
## :
## : 5
## :
## search.php
## includes/functions_post.php
## admin/admin_board.php
## language/lang_english/lang_admin.php
## templates/subSilver/admin/board_config_body.tpl
##
## !!!!!
##
#-----[ ]------------------------------------------------
#
search.php
#
#-----[ ]------------------------------------------------
#
<?php
#
#-----[ ]------------------------------------------
#
//-- mod : Admin Flood Limit - 04x101 -------------------------------------------------------------
#
#-----[ ]------------------------------------------------
#
//
// Flood control
//
#
#-----[ ]------------------------------------------
#
//-- mod : Admin Flood Limit - 04x101 -------------------------------------------------------------
//-- add
if($board_config['search_flood_control'] == 1)
{
//-- end mod : Admin Flood Limit - 04x101 ---------------------------------------------------------
#
#-----[ ]------------------------------------------------
#
if (intval($row['last_search_time']) > 0 && ($current_time - intval($row['last_search_time'])) < intval($board_config['search_flood_interval']))
#
#-----[ ]----------------------------------------
#
//-- mod : Admin Flood Limit - 04x101 -------------------------------------------------------------
//-- add
if ($userdata['user_level'] == ADMIN)
{
$search_flood_limit = intval($board_config['search_flood_interval_admin']);
}
elseif ($userdata['user_level'] == MOD)
{
$search_flood_limit = intval($board_config['search_flood_interval_mod']);
}
else
{
$search_flood_limit = intval($board_config['search_flood_interval']);
}
//-- replace
// if (intval($row['last_search_time']) > 0 && ($current_time - intval($row['last_search_time'])) < intval($board_config['search_flood_interval']))
//-- with
if (intval($row['last_search_time']) > 0 && ($current_time - intval($row['last_search_time'])) < $search_flood_limit)
//-- end mod : Admin Flood Limit - 04x101 ---------------------------------------------------------
#
#-----[ ]------------------------------------------------
#
message_die(GENERAL_MESSAGE, $lang['Search_Flood_Error']);
}
}
}
#
#-----[ ]------------------------------------------
#
//-- mod : Admin Flood Limit - 04x101 -------------------------------------------------------------
//-- add
}
//-- end mod : Admin Flood Limit - 04x101 ---------------------------------------------------------
#
#-----[ ]------------------------------------------------
#
includes/functions_post.php
#
#-----[ ]------------------------------------------------
#
<?php
#
#-----[ ]------------------------------------------
#
//-- mod : Admin Flood Limit - 04x101 -------------------------------------------------------------
#
#-----[ ]------------------------------------------------
#
//
// Flood control
//
#
#-----[ ]------------------------------------------
#
//-- mod : Admin Flood Limit - 04x101 -------------------------------------------------------------
//-- add
if($board_config['flood_control'] == 1)
{
//-- end mod : Admin Flood Limit - 04x101 ---------------------------------------------------------
#
#-----[ ]------------------------------------------------
#
if (intval($row['last_post_time']) > 0 && ($current_time - intval($row['last_post_time'])) < intval($board_config['flood_interval']))
#
#-----[ ]----------------------------------------
#
//-- mod : Admin Flood Limit - 04x101 -------------------------------------------------------------
//-- add
if ($userdata['user_level'] == ADMIN)
{
$flood_limit = intval($board_config['flood_interval_admin']);
}
elseif ($userdata['user_level'] == MOD)
{
$flood_limit = intval($board_config['flood_interval_mod']);
}
else
{
$flood_limit = intval($board_config['flood_interval']);
}
//-- replace
// if (intval($row['last_post_time']) > 0 && ($current_time - intval($row['last_post_time'])) < intval($board_config['flood_interval']))
//-- with
if (intval($row['last_post_time']) > 0 && ($current_time - intval($row['last_post_time'])) < $flood_limit)
//-- end mod : Admin Flood Limit - 04x101 ---------------------------------------------------------
#
#-----[ ]------------------------------------------------
#
message_die(GENERAL_MESSAGE, $lang['Flood_Error']);
}
}
}
#
#-----[ ]------------------------------------------
#
//-- mod : Admin Flood Limit - 04x101 -------------------------------------------------------------
//-- add
}
//-- end mod : Admin Flood Limit - 04x101 ---------------------------------------------------------
#
#-----[ ]------------------------------------------------
#
admin/admin_board.php
#
#-----[ ]------------------------------------------------
#
<?php
#
#-----[ ]------------------------------------------
#
//-- mod : Admin Flood Limit - 04x101 -------------------------------------------------------------
#
#-----[ ]------------------------------------------------
#
$smile_yes = ( $new['allow_smilies'] ) ? "checked=\"checked\"" : "";
$smile_no = ( !$new['allow_smilies'] ) ? "checked=\"checked\"" : "";
#
#-----[ ]------------------------------------------
#
//-- mod : Admin Flood Limit - 04x101 -------------------------------------------------------------
//-- add
$flood_control_yes = ( $new['flood_control'] ) ? "checked=\"checked\"" : "";
$flood_control_no = ( !$new['flood_control'] ) ? "checked=\"checked\"" : "";

$search_flood_control_yes = ( $new['search_flood_control'] ) ? "checked=\"checked\"" : "";
$search_flood_control_no = ( !$new['search_flood_control'] ) ? "checked=\"checked\"" : "";
//-- end mod : Admin Flood Limit - 04x101 ---------------------------------------------------------
#
#-----[ ]------------------------------------------------
#
"L_FLOOD_INTERVAL" => $lang['Flood_Interval'],
#
#-----[ ]-----------------------------------------
#
//-- mod : Admin Flood Limit - 04x101 -------------------------------------------------------------
//-- add
"L_FLOOD_CONTROL" => $lang['Flood_Control'],
"L_FLOOD_CONTROL_EXPLAIN" => $lang['Flood_Control_Explain'],
"L_FLOOD_INTERVAL_ADMIN" => $lang['Flood_Interval_Admin'],
"L_FLOOD_INTERVAL_ADMIN_EXPLAIN" => $lang['Flood_Interval_Admin_Explain'],
"L_FLOOD_INTERVAL_MOD" => $lang['Flood_Interval_Mod'],
"L_FLOOD_INTERVAL_MOD_EXPLAIN" => $lang['Flood_Interval_Mod_Explain'],
//-- end mod : Admin Flood Limit - 04x101 ---------------------------------------------------------
#
#-----[ ]------------------------------------------
#
//-- mod : Admin Flood Limit - 04x101 -------------------------------------------------------------
//-- add
"L_SEARCH_FLOOD_CONTROL" => $lang['Search_Flood_Control'],
"L_SEARCH_FLOOD_CONTROL_EXPLAIN" => $lang['Search_Flood_Control_Explain'],
"L_SEARCH_FLOOD_INTERVAL_ADMIN" => $lang['Search_Flood_Interval_Admin'],
"L_SEARCH_FLOOD_INTERVAL_ADMIN_EXPLAIN" => $lang['Search_Flood_Interval_Admin_Explain'],
"L_SEARCH_FLOOD_INTERVAL_MOD" => $lang['Search_Flood_Interval_Mod'],
"L_SEARCH_FLOOD_INTERVAL_MOD_EXPLAIN" => $lang['Search_Flood_Interval_Mod_Explain'],
//-- end mod : Admin Flood Limit - 04x101 ---------------------------------------------------------
#
#-----[ ]------------------------------------------------
#
"FLOOD_INTERVAL" => $new['flood_interval'],
#
#-----[ ]-----------------------------------------
#
//-- mod : Admin Flood Limit - 04x101 -------------------------------------------------------------
//-- add
"S_FLOOD_CONTROL_YES" => $flood_control_yes,
"S_FLOOD_CONTROL_NO" => $flood_control_no,
"FLOOD_INTERVAL_ADMIN" => $new['flood_interval_admin'],
"FLOOD_INTERVAL_MOD" => $new['flood_interval_mod'],
//-- end mod : Admin Flood Limit - 04x101 ---------------------------------------------------------
#
#-----[ ]------------------------------------------
#
//-- mod : Admin Flood Limit - 04x101 -------------------------------------------------------------
//-- add
"S_SEARCH_FLOOD_CONTROL_YES" => $search_flood_control_yes,
"S_SEARCH_FLOOD_CONTROL_NO" => $search_flood_control_no,
"SEARCH_FLOOD_INTERVAL_ADMIN" => $new['search_flood_interval_admin'],
"SEARCH_FLOOD_INTERVAL_MOD" => $new['search_flood_interval_mod'],
//-- end mod : Admin Flood Limit - 04x101 ---------------------------------------------------------
#
#-----[ ]------------------------------------------------
#
language/lang_english/lang_admin.php
#
#-----[ ]------------------------------------------------
#
<?php
#
#-----[ ]------------------------------------------
#
//-- mod : Admin Flood Limit - 04x101 -------------------------------------------------------------
#
#-----[ ]------------------------------------------------
#
$lang['Flood_Interval']
#
#-----[ ]-----------------------------------------
#
//-- mod : Admin Flood Limit - 04x101 -------------------------------------------------------------
//-- add
$lang['Flood_Control'] = 'Flood control system';
$lang['Flood_Control_Explain'] = 'Enable/Disable flood control on messages';
$lang['Flood_Interval_Admin'] = 'Flood Interval - Admin';
$lang['Flood_Interval_Admin_Explain'] = 'Number of seconds an Admin must wait between posts (0=Disabled)';
$lang['Flood_Interval_Mod'] = 'Flood Interval - Mod';
$lang['Flood_Interval_Mod_Explain'] = 'Number of seconds a Mod must wait between posts (0=Disabled)';
//-- end mod : Admin Flood Limit - 04x101 ---------------------------------------------------------
#
#-----[ ]------------------------------------------
#
//-- mod : Admin Flood Limit - 04x101 -------------------------------------------------------------
//-- add
$lang['Search_Flood_Control'] = 'Search Flood control system';
$lang['Search_Flood_Control_Explain'] = 'Enable/Disable flood control on searchs';
$lang['Search_Flood_Interval_Admin'] = 'Search Flood Interval - Admin';
$lang['Search_Flood_Interval_Admin_Explain'] = 'Number of seconds an Admin must wait between search requests (0=Disabled)';
$lang['Search_Flood_Interval_Mod'] = 'Search Flood Interval - Mod';
$lang['Search_Flood_Interval_Mod_Explain'] = 'Number of seconds a Mod must wait between search requests (0=Disabled)';
//-- end mod : Admin Flood Limit - 04x101 ---------------------------------------------------------
#
#-----[ ]------------------------------------------------
#
templates/subSilver/admin/board_config_body.tpl
#
#-----[ ]------------------------------------------------
#
<tr>
<td class="row1">{L_FLOOD_INTERVAL} <br /><span class="gensmall">{L_FLOOD_INTERVAL_EXPLAIN}</span></td>
<td class="row2"><input class="post" type="text" size="3" maxlength="4" name="flood_interval" value="{FLOOD_INTERVAL}" /></td>
</tr>
#
#-----[ ]-----------------------------------------
#
<tr>
<td class="row1">{L_FLOOD_CONTROL} <br /><span class="gensmall">{L_FLOOD_CONTROL_EXPLAIN}</span></td>
<td class="row2"><input type="radio" name="flood_control" value="1" {S_FLOOD_CONTROL_YES} /> {L_ENABLED}<input type="radio" name="flood_control" value="0" {S_FLOOD_CONTROL_NO} /> {L_DISABLED}</td>
</tr>
<tr>
<td class="row1">{L_FLOOD_INTERVAL_ADMIN} <br /><span class="gensmall">{L_FLOOD_INTERVAL_ADMIN_EXPLAIN}</span></td>
<td class="row2"><input class="post" type="text" size="3" maxlength="4" name="flood_interval_admin" value="{FLOOD_INTERVAL_ADMIN}" /></td>
</tr>
<tr>
<td class="row1">{L_FLOOD_INTERVAL_MOD} <br /><span class="gensmall">{L_FLOOD_INTERVAL_MOD_EXPLAIN}</span></td>
<td class="row2"><input class="post" type="text" size="3" maxlength="4" name="flood_interval_mod" value="{FLOOD_INTERVAL_MOD}" /></td>
</tr>
#
#-----[ ]------------------------------------------
#
<tr>
<td class="row1">{L_SEARCH_FLOOD_CONTROL} <br /><span class="gensmall">{L_SEARCH_FLOOD_CONTROL_EXPLAIN}</span></td>
<td class="row2"><input type="radio" name="search_flood_control" value="1" {S_SEARCH_FLOOD_CONTROL_YES} /> {L_ENABLED}<input type="radio" name="search_flood_control" value="0" {S_SEARCH_FLOOD_CONTROL_NO} /> {L_DISABLED}</td>
</tr>
<tr>
<td class="row1">{L_SEARCH_FLOOD_INTERVAL_ADMIN} <br /><span class="gensmall">{L_SEARCH_FLOOD_INTERVAL_ADMIN_EXPLAIN}</span></td>
<td class="row2"><input class="post" type="text" size="3" maxlength="4" name="search_flood_interval_admin" value="{SEARCH_FLOOD_INTERVAL_ADMIN}" /></td>
</tr>
<tr>
<td class="row1">{L_SEARCH_FLOOD_INTERVAL_MOD} <br /><span class="gensmall">{L_SEARCH_FLOOD_INTERVAL_MOD_EXPLAIN}</span></td>
<td class="row2"><input class="post" type="text" size="3" maxlength="4" name="search_flood_interval_mod" value="{SEARCH_FLOOD_INTERVAL_MOD}" /></td>
</tr>
#
#-----[ ]--------------------------------
#
#


/ /