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/lib/SGL/Task/CleanOutputData.php
<?php

/**
 * Clean output data object before sending it to the client.
 *
 * @package Task
 */
class SGL_Task_CleanOutputData extends SGL_DecorateProcess
{
    static protected $_aExceptions = array(
        'aCssFiles', 'aHeaders', 'aJavascriptFiles', 'aRawJavascriptFiles',
        'scriptOpen', 'scriptClose',
        'aOnLoadEvents', 'aOnUnloadEvents', 'aOnReadyDomEvents',
        'onLoad', 'onReadyDom', 'onUnload', 'conf', '_aJsExportVars',
        'webRoot', 'currUrl', 'sessID', 'theme', 'imagesDir',
        'isMinimalInstall', 'showExecutionTimes'
    );

    /**
     * @param SGL_Registry $input
     * @param SGL_Output $output
     */
    public function process($input, $output)
    {
        $this->processRequest->process($input, $output);

        $aProps = array_keys(get_object_vars($output));
        $oData  = new stdClass();
        foreach ($aProps as $prop) {
            if (!in_array($prop, self::$_aExceptions)) {
                $oData->$prop = $output->$prop;
            }
            unset($output->$prop);
        }
        $output->data = $oData;
    }
}

?>