Make possible to determine whether an operator is online at any page of the administrative interface

Fixes #181
This commit is contained in:
Fedor A. Fetisov 2016-12-24 03:31:22 +03:00
parent 7041adcdfb
commit ca169c5bc7

View File

@ -690,6 +690,7 @@ function prepare_menu($operator, $has_right = true)
$result = array();
$result['operator'] = get_operator_name($operator);
$result['is_online'] = is_operator_online($operator['operatorid']);
if ($has_right) {
$result['showban'] = Settings::get('enableban') == "1";
$result['showstat'] = Settings::get('enablestatistics') == "1";