Author Topic: [solved] A page that show if one operator is connected or not  (Read 5006 times)

0 Members and 1 Guest are viewing this topic.

cpcbegin

  • Jr. Member
  • **
  • Posts: 3
    • Malagueños originales y libres
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?
« Last Edit: April 08, 2016, 12:57:47 PM by cpcbegin »

cpcbegin

  • Jr. Member
  • **
  • Posts: 3
    • Malagueños originales y libres
Re: A page that show if one operator is connected or not
« Reply #1 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;
?>