Ejemplo n.º 1
0
<?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 . ')';
Ejemplo n.º 2
0
 public function getConfig($key, $subkey = null)
 {
     return MODM_AjaxChat_Model_Chat::$_ajaxChatInterface->getConfig($key, $subkey);
 }