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


PHP Bootstrap::checkLockedBackendAndRedirectOrDie方法代码示例

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


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

示例1: handleRequest

 /**
  * Handles any backend request
  *
  * @return void
  */
 public function handleRequest()
 {
     // Evaluate the constant for skipping the BE user check for the bootstrap
     if (defined('TYPO3_PROCEED_IF_NO_USER') && TYPO3_PROCEED_IF_NO_USER) {
         $proceedIfNoUserIsLoggedIn = TRUE;
     } else {
         $proceedIfNoUserIsLoggedIn = FALSE;
     }
     $this->bootstrap->checkLockedBackendAndRedirectOrDie()->checkBackendIpOrDie()->checkSslBackendAndRedirectIfNeeded()->checkValidBrowserOrDie()->loadExtensionTables(TRUE)->initializeSpriteManager()->initializeBackendUser()->initializeBackendAuthentication($proceedIfNoUserIsLoggedIn)->initializeLanguageObject()->initializeBackendTemplate()->endOutputBufferingAndCleanPreviousOutput()->initializeOutputCompression()->sendHttpHeaders();
 }
开发者ID:adrolli,项目名称:TYPO3.CMS,代码行数:15,代码来源:RequestHandler.php

示例2: handleRequest

 /**
  * Handles any backend request
  *
  * @param \Psr\Http\Message\ServerRequestInterface $request
  * @return NULL|\Psr\Http\Message\ResponseInterface
  */
 public function handleRequest(\Psr\Http\Message\ServerRequestInterface $request)
 {
     // enable dispatching via Request/Response logic only for typo3/index.php currently
     $path = substr($request->getUri()->getPath(), strlen(GeneralUtility::getIndpEnv('TYPO3_SITE_PATH')));
     $routingEnabled = $path === TYPO3_mainDir . 'index.php' || $path === TYPO3_mainDir;
     // Evaluate the constant for skipping the BE user check for the bootstrap
     if (defined('TYPO3_PROCEED_IF_NO_USER') && TYPO3_PROCEED_IF_NO_USER) {
         $proceedIfNoUserIsLoggedIn = TRUE;
     } else {
         $proceedIfNoUserIsLoggedIn = FALSE;
     }
     $this->bootstrap->checkLockedBackendAndRedirectOrDie()->checkBackendIpOrDie()->checkSslBackendAndRedirectIfNeeded()->checkValidBrowserOrDie()->loadExtensionTables(TRUE)->initializeSpriteManager()->initializeBackendUser()->initializeBackendAuthentication($proceedIfNoUserIsLoggedIn)->initializeLanguageObject()->initializeBackendTemplate()->endOutputBufferingAndCleanPreviousOutput()->initializeOutputCompression()->sendHttpHeaders();
     if ($routingEnabled) {
         return $this->dispatch($request);
     }
     return NULL;
 }
开发者ID:plan2net,项目名称:TYPO3.CMS,代码行数:23,代码来源:RequestHandler.php

示例3: boot

 /**
  * Execute TYPO3 bootstrap
  *
  * @return void
  */
 protected function boot()
 {
     // Evaluate the constant for skipping the BE user check for the bootstrap, will be done without the constant at a later point
     if (defined('TYPO3_PROCEED_IF_NO_USER') && TYPO3_PROCEED_IF_NO_USER) {
         $proceedIfNoUserIsLoggedIn = true;
     } else {
         $proceedIfNoUserIsLoggedIn = false;
     }
     $this->bootstrap->checkLockedBackendAndRedirectOrDie()->checkBackendIpOrDie()->checkSslBackendAndRedirectIfNeeded()->initializeBackendRouter()->loadExtensionTables(true)->initializeSpriteManager()->initializeBackendUser()->initializeBackendAuthentication($proceedIfNoUserIsLoggedIn)->initializeLanguageObject()->initializeBackendTemplate()->endOutputBufferingAndCleanPreviousOutput()->initializeOutputCompression()->sendHttpHeaders();
 }
开发者ID:Gregpl,项目名称:TYPO3.CMS,代码行数:15,代码来源:BackendModuleRequestHandler.php

示例4: boot

 /**
  * Does the main work for setting up the backend environment for any Backend request
  *
  * @param bool $proceedIfNoUserIsLoggedIn option to allow to render the request even if no user is logged in
  * @return void
  */
 protected function boot($proceedIfNoUserIsLoggedIn)
 {
     $this->bootstrap->checkLockedBackendAndRedirectOrDie()->checkBackendIpOrDie()->checkSslBackendAndRedirectIfNeeded()->initializeBackendRouter()->loadExtensionTables(true)->initializeSpriteManager()->initializeBackendUser()->initializeBackendAuthentication($proceedIfNoUserIsLoggedIn)->initializeLanguageObject()->initializeBackendTemplate()->endOutputBufferingAndCleanPreviousOutput()->initializeOutputCompression()->sendHttpHeaders();
 }
开发者ID:rickymathew,项目名称:TYPO3.CMS,代码行数:10,代码来源:RequestHandler.php

示例5: boot

 /**
  * Start the Backend bootstrap part
  *
  * @param string $ajaxId Contains the string of the ajaxId used
  */
 protected function boot($ajaxId)
 {
     // If we're trying to do an ajax login, don't require a user
     $proceedIfNoUserIsLoggedIn = in_array($ajaxId, $this->publicAjaxIds, TRUE);
     $this->bootstrap->checkLockedBackendAndRedirectOrDie($proceedIfNoUserIsLoggedIn)->checkBackendIpOrDie()->checkSslBackendAndRedirectIfNeeded()->checkValidBrowserOrDie()->loadExtensionTables(TRUE)->initializeSpriteManager()->initializeBackendUser()->initializeBackendAuthentication($proceedIfNoUserIsLoggedIn)->initializeLanguageObject()->initializeBackendTemplate()->endOutputBufferingAndCleanPreviousOutput()->initializeOutputCompression()->sendHttpHeaders();
 }
开发者ID:plan2net,项目名称:TYPO3.CMS,代码行数:11,代码来源:AjaxRequestHandler.php


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