71 lines
3.7 KiB
PHP
71 lines
3.7 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
|
|
* 未经应用程序开发者/所有者的书面许可,不得进行反向工程、反向汇编、反向编译等,不得擅自复制、修改、链接、转载、汇编、发表、出版、发展与之有关的衍生产品、作品等
|
|
*/
|
|
|
|
!defined('IN_DISCUZ') && exit('Access Denied');
|
|
!defined('IN_ADMINCP') && exit('Access Denied');
|
|
|
|
$kgaiming = $_G['cache']['plugin']['k_gaiming'];
|
|
|
|
if(!submitcheck('submit')) {
|
|
$count = $start = 0;
|
|
$perpage = 20;
|
|
$page = max(1, intval($_GET['page']));
|
|
$start = ($page - 1) * $perpage;
|
|
if(intval($_GET['uid'])){
|
|
$count = DB::result_first("SELECT count(*) FROM ".DB::table("plugin_k_gaiming_log")." WHERE uid='".intval($_GET['uid'])."'");
|
|
$query = DB::query("SELECT * FROM ".DB::table("plugin_k_gaiming_log")." WHERE uid='".intval($_GET['uid'])."' ORDER BY dateline DESC LIMIT ".$start.",".$perpage);
|
|
$multi = multi($count, $perpage, $page, ADMINSCRIPT."?action=plugins&operation=config&do=".$pluginid."&identifier=k_gaiming&pmod=cp_log&uid=".intval($_GET['uid']));
|
|
}else{
|
|
$count = DB::result_first("SELECT count(*) FROM ".DB::table("plugin_k_gaiming_log"));
|
|
$query = DB::query("SELECT * FROM ".DB::table("plugin_k_gaiming_log")." ORDER BY dateline DESC LIMIT ".$start.",".$perpage);
|
|
$multi = multi($count, $perpage, $page, ADMINSCRIPT."?action=plugins&operation=config&do=".$pluginid."&identifier=k_gaiming&pmod=cp_log");
|
|
}
|
|
$logs = '';
|
|
while($log = DB::fetch($query)) {
|
|
$log['dateline'] = dgmdate($log['dateline'], 'u');
|
|
$log['username'] = getuserbyuid($log['uid']);
|
|
$logs.= showtablerow('', array('class="td25"', 'class="td29"', 'class="td28"', 'class="td29"', 'class="td28"'), array(
|
|
"<input class=\"checkbox\" type=\"checkbox\" name=\"delete[]\" value=\"".$log['lid']."\">",
|
|
"<a href=\"home.php?mod=space&uid=".$log['uid']."\" target=\"_blank\">".$log['username']['username']."</a> (".$lang['uid'].": ".$log['uid'].")",
|
|
"<font color=\"#2366A8\">".$log['username']['username']."</font> ".lang('plugin/k_gaiming', 'logcp_1')." <font color=\"#2366A8\">".$log['dateline']."</font> ".lang('plugin/k_gaiming', 'logcp_2')." <font color=\"#2366A8\">".$log['oldname']."</font> ".lang('plugin/k_gaiming', 'logcp_3')." <font color=\"#2366A8\">".$log['newname']."</font>",
|
|
$log['creditnum']." ".$_G['setting']['extcredits'][$log['creditunit']]['unit'].$_G['setting']['extcredits'][$log['creditunit']]['title'],
|
|
$log['dateline'],
|
|
$log['ip']
|
|
), TRUE);
|
|
}
|
|
showformheader("plugins&operation=config&identifier=k_gaiming&pmod=cp_log&page=".$page, "enctype");
|
|
|
|
showtableheader();
|
|
showtitle('search');
|
|
showtablerow('', array('width="50"', 'width="130"'), array(
|
|
$lang['uid'],
|
|
"<input size=\"25\" name=\"uid\" type=\"text\" value=\"".$_GET['uid']."\" />",
|
|
"<input class=\"btn\" type=\"submit\" value=\"".$lang['search']."\" />"
|
|
));
|
|
showtablefooter();
|
|
|
|
showtableheader('');
|
|
showsubtitle(array('', lang('plugin/k_gaiming', 'logcp_6'), lang('plugin/k_gaiming', 'logcp_5'), lang('plugin/k_gaiming', 'logcp_4'), lang('plugin/k_gaiming', 'logcp_7'), 'IP'));
|
|
echo $logs;
|
|
showsubmit('submit', lang('plugin/k_gaiming', 'submit'), 'del', '', $multi);
|
|
showtablefooter();
|
|
showformfooter();
|
|
}else{
|
|
|
|
if(is_array($_GET['delete'])) {
|
|
$ids = dimplode($_GET['delete']);
|
|
DB::query("DELETE FROM ".DB::table('plugin_k_gaiming_log')." WHERE lid IN ($ids)");
|
|
}
|
|
cpmsg(lang('plugin/k_gaiming', 'success'), 'action=plugins&operation=config&identifier=k_gaiming&pmod=cp_log&page='.$page, 'succeed');
|
|
} |