checkinfo.php 851 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. /**
  3. * [Discuz!] (C)2001-2099 Comsenz Inc.
  4. * This is NOT a freeware, use is subject to license terms
  5. *
  6. * $Id: checkinfo.php 34424 2014-04-24 05:17:08Z nemohou $
  7. */
  8. if (!defined('IN_MOBILE_API')) {
  9. exit('Access Denied');
  10. }
  11. require './source/class/class_core.php';
  12. $discuz = C::app();
  13. $cachelist = array();
  14. $discuz->cachelist = $cachelist;
  15. $discuz->init();
  16. $_G['wechat']['setting'] = unserialize($_G['setting']['mobilewechat']);
  17. require_once DISCUZ_ROOT.'./source/plugin/wechat/wsq.class.php';
  18. $result = wsq::check($_GET);
  19. if($result) {
  20. $setting = C::t('common_setting')->fetch_all(array('mobilewechat'));
  21. $setting = unserialize($setting['mobilewechat']);
  22. $setting['wsq_status'] = 1;
  23. $settings = array('mobilewechat' => serialize($setting));
  24. C::t('common_setting')->update_batch($settings);
  25. }
  26. echo $result;
  27. exit;