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-php54/root/usr/share/pear/RVSeagullMod/modules/faqweb/www/FaqwebComponentOutput.php
<?php
class FaqwebComponentOutput
{
    function showSearchBox($view = null)
    {
        $view = ($view) ? $view : new SGL_Output();
        $masterTemplate = 'searchBox.tpl';
        $flexy = new HTML_Template_Flexy(array('templateDir' => $view->componenThemePath));
        $ok = $flexy->compile($masterTemplate);
        $elements = (   isset($this->flexyElements) && is_array($this->flexyElements)) ? $this->flexyElements
            : array();
        $data = $flexy->bufferedOutputObject($view, $elements);
        echo $data;
    }
    
    function makeShorterText($thema = '', $lang='') {
        echo PMF_Utils::makeShorterText(PMF_htmlentities($thema, ENT_QUOTES, $lang), 8);
    }
    
    /**
     * //__CLASS__ = FaqwebComponentOutput
        //__FILE__ = {PUBLISH_PATH}/faqweb/FaqwebComponentOutput.php
     * 
     * @param $view
     * @return unknown_type
     */
    function includeSubTemplate($view = null)
    {
        $view = ($view) ? $view : new SGL_Output();
        $masterTemplate = $view->IncluudeTemplate;
        $options = array(
            'templateDir' => $view->componenThemePath,
            'plugins' => array(
                __CLASS__ => __FILE__,
            ),
        );
        $flexy = new HTML_Template_Flexy($options);
        $ok = $flexy->compile($masterTemplate);
        $elements = (   isset($this->flexyElements) && is_array($this->flexyElements)) ? $this->flexyElements
            : array();
        $data = $flexy->bufferedOutputObject($view, $elements);
        echo $data;
    }
}   
?>