mirror of
https://gitee.com/ShopeX/OMS
synced 2026-03-22 18:35:35 +08:00
31 lines
766 B
PHP
31 lines
766 B
PHP
<?php
|
||
/**
|
||
* Copyright © ShopeX (http://www.shopex.cn). All rights reserved.
|
||
* See LICENSE file for license details.
|
||
*/
|
||
|
||
/**
|
||
* 加载脚本执行需要的一些框架信息
|
||
*/
|
||
|
||
$root_dir = realpath(dirname(__FILE__) . '/../../../../');
|
||
require_once($root_dir."/config/config.php");
|
||
|
||
define('APP_DIR',ROOT_DIR."/app");
|
||
|
||
if (PHP_OS == 'WINNT')
|
||
define('PHP_EXEC',dirname(ini_get('extension_dir')).'/php');
|
||
else
|
||
define('PHP_EXEC',PHP_BINDIR.'/php');
|
||
|
||
require_once(APP_DIR.'/base/kernel.php');
|
||
@require_once(APP_DIR.'/base/defined.php');
|
||
|
||
if(!kernel::register_autoload()){
|
||
require(APP_DIR.'/base/autoload.php');
|
||
}
|
||
|
||
base_kvstore::instance('setting/ome')->fetch('sh_base_url', $sh_base_url);
|
||
if ( $sh_base_url ){
|
||
define('BASE_URL', $sh_base_url);
|
||
} |