(2020-08-10, 11:55 AM)Crazycat Wrote: [ -> ]Change the last function of the plugin:
function antifloodsecurity_global_start(){
global $mybb, $session, $db;
if ($mybb->settings['antifloodsecurity_enable'] == 1){
if (!isset($_SESSION)) {
session_start();
}
if($_SESSION['last_session_request'] > time() - 10){
my_unsetcookie("mybbuser");
my_unsetcookie("sid");
$time = TIME_NOW;
// Run this after the shutdown query from session system
$db->shutdown_query("UPDATE ".TABLE_PREFIX."users SET lastvisit='{$time}', lastactive='{$time}' WHERE uid='{$mybb->user['uid']}'");
$db->delete_query("sessions", "sid = '{$session->sid}'");
redirect("index.php", "Too much request, reconnect please");
}
}
}
thanks you
(2020-08-10, 11:55 AM)Crazycat Wrote: [ -> ]Change the last function of the plugin:
function antifloodsecurity_global_start(){
global $mybb, $session, $db;
if ($mybb->settings['antifloodsecurity_enable'] == 1){
if (!isset($_SESSION)) {
session_start();
}
if($_SESSION['last_session_request'] > time() - 10){
my_unsetcookie("mybbuser");
my_unsetcookie("sid");
$time = TIME_NOW;
// Run this after the shutdown query from session system
$db->shutdown_query("UPDATE ".TABLE_PREFIX."users SET lastvisit='{$time}', lastactive='{$time}' WHERE uid='{$mybb->user['uid']}'");
$db->delete_query("sessions", "sid = '{$session->sid}'");
redirect("index.php", "Too much request, reconnect please");
}
}
}
Can you Copy The Complet File Modified for Made what i speak about because i dont understand I need to Copy All the Text in your last message and replace For the Plugins or add at the end ?
is Just That I need to add
if($_SESSION['last_session_request'] > time() - 10){
my_unsetcookie("mybbuser");
my_unsetcookie("sid");
$time = TIME_NOW;
// Run this after the shutdown query from session system
$db->shutdown_query("UPDATE ".TABLE_PREFIX."users SET lastvisit='{$time}', lastactive='{$time}' WHERE uid='{$mybb->user['uid']}'");
$db->delete_query("sessions", "sid = '{$session->sid}'");
redirect("index.php", "Too much request, reconnect please");
}
}
}
After Session_starts();
}
?
i have replace the function start with all of the code you send to me save and replace the plugins and re installed now on Spam on Page or open multiple table is dont made Anything i have re place the original file Waiting your Come back Thanks