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/cloudlinux/alt-php54/root/usr/share/pear/RVSeagullMod/lib/SGL/Request/Ajax.php
<?php

class SGL_Request_Ajax extends SGL_Request
{
    public function init()
    {
        //  get config singleton
        $c = SGL_Config::singleton();
        $conf = $c->getAll();

        //  resolve value for $_SERVER['PHP_SELF'] based in host
        SGL_URL::resolveServerVars();

        //  get current url object
        $cache = SGL_Cache::singleton();
        $cacheId = md5($_SERVER['PHP_SELF']);

        if ($data = $cache->get($cacheId, 'uri')) {
            $url = unserialize($data);
            $ok = $c->ensureModuleConfigLoaded($url->getModuleName());
            SGL::logMessage('URI from cache', PEAR_LOG_DEBUG);
        } else {
            require_once SGL_CORE_DIR . '/UrlParser/ClassicStrategy.php';
            if (!class_exists('SGL_UrlParser_SefStrategy')) {
                require_once SGL_CORE_DIR . '/UrlParser/SefStrategy.php';
            }

            $aStrats = array(
                new SGL_UrlParser_ClassicStrategy(),
                new SGL_UrlParser_SefStrategy(),
                );
            $url = new SGL_URL($_SERVER['PHP_SELF'], true, $aStrats);

            $err = $url->init();
            if (SGL::isError($err)) {
                return $err;
            }
            $data = serialize($url);
            $cache->save($data, $cacheId, 'uri');
            SGL::logMessage('URI parsed ####' . $_SERVER['PHP_SELF'] . '####', PEAR_LOG_DEBUG);
        }
        $aQueryData = $url->getQueryData();

        if (SGL::isError($aQueryData)) {
            return $aQueryData;
        }
        //  assign to registry
        $input = SGL_Registry::singleton();
        $input->setCurrentUrl($url);

        //  merge REQUEST AND FILES superglobal arrays
        $this->aProps = array_merge($_GET, $aQueryData, $_POST);
        $this->type = SGL_REQUEST_AJAX;
        return true;
    }
}
?>