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


PHP OSCOM::loadSite方法代码示例

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


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

示例1:

OSCOM::initialize();
if (PHP_VERSION_ID < 70000) {
    include OSCOM::getConfig('dir_root', 'Shop') . 'includes/third_party/random_compat/random.php';
}
require 'includes/filenames.php';
require 'includes/functions/general.php';
require 'includes/classes/logger.php';
require 'includes/classes/shopping_cart.php';
require 'includes/classes/table_block.php';
require 'includes/classes/box.php';
require 'includes/classes/object_info.php';
require 'includes/classes/upload.php';
require 'includes/classes/action_recorder.php';
require 'includes/classes/cfg_modules.php';
require OSCOM::getConfig('dir_root', 'Shop') . 'includes/classes/osc_template.php';
OSCOM::loadSite('Admin');
if (HTTP::getRequestType() === 'NONSSL' && $_SERVER['REQUEST_METHOD'] === 'GET' && parse_url(OSCOM::getConfig('http_server'), PHP_URL_SCHEME) == 'https') {
    $url_req = 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
    HTTP::redirect($url_req, 301);
}
$OSCOM_Db = Registry::get('Db');
$OSCOM_Hooks = Registry::get('Hooks');
$OSCOM_Language = Registry::get('Language');
$OSCOM_MessageStack = Registry::get('MessageStack');
// calculate category path
if (isset($_GET['cPath'])) {
    $cPath = $_GET['cPath'];
} else {
    $cPath = '';
}
if (tep_not_null($cPath)) {
开发者ID:haraldpdl,项目名称:oscommerce2,代码行数:31,代码来源:application_top.php

示例2: function

    include 'includes/third_party/random_compat/random.php';
}
require 'includes/functions/general.php';
require 'includes/classes/shopping_cart.php';
require 'includes/classes/navigation_history.php';
require 'includes/classes/currencies.php';
require 'includes/classes/action_recorder.php';
require 'includes/classes/alertbox.php';
require 'includes/classes/message_stack.php';
require 'includes/functions/whos_online.php';
require 'includes/functions/banner.php';
require 'includes/functions/specials.php';
require 'includes/classes/osc_template.php';
require 'includes/classes/category_tree.php';
require 'includes/classes/breadcrumb.php';
OSCOM::loadSite('Shop');
if (HTTP::getRequestType() === 'NONSSL' && $_SERVER['REQUEST_METHOD'] === 'GET' && parse_url(OSCOM::getConfig('http_server'), PHP_URL_SCHEME) == 'https') {
    $url_req = 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
    HTTP::redirect($url_req, 301);
}
$OSCOM_Db = Registry::get('Db');
$OSCOM_Language = Registry::get('Language');
Registry::get('Hooks')->watch('Session', 'Recreated', 'execute', function ($parameters) {
    tep_whos_online_update_session_id($parameters['old_id'], session_id());
});
// configure gzip compression if it is enabled
if (GZIP_COMPRESSION == 'true' && extension_loaded('zlib') && !headers_sent()) {
    if ((int) ini_get('zlib.output_compression') < 1) {
        ini_set('zlib.output_handler', '');
        ini_set('zlib.output_compression', 1);
    }
开发者ID:haraldpdl,项目名称:oscommerce2,代码行数:31,代码来源:application_top.php


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