123456789101112131415161718192021222324252627282930313233343536 |
- #!/usr/bin/env php
- <?php
- // +----------------------------------------------------------------------
- // | ThinkCMF [ WE CAN DO IT MORE SIMPLE ]
- // +----------------------------------------------------------------------
- // | Copyright (c) 2013-2018 http://www.thinkcmf.com All rights reserved.
- // +----------------------------------------------------------------------
- // | Author: 老猫 <zxxjjforever@163.com>
- // +----------------------------------------------------------------------
- // 调试模式开关
- define("APP_DEBUG", true);
- // 定义 APP 命名空间
- define("APP_NAMESPACE", 'console');
- // 定义CMF根目录,可更改此目录
- define('CMF_ROOT', __DIR__.'/');
- // 定义全局配置目录
- define('GLOBAL_CONF_PATH', CMF_ROOT.'data/conf/');
- // 定义应用目录
- define('APP_PATH', CMF_ROOT.'console/');
- // 定义CMF目录
- define('CMF_PATH', CMF_ROOT.'simplewind/cmf/');
- // 定义HUO目录
- define('HUO_PATH', CMF_ROOT.'simplewind/huo/');
- define('HUOMP_PATH', CMF_ROOT.'simplewind/huomp/');
- define('HUOLIB_PATH', CMF_ROOT.'simplewind/huolib/');
- define('HUORISK_PATH', CMF_ROOT.'simplewind/huorisk/');
- // 定义插件目录
- define('PLUGINS_PATH', __DIR__.'/../plugins/');
- // 定义扩展目录
- define('EXTEND_PATH', CMF_ROOT.'simplewind/extend/');
- define('VENDOR_PATH', CMF_ROOT.'simplewind/vendor/');
- // 定义应用的运行时目录
- define('RUNTIME_PATH', CMF_ROOT.'data/runtime/console/');
- require GLOBAL_CONF_PATH.'domain.inc.php';
- // 加载框架引导文件
- require CMF_ROOT.'simplewind/thinkphp/console.php';
|