Mibew Messenger Community

General => Support => Topic started by: cpcbegin on April 07, 2016, 08:46:19 AM

Title: [solved] A page that show if one operator is connected or not
Post by: cpcbegin on April 07, 2016, 08:46:19 AM
I want to make a page that just shows 'on' if any operator is connected to Mibew or 'off' in the oposite case, which function I need use to get it?
Title: Re: A page that show if one operator is connected or not
Post by: cpcbegin on April 08, 2016, 12:57:18 PM
I find a solution: I make a file.php with this content:
Code: [Select]
<?php
require_once('/libs/init.php');

echo 
has_online_operators(false)?'online':'offline';

exit;
?>