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


PHP Bootstrap::LoadThirdParty方法代码示例

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


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

示例1: ini_set

ini_set('session.gc_maxlifetime', $timelife);
if ((preg_match("/msie/i", $_SERVER ['HTTP_USER_AGENT']) != 1 ||
   $config['ie_cookie_lifetime'] == 1) &&
   (!(preg_match("/safari/i", $_SERVER ['HTTP_USER_AGENT']) == 1 && preg_match("/chrome/i", $_SERVER ['HTTP_USER_AGENT']) == 0) ||
   $config['safari_cookie_lifetime'] == 1)) {
    ini_set('session.cookie_lifetime', $timelife);
}
session_start();

//$e_all = defined( 'E_DEPRECATED' ) ? E_ALL & ~ E_DEPRECATED : E_ALL;
//$e_all = defined( 'E_STRICT' ) ? $e_all & ~ E_STRICT : $e_all;
//$e_all = $config['debug'] ? $e_all : $e_all & ~ E_NOTICE;
//$e_all = E_ALL & ~ E_DEPRECATED & ~ E_STRICT & ~ E_NOTICE  & ~E_WARNING;

//Call Gulliver Classes
Bootstrap::LoadThirdParty("smarty/libs", "Smarty.class");

//Loading the autoloader libraries feature
Bootstrap::registerSystemClasses();

G::LoadSystem('inputfilter');
$filter = new InputFilter();
$config['display_errors'] = $filter->validateInput($config['display_errors']);
$config['error_reporting'] = $filter->validateInput($config['error_reporting']);
$config['memory_limit'] = $filter->validateInput($config['memory_limit']);
$config['wsdl_cache'] = $filter->validateInput($config['wsdl_cache'],'int');
$config['time_zone'] = $filter->validateInput($config['time_zone']);

// Do not change any of these settings directly, use env.ini instead
ini_set( 'display_errors', $config['display_errors']);
ini_set( 'error_reporting', $config['error_reporting']);
开发者ID:hpx2206,项目名称:processmaker-1,代码行数:31,代码来源:sysGeneric.php

示例2: json_decode

 /**
  * JSON decode
  *
  * @author Erik A.O. <erik@gmail.com, aortiz.erik@gmail.com>
  */
 public function json_decode($Json)
 {
     if (function_exists('json_decode')) {
         return json_decode($Json);
     } else {
         Bootstrap::LoadThirdParty('pear/json', 'class.json');
         $oJSON = new Services_JSON();
         return $oJSON->decode($Json);
     }
 }
开发者ID:norahmollo,项目名称:processmaker,代码行数:15,代码来源:class.bootstrap.php

示例3: explode

        default:
            if (substr($realPath, 0, 12) == 'rest-service') {
                $isRestRequest = true;
            } else {
                $realPath = explode('?', $realPath);
                $realPath[0] .= strpos(basename($realPath[0]), '.') === false ? '.php' : '';
                //NewRelic Snippet - By JHL
                transactionLog($realPath[0]);
                Bootstrap::streamFile($realPath[0]);
                die;
            }
    }
}
//virtual URI parser
// Call Gulliver Classes
Bootstrap::LoadThirdParty('smarty/libs', 'Smarty.class');
//loading the autoloader libraries feature
spl_autoload_register(array('Bootstrap', 'autoloadClass'));
Bootstrap::registerClass('G', PATH_GULLIVER . "class.g.php");
Bootstrap::registerClass('System', PATH_HOME . "engine/classes/class.system.php");
// the request correspond to valid php page, now parse the URI
Bootstrap::parseURI(getenv("REQUEST_URI"), $isRestRequest);
//Bootstrap::mylog("sys_temp: ".SYS_TEMP);
if (Bootstrap::isPMUnderUpdating()) {
    header("location: /update/updating.php");
    if (DEBUG_TIME_LOG) {
        Bootstrap::logTimeByPage();
    }
    die;
}
// verify if index.html exists
开发者ID:ralpheav,项目名称:processmaker,代码行数:31,代码来源:sysGeneric.php


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