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


PHP OSCOM::initialize方法代码示例

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


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

示例1: header

// load server configuration parameters
if (file_exists('includes/local/configure.php')) {
    // for developers
    include 'includes/local/configure.php';
} else {
    include 'includes/configure.php';
}
if (DB_SERVER == '') {
    if (is_dir('install')) {
        header('Location: install/index.php');
        exit;
    }
}
require OSCOM_BASE_DIR . 'OSC/OM/OSCOM.php';
spl_autoload_register('OSC\\OM\\OSCOM::autoload');
OSCOM::initialize();
// set the type of request (secure or not)
if (isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on' || isset($_SERVER['SERVER_PORT']) && $_SERVER['SERVER_PORT'] == 443) {
    $request_type = 'SSL';
    define('DIR_WS_CATALOG', DIR_WS_HTTPS_CATALOG);
    // set the cookie domain
    $cookie_domain = HTTPS_COOKIE_DOMAIN;
    $cookie_path = HTTPS_COOKIE_PATH;
} else {
    $request_type = 'NONSSL';
    define('DIR_WS_CATALOG', DIR_WS_HTTP_CATALOG);
    $cookie_domain = HTTP_COOKIE_DOMAIN;
    $cookie_path = HTTP_COOKIE_PATH;
}
// set php_self in the local scope
$req = parse_url($_SERVER['SCRIPT_NAME']);
开发者ID:Akofelaz,项目名称:oscommerce2,代码行数:31,代码来源:application_top.php

示例2: implode

require DIR_WS_CLASSES . 'shopping_cart.php';
require DIR_WS_FUNCTIONS . 'sessions.php';
require DIR_WS_CLASSES . 'language.php';
require DIR_WS_FUNCTIONS . 'localization.php';
require DIR_WS_FUNCTIONS . 'validations.php';
require DIR_WS_CLASSES . 'table_block.php';
require DIR_WS_CLASSES . 'box.php';
require DIR_WS_CLASSES . 'message_stack.php';
require DIR_WS_CLASSES . 'split_page_results.php';
require DIR_WS_CLASSES . 'object_info.php';
require DIR_WS_CLASSES . 'mime.php';
require DIR_WS_CLASSES . 'email.php';
require DIR_WS_CLASSES . 'upload.php';
require DIR_WS_CLASSES . 'action_recorder.php';
require DIR_WS_CLASSES . 'cfg_modules.php';
OSCOM::initialize('Admin');
// calculate category path
if (isset($_GET['cPath'])) {
    $cPath = $_GET['cPath'];
} else {
    $cPath = '';
}
if (tep_not_null($cPath)) {
    $cPath_array = tep_parse_category_path($cPath);
    $cPath = implode('_', $cPath_array);
    $current_category_id = $cPath_array[sizeof($cPath_array) - 1];
} else {
    $current_category_id = 0;
}
// the following cache blocks are used in the Tools->Cache section
// ('language' in the filename is automatically replaced by available languages)
开发者ID:tiansiyuan,项目名称:oscommerce2,代码行数:31,代码来源:application_top.php


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