mirror of
https://github.com/Mibew/mibew.git
synced 2025-04-25 15:56:07 +03:00
Make possible to determine whether an operator is online at any page of the administrative interface
Fixes #181
This commit is contained in:
parent
7041adcdfb
commit
ca169c5bc7
@ -690,6 +690,7 @@ function prepare_menu($operator, $has_right = true)
|
|||||||
$result = array();
|
$result = array();
|
||||||
|
|
||||||
$result['operator'] = get_operator_name($operator);
|
$result['operator'] = get_operator_name($operator);
|
||||||
|
$result['is_online'] = is_operator_online($operator['operatorid']);
|
||||||
if ($has_right) {
|
if ($has_right) {
|
||||||
$result['showban'] = Settings::get('enableban') == "1";
|
$result['showban'] = Settings::get('enableban') == "1";
|
||||||
$result['showstat'] = Settings::get('enablestatistics') == "1";
|
$result['showstat'] = Settings::get('enablestatistics') == "1";
|
||||||
|
Loading…
Reference in New Issue
Block a user