constants.inc.php 853 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /**
  3. * 全局的常量配置
  4. */
  5. // ===================== 返回状态 ================== //
  6. define("SUCESS_CODE", 200);
  7. define("FAILURE_CODE", 400);
  8. define("SERVER_ERROR",500);
  9. define("NO_PERMISSION",401);
  10. define("APP_PATH", str_replace('\\', '/', substr(__DIR__, 0, -6)));
  11. define("SYSTEM_TIME", time());
  12. defined("PAGE_NUMS") || define("PAGE_NUMS", 10);
  13. define("PAGE_MAX_NUMS", 50);
  14. //网站登录SESSION
  15. define("LOGIN_OPENID_SESSION_KEY", 'LOGIN_OPENID_SESSION_KEY');
  16. define("AUTH_BACK_REDIRECT", 'AUTH_BACK_REDIRECT');
  17. //网站管理角色
  18. define("WEB_ADMIN_ROLE", 'ROLE_WEB_ADMIN');
  19. defined("LOGIN_MARK_SESSION_KEY") || define("LOGIN_MARK_SESSION_KEY", 'tewelwekrkjk34293423k4jnn');
  20. defined("USER_ROOT_ID") || define("USER_ROOT_ID", '0');
  21. defined("USER_ROOT_EMAIL") || define("USER_ROOT_EMAIL", 'root');
  22. /*
  23. * 当前现有系统
  24. */