当前位置: 首页>>代码示例>>PHP>>正文


PHP def_module::redirect方法代码示例

本文整理汇总了PHP中def_module::redirect方法的典型用法代码示例。如果您正苦于以下问题:PHP def_module::redirect方法的具体用法?PHP def_module::redirect怎么用?PHP def_module::redirect使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在def_module的用法示例。


在下文中一共展示了def_module::redirect方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: setMobileMode

 /**
  * Устанавливает режим отображения сайта
  * @internal
  *
  * @param bool $isMobile Режим
  */
 public function setMobileMode($isMobile = null)
 {
     if (is_null($isMobile)) {
         $isMobile = getRequest('param0');
     }
     if ($isMobile == 1) {
         setcookie("is_mobile", "1", null, "/");
     } elseif ($isMobile == 0) {
         setcookie("is_mobile", "0", null, "/");
     }
     parent::redirect(getServer('HTTP_REFERER'));
 }
开发者ID:tomoonshine,项目名称:postsms,代码行数:18,代码来源:class+из+content.php

示例2: system_get_tpl

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();
            }
//.........这里部分代码省略.........
开发者ID:BGCX261,项目名称:zimmerli-svn-to-git,代码行数:101,代码来源:system.php

示例3: getSubPathType

 private function getSubPathType($vb31590b98760b74e7c4e1a809e43152d)
 {
     $vb1444fb0c07653567ad325aa25d4e37a = regedit::getInstance();
     if (!$this->current_module) {
         if ($vb31590b98760b74e7c4e1a809e43152d == "trash") {
             def_module::redirect($this->pre_lang . "/admin/data/trash/");
         }
         if ($vb1444fb0c07653567ad325aa25d4e37a->getVal("//modules/" . $vb31590b98760b74e7c4e1a809e43152d)) {
             $this->setCurrentModule($vb31590b98760b74e7c4e1a809e43152d);
             return "MODULE";
         }
     }
     if ($this->current_module && !$this->current_method) {
         $this->setCurrentMethod($vb31590b98760b74e7c4e1a809e43152d);
         return "METHOD";
     }
     if ($this->current_module && $this->current_method) {
         return "PARAM";
     }
     return "UNKNOWN";
 }
开发者ID:BGCX261,项目名称:zimmerli-svn-to-git,代码行数:21,代码来源:cmsController.php

示例4: redirect

 public function redirect($url = "")
 {
     if (is_numeric($url)) {
         $url = $this->get_page_url($url);
     }
     parent::redirect($url);
 }
开发者ID:BGCX261,项目名称:zimmerli-svn-to-git,代码行数:7,代码来源:class.php


注:本文中的def_module::redirect方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。