config.inc.php 968 B

123456789101112131415161718192021222324252627
  1. <?php
  2. error_reporting(0);
  3. ini_set('date.timezone', 'PRC');
  4. ini_set('default_charset', 'utf-8');
  5. define('IN_ROOT', substr(dirname(__FILE__), 0, -13));
  6. define('IN_PATH', '/');
  7. define('IN_DATA_PATH', IN_ROOT . 'data/');
  8. define('IN_ATTACHMENT_PATH', IN_ROOT . 'data/attachment/');
  9. define('IN_CERT_PATH', IN_ROOT . 'data/cert/');
  10. define('IN_IMAGES_PATH', IN_ROOT . 'data/image/');
  11. define('IN_IPADIR_PATH', IN_ROOT . 'data/ipadir/');
  12. define('IN_TMP_PATH', IN_ROOT . "data/tmp/");
  13. define('IN_UPLOADS_PATH', IN_ROOT . 'data/uploads/');
  14. define('IN_SOURCE', IN_ROOT . 'source/');
  15. define('IN_STATIC_PATH', IN_ROOT . 'static/');
  16. define('IN_DEBUG', '1');
  17. if (is_file(IN_SOURCE . 'system/db_config.php')) {
  18. include_once IN_SOURCE . 'system/db_config.php';
  19. } else {
  20. define('IN_DBHOST', '127.0.0.1');
  21. define('IN_DBUSER', 'root');
  22. define('IN_DBPW', 'root');
  23. define('IN_DBNAME', 'xffenfa');
  24. define('IN_DBCHARSET', 'utf8');
  25. define('IN_DBTABLE', 'prefix_');
  26. }