Bug fix use column instead of field
If updated in the last few days then you need should clear the file cache. Also disabled event_guard_log_allowed until there is a setting to enable or disable it. Update the source code cd /var/www/fusionpbx rm /var/cache/fusionpbx/* service event_guard restart
This commit is contained in:
@@ -467,6 +467,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
//allow access for addresses that have been unblocked
|
//allow access for addresses that have been unblocked
|
||||||
|
/*
|
||||||
if (event_guard_log_allowed($ip_address)) {
|
if (event_guard_log_allowed($ip_address)) {
|
||||||
//save address to the cache as allowed
|
//save address to the cache as allowed
|
||||||
$cache->set("switch:allowed:".$ip_address, 'true');
|
$cache->set("switch:allowed:".$ip_address, 'true');
|
||||||
@@ -479,6 +480,7 @@
|
|||||||
//return boolean true
|
//return boolean true
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
//allow access if the cidr address is allowed
|
//allow access if the cidr address is allowed
|
||||||
if (access_control_allowed($ip_address)) {
|
if (access_control_allowed($ip_address)) {
|
||||||
@@ -594,7 +596,7 @@
|
|||||||
$sql .= "and result = 'success' ";
|
$sql .= "and result = 'success' ";
|
||||||
$parameters['ip_address'] = $ip_address;
|
$parameters['ip_address'] = $ip_address;
|
||||||
$database = new database;
|
$database = new database;
|
||||||
$user_log_count = $database->select($sql, $parameters, 'field');
|
$user_log_count = $database->select($sql, $parameters, 'column');
|
||||||
unset($database);
|
unset($database);
|
||||||
|
|
||||||
//debug info
|
//debug info
|
||||||
@@ -629,7 +631,7 @@
|
|||||||
$sql .= "and log_status = 'unblocked' ";
|
$sql .= "and log_status = 'unblocked' ";
|
||||||
$parameters['ip_address'] = $ip_address;
|
$parameters['ip_address'] = $ip_address;
|
||||||
$database = new database;
|
$database = new database;
|
||||||
$user_log_count = $database->select($sql, $parameters, 'field');
|
$user_log_count = $database->select($sql, $parameters, 'column');
|
||||||
unset($database);
|
unset($database);
|
||||||
|
|
||||||
//debug info
|
//debug info
|
||||||
|
|||||||
Reference in New Issue
Block a user