configure.php 753 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: stanley-king
  5. * Date: 16/5/24
  6. * Time: 下午6:07
  7. */
  8. function is_debug()
  9. {
  10. if(defined('DEBUG_MODE') && DEBUG_MODE == true) {
  11. return true;
  12. } else {
  13. return false;
  14. }
  15. }
  16. function is_publish()
  17. {
  18. if(defined('MOBILE_PUBLISH') && MOBILE_PUBLISH == false) {
  19. return false;
  20. } else {
  21. return true;
  22. }
  23. }
  24. function is_pushoms()
  25. {
  26. if(is_publish()) return true;
  27. if(is_debug() == false) return true;
  28. if(defined('PUSH_OMS') && PUSH_OMS == true) {
  29. return true;
  30. } else {
  31. return false;
  32. }
  33. }
  34. function is_localdebug()
  35. {
  36. if(defined('LOCAL_DEBUG') && LOCAL_DEBUG == true) {
  37. return true;
  38. } else {
  39. return false;
  40. }
  41. }