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