<?php /** * [Discuz!] (C)2001-2099 Comsenz Inc. * This is NOT a freeware, use is subject to license terms * */ if(!defined('IN_DISCUZ')) { exit('Access Denied'); } $pluginid = 'lshl_tzydh'; require_once DISCUZ_ROOT.'./source/plugin/wechat/wechat.lib.class.php'; WeChatHook::delAPIHook($pluginid); $finish = TRUE;
echo '<tr class="header"><th>' . lang('plugin/wechat', 'api_hook') . '</th><th>' . cplang('plugins_name') . '</th><th>' . cplang('enable') . '/' . cplang('display_order') . '</th><th>' . lang('plugin/wechat', 'api_method') . '</th></tr>'; foreach ($apihook as $page => $hooks) { foreach ($hooks as $hook => $rows) { $i = 0; foreach ($rows as $plugin => $row) { if (!$plugins[$plugin]) { $deleteplugins[] = $plugin; } $row['plugin'] = $plugin; echo '<tr class="hover"><td>' . (!$i ? $page . '_' . $hook : '') . '</td>' . '<td>' . $plugins[$plugin]['name'] . '</td>' . '<td><input class="checkbox" type="checkbox" name="allow[' . $page . '][' . $hook . '][' . $plugin . ']" value="1"' . ($row['allow'] ? ' checked' : '') . '>' . ($hook != 'variables' ? '<input class="txt num" type="text" name="order[' . $page . '][' . $hook . '][' . $plugin . ']" value="' . $row['order'] . '"></td>' : '</td>') . '<td>' . formathook($row) . '</td></tr>'; $i++; } } } if ($deleteplugins) { WeChatHook::delAPIHook($deleteplugins); } showsubmit('orderssubmit'); showtablefooter(); showformfooter(); $redirect = WeChatHook::getRedirect(); $response = WeChatHook::getResponse(); $plugins = DB::fetch_all('SELECT identifier, name FROM %t', array('common_plugin'), 'identifier'); showtableheader(lang('plugin/wechat', 'api_wechat')); echo '<tr class="header"><th>' . lang('plugin/wechat', 'api_hook') . '</th><th>' . cplang('plugins_name') . '</th><th>' . lang('plugin/wechat', 'api_method') . '</th></tr>'; if ($redirect) { if (!$plugins[$redirect['plugin']]) { WeChatHook::updateRedirect(array()); } echo '<tr class="hover"><td>' . lang('plugin/wechat', 'wechatapi_redirect') . '</td><td>' . $plugins[$redirect['plugin']]['name'] . '</td><td>' . formathook($redirect) . '</td></tr>'; }
*/ if (!defined('IN_DISCUZ')) { exit('Access Denied'); } //start to put your own code $sql = <<<EOF DROP TABLE IF EXISTS `pre_aljwsq_autoreply`; DROP TABLE IF EXISTS `pre_aljwsq_autoreply_advanced`; DROP TABLE IF EXISTS `pre_aljwsq_advanced_column`; DROP TABLE IF EXISTS `pre_aljwsq_advanced_columndata`; DROP TABLE IF EXISTS `pre_aljwsq_menu`; DROP TABLE IF EXISTS `pre_aljwsq_user`; DROP TABLE IF EXISTS `pre_aljwsq_ggk_log`; DROP TABLE IF EXISTS `pre_aljwsq_ggk_user`; DROP TABLE IF EXISTS `pre_aljwsq_citylist`; DROP TABLE IF EXISTS `pre_aljwsq_index`; DROP TABLE IF EXISTS `pre_aljwsq_c`; DROP TABLE IF EXISTS `pre_aljwsq_mes`; DROP TABLE IF EXISTS `pre_aljwsq_voice`; DROP TABLE IF EXISTS `pre_aljwsq_qrcode`; DROP TABLE IF EXISTS `pre_aljwsq_wxqrcode`; DROP TABLE IF EXISTS `pre_aljwsq_wxqrcode_record`; DROP TABLE IF EXISTS `pre_aljwsq_keywordlog`; EOF; runquery($sql); if (file_exists(DISCUZ_ROOT . './source/plugin/wechat/wechat.lib.class.php')) { require_once DISCUZ_ROOT . './source/plugin/wechat/wechat.lib.class.php'; WeChatHook::delAPIHook('aljwsq'); } //finish to put your own code $finish = TRUE;