function f_whosonline() { global $CONF_FORUM, $_CONF, $_TABLES, $LANG_GF02; $onlineusers = phpblock_whosonline(); $forum_users = COM_newTemplate($CONF_FORUM['path_layout'] . 'forum/layout/footer'); $forum_users->set_file(array('forum_users' => 'forum_users.thtml')); $forum_users->set_var('LANG_msg07', $LANG_GF02['msg07']); $forum_users->set_var('imgset', $CONF_FORUM['imgset']); $forum_users->set_var('onlineusers', $onlineusers); $forum_users->parse('output', 'forum_users'); return $forum_users->finish($forum_users->get_var('output')); }
function f_whosonline() { global $_FF_CONF, $_CONF, $_TABLES, $LANG_GF02; $onlineusers = phpblock_whosonline(); $forum_users = new Template($_CONF['path'] . 'plugins/forum/templates/footer/'); $forum_users->set_file(array('forum_users' => 'forum_users.thtml')); $forum_users->set_var('LANG_msg07', $LANG_GF02['msg07']); $forum_users->set_var('onlineusers', $onlineusers); $forum_users->parse('output', 'forum_users'); return $forum_users->finish($forum_users->get_var('output')); }