constants.php 774 B

12345678910111213141516171819202122
  1. <?php
  2. // 全局常量
  3. define('FRAME_START_TIME', microtime(true));
  4. define('APP_ID', 3);
  5. define('MTID_AKEY', '300200');
  6. define('MTID_SKEY', 'p8s8yuoY');
  7. //admin_token加密参数
  8. define('ADMIN_TOKEN_ENCRYPT_KEY','manage_makeup_meitu_com');
  9. //todo:admin_token有效期暂时改为6个小时,上线改为30分钟
  10. define('ADMIN_TOKEN_EXPIRED',1800*12);
  11. if (get_magic_quotes_gpc()) {
  12. function stripslashes_deep($value)
  13. {
  14. $value = is_array($value) ? array_map('stripslashes_deep', $value) : stripslashes($value);
  15. return $value;
  16. }
  17. $_POST = array_map('stripslashes_deep', $_POST);
  18. $_GET = array_map('stripslashes_deep', $_GET);
  19. $_COOKIE = array_map('stripslashes_deep', $_COOKIE);
  20. $_REQUEST = array_map('stripslashes_deep', $_REQUEST);
  21. }