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


PHP IEM::isUpgrading方法代码示例

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


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

示例1: Settings_API

    Interspire_Addons::SetUrl(SENDSTUDIO_APPLICATION_URL . '/admin');
    require_once SENDSTUDIO_API_DIRECTORY . '/settings.php';
    $settings_api = new Settings_API();
}
// SENDSTUDIO_SERVERTIMEZONE is no longer stored in database, rather it will be defined here pending deprecation
// TODO depracate in favour of IEM framework
if (!defined('SENDSTUDIO_SERVERTIMEZONE')) {
    $tempTimeZone = preg_replace('/^([+-])0?(\\d{1,2})(\\d\\d)/', '$1$2:$3', date('O'));
    if ($tempTimeZone == '+0:00') {
        $tempTimeZone = '';
    }
    define('SENDSTUDIO_SERVERTIMEZONE', "GMT{$tempTimeZone}");
}
if (SENDSTUDIO_IS_SETUP) {
    require_once IEM_PATH . '/ext/interspire_log/interspire_log.php';
    if (!IEM::isUpgrading()) {
        set_error_handler('HandlePHPErrors');
    }
}
/**
* GetLogSystem
* Gets the log system set up with the appropriate options ready for the error handler to use.
*
* @uses IEM::getDatabase()
* @uses Interspire_Log
* @see set_error_handler
*/
function GetLogSystem()
{
    static $logsystem = null;
    if (is_null($logsystem)) {
开发者ID:hungnv0789,项目名称:vhtm,代码行数:31,代码来源:init-legacy.php

示例2: while

 // If the user have not logged in yet, we need to check for "IEM_CookieLogin"
 // and "IEM_LoginPreference" cookie. This cookie is used in "remember me" feature.
 //
 // TODO refactor this to IEM::login() function
 // --------------------------------------------------------------------------------
 if (!IEM::getCurrentUser()) {
     $tempValid = false;
     $tempCookie = false;
     $tempUser = false;
     // This is not a loop, rather a way to "return early" to avoid nested if
     // * Comment from a later developer: If you have to do this, there is
     // * probably a better way to code it. Programming doesn't necessarily
     // * mean "hacking".
     while (true) {
         // if we are installing or upgrading then we need to bypass this
         if (!IEM::isInstalled() && IEM::isInstalling() || IEM::hasUpgrade() && IEM::isUpgrading() || IEM::isCompletingUpgrade()) {
             $tempValid = true;
             break;
         }
         // Get cookie
         $tempCookie = IEM::requestGetCookie('IEM_CookieLogin', array());
         if (empty($tempCookie)) {
             break;
         }
         // Check if cookie contains user information
         if (!is_array($tempCookie) || !isset($tempCookie['user'])) {
             break;
         }
         // Get user
         $tempUser = new User_API();
         $tempUser->Load(intval($tempCookie['user']));
开发者ID:hungnv0789,项目名称:vhtm,代码行数:31,代码来源:init.php


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