[PHP] 初始化代码文件init.php →→→→→进入此内容的聊天室

来自 , 2020-01-11, 写在 PHP, 查看 127 次.
URL http://www.code666.cn/view/8d9766a6
  1. error_reporting(E_ERROR | E_WARNING | E_PARSE);
  2.  
  3. define(ROOTDIR, dirname(dirname(__FILE__)) . "/");
  4. define(LOG_PATH, ROOTDIR . "/log/");
  5. define(IS_DEBUG, true);
  6.  
  7. $GLOBALS['_CFG']['smarty_template_dir'] = 'view';
  8. $GLOBALS['_CFG']['smarty_cache_dir'] = 'cache';
  9. $GLOBALS['_CFG']['smarty_compile_dir'] = 'compile_c';
  10. $GLOBALS['_CFG']['lib_cls_path'] = array("lib/", "lib/3rd/", "lib/3rd/Smarty/", "lib/common/");
  11. $GLOBALS['_CFG']['app_cls_path'] = array("app/", "app/include/");
  12. $GLOBALS['_CFG']['upload_img_dir'] = 'upload/images';
  13. $GLOBALS['_CFG']['index_dir'] = '';
  14. $GLOBALS['_CFG']['IS_WIN_OS'] = (strcmp(PHP_OS, 'WINNT') == 0 || strcmp(PHP_OS, 'WIN32') == 0);
  15.  
  16. if (file_exists(ROOTDIR . 'conf/db_conf.php'))
  17.     include_once ROOTDIR . 'conf/db_conf.php';
  18.  
  19. include_once ROOTDIR . 'lib/functions/functions.php';
  20.  
  21. init();

回复 "初始化代码文件init.php"

这儿你可以回复上面这条便签

captcha