29 lines
771 B
PHP
29 lines
771 B
PHP
<?php
|
|
|
|
/**
|
|
* [Discuz!] (C)2001-2099 Comsenz Inc.
|
|
* This is NOT a freeware, use is subject to license terms
|
|
*
|
|
* $Id: wechat.php 34480 2014-05-07 01:18:15Z nemohou $
|
|
*/
|
|
if (!defined('IN_MOBILE_API')) {
|
|
exit('Access Denied');
|
|
}
|
|
|
|
define('DISABLEXSSCHECK', true);
|
|
|
|
require './source/class/class_core.php';
|
|
|
|
$discuz = C::app();
|
|
|
|
$cachelist = array('plugin');
|
|
|
|
$discuz->cachelist = $cachelist;
|
|
$discuz->init();
|
|
|
|
$_G['siteurl'] = str_replace('api/mobile/', '', $_G['siteurl']);
|
|
$_G['wechat']['setting'] = unserialize($_G['setting']['mobilewechat']);
|
|
|
|
require_once DISCUZ_ROOT . './source/plugin/wechat/wechat.lib.class.php';
|
|
|
|
$svr = new WeChatServer($_G['wechat']['setting']['wechat_token'], WeChatHook::getResponse($_GET['id'])); |