Exemplo n.º 1
0
 public static final function current($v50536bb7b5aa9e0965e3d4c4a421a74a = false)
 {
     showWorkTime("buffer current init", 2);
     $v4d293ef273d93a5411725a8223efc83e =& self::$buffers;
     showWorkTime("buffer current self done", 2);
     if (!$v50536bb7b5aa9e0965e3d4c4a421a74a) {
         if (self::$current) {
             $v50536bb7b5aa9e0965e3d4c4a421a74a = self::$current;
         } else {
             throw new coreException('No output buffer selected');
         }
     }
     showWorkTime("buffer not exists class", 2);
     self::$current = $v50536bb7b5aa9e0965e3d4c4a421a74a;
     showWorkTime("buffer self current initiated", 2);
     if (isset($v4d293ef273d93a5411725a8223efc83e[$v50536bb7b5aa9e0965e3d4c4a421a74a]) == false) {
         if (class_exists($v50536bb7b5aa9e0965e3d4c4a421a74a)) {
             $v7f2db423a49b305459147332fb01cf87 = new $v50536bb7b5aa9e0965e3d4c4a421a74a();
             showWorkTime("buffer new bufferClassName initiated", 2);
             if ($v7f2db423a49b305459147332fb01cf87 instanceof iOutputBuffer) {
                 $v4d293ef273d93a5411725a8223efc83e[$v50536bb7b5aa9e0965e3d4c4a421a74a] = $v7f2db423a49b305459147332fb01cf87;
                 showWorkTime("buffers array element initiated", 2);
             } else {
                 throw new coreException("Output buffer class \"{$v50536bb7b5aa9e0965e3d4c4a421a74a}\" must implement iOutputBuffer");
             }
         } else {
             throw new coreException("Output buffer of class \"{$v50536bb7b5aa9e0965e3d4c4a421a74a}\" not found");
         }
     }
     showWorkTime("buffer current end", 2);
     return $v4d293ef273d93a5411725a8223efc83e[$v50536bb7b5aa9e0965e3d4c4a421a74a];
 }
 public function __construct()
 {
     showWorkTime("buffer construct start", 2);
     parent::__construct();
     showWorkTime("buffer before session start", 2);
     if (!isset($_SESSION)) {
         session_start();
     }
     showWorkTime("buffer after session start", 2);
     $_SESSION['starttime'] = time();
     $this->checkHTTPAuth();
     showWorkTime("buffer construct end", 2);
 }
Exemplo n.º 3
0
 protected function __construct()
 {
     showWorkTime("umihierarchy construct start");
     $this->objects = umiObjectsCollection::getInstance();
     showWorkTime("umihierarchy umiObjectsCollection init");
     $this->langs = langsCollection::getInstance();
     showWorkTime("umihierarchy langsCollection init");
     $this->domains = domainsCollection::getInstance();
     showWorkTime("umihierarchy domainsCollection init");
     $this->templates = templatesCollection::getInstance();
     showWorkTime("umihierarchy templatesCollection init");
     if (regedit::getInstance()->getVal("//settings/disable_url_autocorrection")) {
         $this->autocorrectionDisabled = true;
     }
 }
Exemplo n.º 4
0
        $currentTemplater->setEnabledCallStack(!$config->get('debug', 'callstack.disabled'));
    }
    $templatesSource = $currentTemplater->getTemplatesSource();
    list($commonTemplate) = $currentTemplater->getTemplates($templatesSource, 'common');
    $globalVars = $cmsController->getGlobalVariables();
    if ($currentElementId = $cmsController->getCurrentElementId()) {
        $currentTemplater->setScope($currentElementId);
    }
    $result = $currentTemplater->parse($globalVars, $commonTemplate);
    if ($cmsController->getCurrentMode() != 'admin') {
        $result = $currentTemplater->cleanup($result);
    }
    $buffer->push($result);
    // flush streams calls
    if (!is_null(getRequest('showStreamsCalls'))) {
        $buffer->contentType('text/xml');
        $buffer->clear();
        $buffer->push($currentTemplater->getCallStackXML());
        $buffer->end();
    }
}
showWorkTime("stream parsed");
if ($cmsController->getCurrentMode() != 'admin' && regedit::getInstance()->getVal("//modules/stat/collect") && ($statistics = $cmsController->getModule('stat'))) {
    $statistics->pushStat();
}
showWorkTime("stat pushed");
if ($staticCache instanceof staticCache) {
    $staticCache->save($buffer->content());
}
showWorkTime("static cache saved");
$buffer->end();
Exemplo n.º 5
0
 public function loadLangs()
 {
     showWorkTime("loadLangs started");
     $v0eb9b3af2e4a00837a1b1a854c9ea18c = regedit::getInstance()->getList("//modules");
     showWorkTime("loadLangs getList");
     foreach ($v0eb9b3af2e4a00837a1b1a854c9ea18c as $v22884db148f0ffb0d830ba431102b0b5) {
         $v854203cccade0bbe21be239a208aea49 = $v22884db148f0ffb0d830ba431102b0b5[0];
         $v9a4a6f6ee974a928a90c9152a674b141 = CURRENT_WORKING_DIR . '/classes/modules/' . $v854203cccade0bbe21be239a208aea49 . '/';
         $v9a4a6f6ee974a928a90c9152a674b141 .= "lang.php";
         if (file_exists($v9a4a6f6ee974a928a90c9152a674b141)) {
             require $v9a4a6f6ee974a928a90c9152a674b141;
         }
         if (isset($C_LANG)) {
             if (is_array($C_LANG)) {
                 $this->langs[$v854203cccade0bbe21be239a208aea49] = $C_LANG;
                 unset($C_LANG);
             }
         }
         if (isset($LANG_EXPORT)) {
             if (is_array($LANG_EXPORT)) {
                 $this->langs = array_merge($this->langs, $LANG_EXPORT);
                 unset($LANG_EXPORT);
             }
         }
         $v9a4a6f6ee974a928a90c9152a674b141 = CURRENT_WORKING_DIR . '/classes/modules/' . $v854203cccade0bbe21be239a208aea49 . '/';
         $v9a4a6f6ee974a928a90c9152a674b141 .= "lang." . $this->getCurrentLang()->getPrefix() . ".php";
         if (file_exists($v9a4a6f6ee974a928a90c9152a674b141)) {
             require $v9a4a6f6ee974a928a90c9152a674b141;
             if (isset($C_LANG) && is_array($C_LANG)) {
                 $this->langs[$v854203cccade0bbe21be239a208aea49] = $C_LANG;
                 unset($C_LANG);
             }
             if (isset($LANG_EXPORT) && is_array($LANG_EXPORT)) {
                 $this->langs = array_merge($this->langs, $LANG_EXPORT);
                 unset($LANG_EXPORT);
             }
         }
         showWorkTime("loadLangs " . $v854203cccade0bbe21be239a208aea49 . " loaded", 1);
     }
     $vdcb02837c3430cb5b0b73a05d1d40c8e = CURRENT_WORKING_DIR . "/classes/modules/lang." . $this->getLang()->getPrefix() . ".php";
     if (!file_exists($vdcb02837c3430cb5b0b73a05d1d40c8e)) {
         $vdcb02837c3430cb5b0b73a05d1d40c8e = CURRENT_WORKING_DIR . "/classes/modules/lang.php";
     }
     include_once $vdcb02837c3430cb5b0b73a05d1d40c8e;
     if (isset($LANG_EXPORT)) {
         $this->langs = array_merge($this->langs, $LANG_EXPORT);
         unset($LANG_EXPORT);
     }
 }
Exemplo n.º 6
0
function umiAutoload($v6f66e878c62db60568a3487869695820)
{
    showWorkTime("umiAutoload " . $v6f66e878c62db60568a3487869695820 . " start", 2);
    global $vbb2b21ef7774df8687ff02b0284505c6;
    if ($v6f66e878c62db60568a3487869695820 == "XSLTProcessor" && !class_exists("XSLTProcessor")) {
        xslt_fatal();
    }
    if (defined('INTERRUPT_DEPRECATED_CALL') && INTERRUPT_DEPRECATED_CALL) {
        $v04acbbf097cd951f88078cfa9f755ffc = array('umiSelection', 'umiSelectionsParser');
        if (in_array($v6f66e878c62db60568a3487869695820, $v04acbbf097cd951f88078cfa9f755ffc)) {
            $ve1671797c52e15f763380b45e841ec32 = new coreException("Deprecated class \"{$v6f66e878c62db60568a3487869695820}\" called");
            traceException($ve1671797c52e15f763380b45e841ec32);
        }
    }
    if (isset($vbb2b21ef7774df8687ff02b0284505c6[$v6f66e878c62db60568a3487869695820])) {
        $v45b963397aa40d4a0063e0d85e4fe7a1 = $vbb2b21ef7774df8687ff02b0284505c6[$v6f66e878c62db60568a3487869695820];
        if (is_array($v45b963397aa40d4a0063e0d85e4fe7a1)) {
            foreach ($v45b963397aa40d4a0063e0d85e4fe7a1 as $v47826cacc65c665212b821e6ff80b9b0) {
                require_once $v47826cacc65c665212b821e6ff80b9b0;
                showWorkTime("umiAutoload " . basename($v47826cacc65c665212b821e6ff80b9b0) . " required", 2);
            }
        }
    }
    showWorkTime("umiAutoload " . $v6f66e878c62db60568a3487869695820 . " end", 2);
}
Exemplo n.º 7
0
function system_get_tpl($v15d61712450a686a7f365adf4fef581f = 'default')
{
    $v2245023265ae4cf87d02c8b6ba991139 = mainConfiguration::getInstance();
    showWorkTime("system mainconfig init");
    $v594c103f2c6e04c3d8ab059f031e0c1a = cmsController::getInstance();
    showWorkTime("system cmscontroller init");
    $v74c17e3010c33af858d215cfc3552b04 = '';
    $v5b063e275d506f65ebf1b02d926f19a4 = '';
    $v47826cacc65c665212b821e6ff80b9b0 = '';
    if ($v594c103f2c6e04c3d8ab059f031e0c1a->getCurrentMode() == 'admin' && $v15d61712450a686a7f365adf4fef581f == 'current') {
        $v599dcce2998a6b40b1e38e8c6006cb0a = 'xslt';
        $v6f66e878c62db60568a3487869695820 = 'xslAdminTemplater';
        $v5b063e275d506f65ebf1b02d926f19a4 = 'main.xsl';
        $v74c17e3010c33af858d215cfc3552b04 = $v2245023265ae4cf87d02c8b6ba991139->includeParam('templates.skins', array('skin' => system_get_skinName()));
        $v41275a535677f79ff347e01bc530c176 = permissionsCollection::getInstance();
        $v8e44f0089b076e18a718eb9ca3d94674 = $v41275a535677f79ff347e01bc530c176->getUserId();
        $vca02d1555c813b1b1ad637654c0fe111 = $v41275a535677f79ff347e01bc530c176->isAllowedMethod($v8e44f0089b076e18a718eb9ca3d94674, $v594c103f2c6e04c3d8ab059f031e0c1a->getCurrentModule(), $v594c103f2c6e04c3d8ab059f031e0c1a->getCurrentMethod());
        if ((!$v41275a535677f79ff347e01bc530c176->isAdmin() || !$vca02d1555c813b1b1ad637654c0fe111) && file_exists($v74c17e3010c33af858d215cfc3552b04 . 'main_login.xsl')) {
            if ($v41275a535677f79ff347e01bc530c176->isAuth()) {
                $v90f805bfcba6ab75df4ad6da8e6afd9b = "owner_id = {$v8e44f0089b076e18a718eb9ca3d94674}";
                $v8e59688c095c0b0bad04d8476df25db3 = umiObjectsCollection::getInstance()->getObject($v8e44f0089b076e18a718eb9ca3d94674)->getValue('groups');
                foreach ($v8e59688c095c0b0bad04d8476df25db3 as $vf2f5fbe4a9d4cc9a39e7a62a513580e9) {
                    $v90f805bfcba6ab75df4ad6da8e6afd9b .= " or owner_id = {$vf2f5fbe4a9d4cc9a39e7a62a513580e9}";
                }
                $vac5c74b64b4b8352ef2f181affb5ac2a = "SELECT `module` FROM cms_permissions WHERE (" . $v90f805bfcba6ab75df4ad6da8e6afd9b . ") and (method = '' or method is null)";
                $result = l_mysql_query($vac5c74b64b4b8352ef2f181affb5ac2a);
                if (mysql_num_rows($result) !== 0) {
                    $vb1444fb0c07653567ad325aa25d4e37a = regedit::getInstance();
                    while ($vf1965a857bc285d26fe22023aa5ab50d = mysql_fetch_array($result)) {
                        $v22884db148f0ffb0d830ba431102b0b5 = $vf1965a857bc285d26fe22023aa5ab50d[0];
                        $vea9f6aca279138c58f705c8d4cb4b8ce = $vb1444fb0c07653567ad325aa25d4e37a->getVal("//modules/{$v22884db148f0ffb0d830ba431102b0b5}/default_method_admin");
                        if ($v41275a535677f79ff347e01bc530c176->isAllowedMethod($v8e44f0089b076e18a718eb9ca3d94674, $v22884db148f0ffb0d830ba431102b0b5, $vea9f6aca279138c58f705c8d4cb4b8ce)) {
                            def_module::redirect('http://' . $v594c103f2c6e04c3d8ab059f031e0c1a->getCurrentDomain()->getHost() . '/admin/' . $v22884db148f0ffb0d830ba431102b0b5 . '/' . $vea9f6aca279138c58f705c8d4cb4b8ce);
                            break;
                        }
                    }
                }
            }
            $v5b063e275d506f65ebf1b02d926f19a4 = 'main_login.xsl';
        }
        $v47826cacc65c665212b821e6ff80b9b0 = $v74c17e3010c33af858d215cfc3552b04 . $v5b063e275d506f65ebf1b02d926f19a4;
    } else {
        $v4091345e6f9742cda418c2e209b8a18c = templatesCollection::getInstance();
        $v4f2afc9c4099ee1f39c9f551123e54bd = false;
        if ($v74f5356453a69e438e0f58ef93103cc0 = getRequest('template_id')) {
            $v4f2afc9c4099ee1f39c9f551123e54bd = $v4091345e6f9742cda418c2e209b8a18c->getTemplate($v74f5356453a69e438e0f58ef93103cc0);
        }
        if (!$v4f2afc9c4099ee1f39c9f551123e54bd instanceof template) {
            $v4f2afc9c4099ee1f39c9f551123e54bd = $v15d61712450a686a7f365adf4fef581f == 'current' ? $v4091345e6f9742cda418c2e209b8a18c->getCurrentTemplate() : $v4091345e6f9742cda418c2e209b8a18c->getDefaultTemplate();
        }
        if ($v4f2afc9c4099ee1f39c9f551123e54bd instanceof template) {
            $v5b063e275d506f65ebf1b02d926f19a4 = $v4f2afc9c4099ee1f39c9f551123e54bd->getFilename();
            $v918d83c715c19dd93ff49f87e2fae0b3 = $v4f2afc9c4099ee1f39c9f551123e54bd->getName();
            $v599dcce2998a6b40b1e38e8c6006cb0a = $v4f2afc9c4099ee1f39c9f551123e54bd->getType();
            if (!$v599dcce2998a6b40b1e38e8c6006cb0a) {
                switch (array_pop(explode('.', $v5b063e275d506f65ebf1b02d926f19a4))) {
                    case "xsl":
                        $v599dcce2998a6b40b1e38e8c6006cb0a = 'xslt';
                        break;
                    case "tpl":
                        $v599dcce2998a6b40b1e38e8c6006cb0a = 'tpls';
                        break;
                }
            }
            $v0e2d056dfa17731ff69524908f6ad7df = CURRENT_WORKING_DIR . '/templates/' . $v918d83c715c19dd93ff49f87e2fae0b3 . '/' . $v599dcce2998a6b40b1e38e8c6006cb0a . '/';
            switch ($v599dcce2998a6b40b1e38e8c6006cb0a) {
                case "xslt":
                    $v74c17e3010c33af858d215cfc3552b04 = file_exists($v0e2d056dfa17731ff69524908f6ad7df . $v5b063e275d506f65ebf1b02d926f19a4) ? $v0e2d056dfa17731ff69524908f6ad7df : $v2245023265ae4cf87d02c8b6ba991139->includeParam('templates.xsl');
                    $v6f66e878c62db60568a3487869695820 = 'xslTemplater';
                    break;
                case "tpls":
                    $v74c17e3010c33af858d215cfc3552b04 = file_exists($v0e2d056dfa17731ff69524908f6ad7df . 'content/' . $v5b063e275d506f65ebf1b02d926f19a4) ? $v0e2d056dfa17731ff69524908f6ad7df : $v2245023265ae4cf87d02c8b6ba991139->includeParam('templates.tpl');
                    $v6f66e878c62db60568a3487869695820 = 'tplTemplater';
                    break;
                default:
                    $v74c17e3010c33af858d215cfc3552b04 = file_exists($v0e2d056dfa17731ff69524908f6ad7df . $v5b063e275d506f65ebf1b02d926f19a4) ? $v0e2d056dfa17731ff69524908f6ad7df : '';
                    $v6f66e878c62db60568a3487869695820 = file_exists(dirname(__FILE__) . '/' . $v599dcce2998a6b40b1e38e8c6006cb0a . '/' . $v599dcce2998a6b40b1e38e8c6006cb0a . 'Templater.php') ? $v599dcce2998a6b40b1e38e8c6006cb0a . 'Templater' : '';
            }
            if ($v15d61712450a686a7f365adf4fef581f == 'streams') {
                $v6f66e878c62db60568a3487869695820 = 'xslTemplater';
                $v599dcce2998a6b40b1e38e8c6006cb0a = 'xslt';
                $v74c17e3010c33af858d215cfc3552b04 = $v2245023265ae4cf87d02c8b6ba991139->includeParam('templates.xsl');
                $v5b063e275d506f65ebf1b02d926f19a4 = 'sample.xsl';
            }
            if (system_is_mobile() && file_exists($v74c17e3010c33af858d215cfc3552b04 . 'mobile/' . $v5b063e275d506f65ebf1b02d926f19a4)) {
                $v74c17e3010c33af858d215cfc3552b04 = $v74c17e3010c33af858d215cfc3552b04 . 'mobile/';
            }
            $v47826cacc65c665212b821e6ff80b9b0 = $v74c17e3010c33af858d215cfc3552b04 . ($v599dcce2998a6b40b1e38e8c6006cb0a == 'tpls' ? 'content/' : '') . $v5b063e275d506f65ebf1b02d926f19a4;
        } else {
            if ($v15d61712450a686a7f365adf4fef581f == 'default' || $v15d61712450a686a7f365adf4fef581f == 'streams') {
                $v6f66e878c62db60568a3487869695820 = 'xslTemplater';
                $v599dcce2998a6b40b1e38e8c6006cb0a = 'xslt';
                $v74c17e3010c33af858d215cfc3552b04 = $v2245023265ae4cf87d02c8b6ba991139->includeParam('templates.xsl');
                $v47826cacc65c665212b821e6ff80b9b0 = $v2245023265ae4cf87d02c8b6ba991139->includeParam('templates.xsl') . 'sample.xsl';
            } else {
                $v7f2db423a49b305459147332fb01cf87 = outputBuffer::current();
                $v7f2db423a49b305459147332fb01cf87->clear();
                $v7f2db423a49b305459147332fb01cf87->push(file_get_contents(SYS_ERRORS_PATH . 'no_design_template.html'));
                $v7f2db423a49b305459147332fb01cf87->end();
            }
        }
    }
    $v21ffce5b8a6cc8cc6a41448dd69623c9 = array('class_name' => $v6f66e878c62db60568a3487869695820, 'type' => $v599dcce2998a6b40b1e38e8c6006cb0a, 'dir_path' => $v74c17e3010c33af858d215cfc3552b04, 'file_path' => $v47826cacc65c665212b821e6ff80b9b0);
    return $v21ffce5b8a6cc8cc6a41448dd69623c9;
}