43 lines
2.0 KiB
PHP
43 lines
2.0 KiB
PHP
<?php
|
|
|
|
/**
|
|
* This is NOT a freeware, use is subject to license terms
|
|
* 应用名称: 修改用户名 5.4.0
|
|
* 下载地址: https://addon.dismall.com/plugins/k_gaiming.html
|
|
* 应用开发者: Discuz!扩展中心
|
|
* 开发者QQ: 1608304093
|
|
* 更新日期: 202505311944
|
|
* 授权域名: www.shitangsweet.com
|
|
* 授权码: 2025053119aA5zhH76A0
|
|
* 未经应用程序开发者/所有者的书面许可,不得进行反向工程、反向汇编、反向编译等,不得擅自复制、修改、链接、转载、汇编、发表、出版、发展与之有关的衍生产品、作品等
|
|
*/
|
|
|
|
if(!defined('IN_DISCUZ') || !defined('IN_ADMINCP')) {
|
|
exit('Access Denied');
|
|
}
|
|
loadcache('plugin');
|
|
$kgaiming = $_G['cache']['plugin']['k_gaiming'];
|
|
require_once libfile('function/core', 'plugin/k_gaiming');
|
|
if($extend['wsq']){
|
|
require_once DISCUZ_ROOT.'./source/plugin/wechat/wechat.lib.class.php';
|
|
if(submitcheck('wsqsubmit')) {
|
|
if($_GET['hook_profile_extraInfo_status'] == 1){
|
|
$data[] = array('profile_extraInfo' => array('plugin' => 'k_gaiming', 'include' => 'wsq.class.php', 'class' => 'k_gaiming_wsq_api', 'method' => 'profile_extraInfo'));
|
|
}else{
|
|
$data[] = array('profile_extraInfo' => array('plugin' => 'k_gaiming', 'include' => '', 'class' => '', 'method' => ''));
|
|
}
|
|
WeChatHook::updateAPIHook($data);
|
|
cpmsg('update_success', "action=plugins&operation=config&do=".$do."&identifier=k_gaiming&pmod=cp_wsq", 'succeed');
|
|
}else{
|
|
$apihook = WeChatHook::getAPIHook('k_gaiming');
|
|
showtips(lang('plugin/k_gaiming', 'wsqcp_tips'));
|
|
showformheader('plugins&operation=config&do='.$pluginid.'&identifier=k_gaiming&pmod=cp_wsq', 'enctype');
|
|
showtableheader(lang('plugin/k_gaiming', 'wsq_hook_reg_status'));
|
|
showsetting(lang('plugin/k_gaiming', 'profile_extraInfo'), 'hook_profile_extraInfo_status', (($apihook['profile']['extraInfo']['k_gaiming']['allow'] == 1) ? 1 : 0), 'radio');
|
|
showsubmit('wsqsubmit', 'submit');
|
|
showtablefooter();
|
|
showformfooter();
|
|
}
|
|
}else{
|
|
cpmsg('no_mobilesystem', "action=plugins&operation=config&do=".$do."&identifier=k_gaiming&pmod=cp_wsq", 'succeed');
|
|
} |