Files
OMS/app/iostock/lib/crontab/config.php
2025-12-28 23:13:25 +08:00

31 lines
766 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?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);
}