index.php 901 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. /**
  3. * lionfish 商城系统
  4. *
  5. * ==========================================================================
  6. * @link http://www.liofis.com/
  7. * @copyright Copyright (c) 2015-2016 liofis.com.
  8. * @license http://www.liofis.com/license.html License
  9. * ==========================================================================
  10. *
  11. * @author fish
  12. *
  13. */
  14. if(version_compare(PHP_VERSION,'5.3.0','<')) die('require PHP > 5.3.0 !');
  15. header("Content-Type:text/html; charset=utf-8");
  16. define('APP_DEBUG', true);
  17. define('BIND_MODULE','Home');
  18. define ('APP_PATH', './Modules/' );
  19. if (!is_file( 'Modules/Common/Conf/db.php')) {
  20. header('Location: ./install.php');
  21. exit;
  22. }
  23. define('ROOT_PATH',str_replace('\\','/',dirname(__FILE__)) . '/');
  24. define('ATTACHMENT_ROOT', ROOT_PATH.'Uploads/image/');
  25. define ('RUNTIME_PATH','./Runtime/');
  26. require './ThinkPHP/ThinkPHP.php';
  27. ?>