HEX
Server: Apache
System: Linux sg241.singhost.net 2.6.32-896.16.1.lve1.4.51.el6.x86_64 #1 SMP Wed Jan 17 13:19:23 EST 2018 x86_64
User: honghock (909)
PHP: 8.0.30
Disabled: passthru,system,shell_exec,show_source,exec,popen,proc_open
Upload Files
File: //opt/cpanel/ea-php56/root/usr/share/pear/RVSeagullMod/modules/user/blocks/OnlineUsers.php
<?php

class User_Block_OnlineUsers
{
    var $template     = 'OnlineUsers.html';
    var $templatePath = 'user';

    function init(&$output, $block_id)
    {
        return $this->getBlockContent($output);
    }

    function getBlockContent(&$output)
    {
        $blockOutput = new SGL_Output();

        // prepare content
        $blockOutput->guests  = SGL_Session::getGuestSessionCount();
        $blockOutput->members = SGL_Session::getMemberSessionCount();
        $blockOutput->total   = $blockOutput->members + $blockOutput->guests;

        // set theme name
        $blockOutput->theme   = $output->theme;

        return $this->process($blockOutput);
    }

    function process(&$output)
    {
        // use moduleName for template path setting
        $output->moduleName     = $this->templatePath;
        $output->masterTemplate = $this->template;

        $view = new SGL_HtmlSimpleView($output);
        return $view->render();
    }
}
?>