think 1.5 KB

123456789101112131415161718192021222324252627282930313233343536
  1. #!/usr/bin/env php
  2. <?php
  3. // +----------------------------------------------------------------------
  4. // | ThinkCMF [ WE CAN DO IT MORE SIMPLE ]
  5. // +----------------------------------------------------------------------
  6. // | Copyright (c) 2013-2018 http://www.thinkcmf.com All rights reserved.
  7. // +----------------------------------------------------------------------
  8. // | Author: 老猫 <zxxjjforever@163.com>
  9. // +----------------------------------------------------------------------
  10. // 调试模式开关
  11. define("APP_DEBUG", true);
  12. // 定义 APP 命名空间
  13. define("APP_NAMESPACE", 'console');
  14. // 定义CMF根目录,可更改此目录
  15. define('CMF_ROOT', __DIR__.'/');
  16. // 定义全局配置目录
  17. define('GLOBAL_CONF_PATH', CMF_ROOT.'data/conf/');
  18. // 定义应用目录
  19. define('APP_PATH', CMF_ROOT.'console/');
  20. // 定义CMF目录
  21. define('CMF_PATH', CMF_ROOT.'simplewind/cmf/');
  22. // 定义HUO目录
  23. define('HUO_PATH', CMF_ROOT.'simplewind/huo/');
  24. define('HUOMP_PATH', CMF_ROOT.'simplewind/huomp/');
  25. define('HUOLIB_PATH', CMF_ROOT.'simplewind/huolib/');
  26. define('HUORISK_PATH', CMF_ROOT.'simplewind/huorisk/');
  27. // 定义插件目录
  28. define('PLUGINS_PATH', __DIR__.'/../plugins/');
  29. // 定义扩展目录
  30. define('EXTEND_PATH', CMF_ROOT.'simplewind/extend/');
  31. define('VENDOR_PATH', CMF_ROOT.'simplewind/vendor/');
  32. // 定义应用的运行时目录
  33. define('RUNTIME_PATH', CMF_ROOT.'data/runtime/console/');
  34. require GLOBAL_CONF_PATH.'domain.inc.php';
  35. // 加载框架引导文件
  36. require CMF_ROOT.'simplewind/thinkphp/console.php';