General > Support

[solved] A page that show if one operator is connected or not

(1/1)

cpcbegin:
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?

cpcbegin:
I find a solution: I make a file.php with this content:

--- Code: ---<?php
require_once('/libs/init.php');

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

exit;
?>
--- End code ---

Navigation

[0] Message Index

Go to full version