showtableheader(); echo '<tr class="header"><th>' . lang('plugin/wechat', 'api_hook') . '</th><th>' . lang('plugin/wechat', 'api_method') . '</th></tr>'; if ($redirect) { echo '<tr><th>' . lang('plugin/wechat', 'wechatapi_redirect') . '</th><th>' . formathook($redirect) . '</th></tr>'; } foreach ($response as $k => $row) { echo '<tr><th>' . lang('plugin/wechat', 'api_' . $k) . '(' . $k . ')</th><th>' . formathook($row) . '</th></tr>'; } showtablefooter(); $wechatresponseExts = unserialize($_G['setting']['wechatresponseExts']); if ($wechatresponseExts) { showtableheader(); foreach ($wechatresponseExts as $k => $response) { echo '<tr class="header"><th>' . lang('plugin/wechat', 'wechat_responseexts') . ' ' . $k . '</th><th>' . lang('plugin/wechat', 'api_method') . '</th></tr>'; foreach ($response as $k => $row) { echo '<tr><th>' . lang('plugin/wechat', 'api_' . $k) . '(' . $k . ')</th><th>' . formathook($row) . '</th></tr>'; } } showtablefooter(); } $wechatappInfos = unserialize($_G['setting']['wechatappInfos']); if ($wechatappInfos) { showtableheader(); echo '<tr class="header"><th width="200">' . lang('plugin/wechat', 'wechat_devids') . '</th><th>' . lang('plugin/wechat', 'wechat_appId') . '</th><th>' . lang('plugin/wechat', 'wechat_appsecret') . '</th></tr>'; foreach (unserialize($_G['setting']['wechatappInfos']) as $k => $info) { echo '<tr><th>' . $k . '</th><th>' . $info['appId'] . '</th><th>' . $info['appSecret'] . '</th></tr>'; } showtablefooter(); } exit; }
if (!$plugins[$row['plugin']]) { $deleteresponses[$k] = array(); } echo '<tr class="hover"><td>' . lang('plugin/wechat', 'api_' . $k) . '(' . $k . ')</td><td>' . $plugins[$row['plugin']]['name'] . '</td><td>' . formathook($row) . '</td></tr>'; } showtablefooter(); $wechatresponseExts = unserialize($_G['setting']['wechatresponseExts']); if ($wechatresponseExts) { showtableheader(); foreach ($wechatresponseExts as $extk => $response) { echo '<tr class="header"><th>' . lang('plugin/wechat', 'wechat_responseexts') . ' ' . $extk . '</th><th>' . cplang('plugins_name') . '</th><th>' . lang('plugin/wechat', 'api_method') . '</th></tr>'; foreach ($response as $k => $row) { if (!$plugins[$row['plugin']]) { $deleteresponseExts[$extk][$k] = array(); } echo '<tr class="hover"><td>' . lang('plugin/wechat', 'api_' . $k) . '(' . $k . ')</td><td>' . $plugins[$row['plugin']]['name'] . '</td><td>' . formathook($row) . '</td></tr>'; } } showtablefooter(); } if ($deleteresponses) { WeChatHook::updateResponse($deleteresponses); } if ($deleteresponseExts) { foreach ($deleteresponseExts as $extk => $deleteresponses) { WeChatHook::updateResponse($deleteresponses, $extk); } } $wechatappInfos = unserialize($_G['setting']['wechatappInfos']); if ($wechatappInfos) { showtableheader();