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


PHP def_module::requireSlashEnding方法代码示例

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


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

示例1: analyzePath

 public function analyzePath($v86266ee937d97f812a8e57d22b62ee29 = false)
 {
     showWorkTime("analyzePath started");
     $vd6fe1d0be6347b8ef2427fa629c04485 = getRequest('path');
     $vd6fe1d0be6347b8ef2427fa629c04485 = trim($vd6fe1d0be6347b8ef2427fa629c04485, "/");
     if (!is_null(getRequest('scheme'))) {
         if (preg_replace("/[^\\w]/im", "", getRequest('scheme')) == 'upage') {
             preg_match_all("/[\\d]+/", $vd6fe1d0be6347b8ef2427fa629c04485, $v7057e8409c7c531a1a6e9ac3df4ed549);
             $this->current_element_id = $v7057e8409c7c531a1a6e9ac3df4ed549[0][0];
         }
         return;
     }
     showWorkTime("analyzePath something");
     $vb1444fb0c07653567ad325aa25d4e37a = regedit::getInstance();
     showWorkTime("analyzePath regedit init");
     $vb81ca7c0ccaa77e7aa91936ab0070695 = umiHierarchy::getInstance();
     showWorkTime("analyzePath umiHierarchy init");
     $v2245023265ae4cf87d02c8b6ba991139 = mainConfiguration::getInstance();
     showWorkTime("analyzePath mainConfiguration init");
     $v7f2db423a49b305459147332fb01cf87 = outputBuffer::current();
     showWorkTime("analyzePath outputBuffer init");
     if ($v86266ee937d97f812a8e57d22b62ee29 === true) {
         $this->reset();
     }
     $v5f44c555cfb3ecb28f624fa95617f277 = $v2245023265ae4cf87d02c8b6ba991139->get('seo', 'url-suffix');
     $v5e0bdcbddccca4d66d74ba8c1cee1a68 = strrpos($vd6fe1d0be6347b8ef2427fa629c04485, $v5f44c555cfb3ecb28f624fa95617f277);
     if ($v5e0bdcbddccca4d66d74ba8c1cee1a68 && $v5e0bdcbddccca4d66d74ba8c1cee1a68 + strlen($v5f44c555cfb3ecb28f624fa95617f277) == strlen($vd6fe1d0be6347b8ef2427fa629c04485)) {
         $vd6fe1d0be6347b8ef2427fa629c04485 = substr($vd6fe1d0be6347b8ef2427fa629c04485, 0, $v5e0bdcbddccca4d66d74ba8c1cee1a68);
     }
     if ($v2245023265ae4cf87d02c8b6ba991139->get('seo', 'url-suffix.add')) {
         def_module::requireSlashEnding();
     }
     if ($v2245023265ae4cf87d02c8b6ba991139->get('seo', 'watch-redirects-history')) {
         redirects::getInstance()->init();
     }
     $v32660e7b27600e0fde6ff1333c6c0568 = $this->getPathArray();
     $v7dabf5c198b0bab2eaa42bb03a113e55 = sizeof($v32660e7b27600e0fde6ff1333c6c0568);
     $vaddb1838ab68ee501d3a0e2868a127c9 = array();
     $v83878c91171338902e0fe0fb97a8c47a = 0;
     for ($v865c0c0b4ab0e063e5caa3387c1a8741 = 0; $v865c0c0b4ab0e063e5caa3387c1a8741 < $v7dabf5c198b0bab2eaa42bb03a113e55; $v865c0c0b4ab0e063e5caa3387c1a8741++) {
         $vb31590b98760b74e7c4e1a809e43152d = $v32660e7b27600e0fde6ff1333c6c0568[$v865c0c0b4ab0e063e5caa3387c1a8741];
         if ($v865c0c0b4ab0e063e5caa3387c1a8741 <= 1) {
             if ($vb31590b98760b74e7c4e1a809e43152d == $this->current_mode || $vb31590b98760b74e7c4e1a809e43152d == $this->current_lang->getPrefix()) {
                 continue;
             }
         }
         $vaddb1838ab68ee501d3a0e2868a127c9[] = $vb31590b98760b74e7c4e1a809e43152d;
         $vbdcb4bec1c234b49e0a70911cf33ff6f = $this->getSubPathType($vb31590b98760b74e7c4e1a809e43152d);
         if ($vbdcb4bec1c234b49e0a70911cf33ff6f == "PARAM") {
             $_REQUEST['param' . $v83878c91171338902e0fe0fb97a8c47a++] = $vb31590b98760b74e7c4e1a809e43152d;
         }
     }
     if (!$this->current_module) {
         if ($this->current_mode == "admin") {
             if ($v854203cccade0bbe21be239a208aea49 = $vb1444fb0c07653567ad325aa25d4e37a->getVal("//modules/events")) {
             } else {
                 $v854203cccade0bbe21be239a208aea49 = $vb1444fb0c07653567ad325aa25d4e37a->getVal("//settings/default_module_admin");
             }
             $this->autoRedirectToMethod($v854203cccade0bbe21be239a208aea49);
         } else {
             $v854203cccade0bbe21be239a208aea49 = $vb1444fb0c07653567ad325aa25d4e37a->getVal("//settings/default_module");
         }
         $this->setCurrentModule($v854203cccade0bbe21be239a208aea49);
     }
     if (!$this->current_method) {
         if ($this->current_mode == "admin") {
             return $this->autoRedirectToMethod($this->current_module);
         } else {
             $v2fa70149e2a7e75da2b0303d0a36a944 = $vb1444fb0c07653567ad325aa25d4e37a->getVal("//modules/" . $this->current_module . "/default_method");
         }
         $this->setCurrentMethod($v2fa70149e2a7e75da2b0303d0a36a944);
     }
     if ($this->getCurrentMode() == "admin") {
         return;
     }
     $v7057e8409c7c531a1a6e9ac3df4ed549 = false;
     $v7dabf5c198b0bab2eaa42bb03a113e55 = sizeof($vaddb1838ab68ee501d3a0e2868a127c9);
     $vb31590b98760b74e7c4e1a809e43152d = "";
     for ($v865c0c0b4ab0e063e5caa3387c1a8741 = 0; $v865c0c0b4ab0e063e5caa3387c1a8741 < $v7dabf5c198b0bab2eaa42bb03a113e55; $v865c0c0b4ab0e063e5caa3387c1a8741++) {
         $vb31590b98760b74e7c4e1a809e43152d .= "/" . $vaddb1838ab68ee501d3a0e2868a127c9[$v865c0c0b4ab0e063e5caa3387c1a8741];
         if (!($vfa816edb83e95bf0c8da580bdfd491ef = $vb81ca7c0ccaa77e7aa91936ab0070695->getIdByPath($vb31590b98760b74e7c4e1a809e43152d, false, $v3dbd53d892aaea70c9f5fefc18fc7e4c))) {
             $v7057e8409c7c531a1a6e9ac3df4ed549 = false;
             break;
         } else {
             $v7057e8409c7c531a1a6e9ac3df4ed549 = $vfa816edb83e95bf0c8da580bdfd491ef;
         }
     }
     if ($v7057e8409c7c531a1a6e9ac3df4ed549) {
         if ($v3dbd53d892aaea70c9f5fefc18fc7e4c > 0 && !defined("DISABLE_AUTOCORRECTION_REDIRECT")) {
             $vd6fe1d0be6347b8ef2427fa629c04485 = $vb81ca7c0ccaa77e7aa91936ab0070695->getPathById($v7057e8409c7c531a1a6e9ac3df4ed549);
             if ($v865c0c0b4ab0e063e5caa3387c1a8741 == 0) {
                 if ($this->isModule($vaddb1838ab68ee501d3a0e2868a127c9[0])) {
                     $v7057e8409c7c531a1a6e9ac3df4ed549 = false;
                     break;
                 }
             }
             $v7f2db423a49b305459147332fb01cf87->status('301 Moved Permanently');
             $v7f2db423a49b305459147332fb01cf87->redirect($vd6fe1d0be6347b8ef2427fa629c04485);
         }
         $v8e2dcfd7e7e24b1ca76c1193f645902b = $vb81ca7c0ccaa77e7aa91936ab0070695->getElement($v7057e8409c7c531a1a6e9ac3df4ed549);
//.........这里部分代码省略.........
开发者ID:BGCX261,项目名称:zimmerli-svn-to-git,代码行数:101,代码来源:cmsController.php


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