<?php $incPath = dirname(dirname(__FILE__)) . '/'; if (!defined('AJAX_CHAT_PATH')) { define('AJAX_CHAT_PATH', dirname($incPath . '/chat/index.php') . '/'); } require_once $incPath . 'constants.php'; require_once $incPath . 'config_inc.php'; require_once $incPath . 'thirdparty/gettext.inc'; require_once $incPath . 'utils.php'; require_once $incPath . 'chat/lib/classes.php'; $count = 0; $ajaxChat = new CustomAJAXChatInterface(); $ajaxChat->removeInactive(); $users = $ajaxChat->getOnlineUsers(); if ($users) { $count = count($users); } print T_('Chat') . ' (' . $count . ')';
public function getOnlineUsers($channels) { return MODM_AJAXChat_Model_Chat::$_ajaxChatInterface->getOnlineUsers($channels); }