Файл: Boomchat 7.1/system/mute_process.php
Строк: 23
<?php
/**
* Boomchat
*
* @package Boomchat
* @author www.myboomchat.com
* @copyright 2015
* @terms any use of this script without a legal license is prohibited
* all the content of Boomchat is the propriety of BoomCoding and Cannot be
* used for another project.
*/
$load_data = 'setting.timezone, setting.allow_theme, setting.default_theme, setting.language, setting.flood_delay, setting.mute_delay, users.user_theme';
require_once("config1.php");
$floodtime = $time - $data['flood_delay'];
$unmute = $time - $data['mute_delay'];
if ($data['mute_delay'] != 0){
$mysqli->query("UPDATE `users` SET `user_access` = 4, `user_flood` = '0', `user_mute` = '', `mute_time` = '' WHERE `user_access` = 1 AND `mute_time` < '$unmute' AND `user_mute` != 'flood' ");
}
$mysqli->query("UPDATE `users` SET `user_access` = 4, `user_flood` = '0', `user_mute` = '' WHERE `user_access` = 1 AND `user_mute` = 'flood' AND `last_action` < $floodtime");
?>