关键字描述:问题 不过 道具   > uid " Showmsg & if 打开:hack/toolcenter/require/defend.PHP整个文件内容替换为一下代码: Copy
关键字描述:问题 不过 道具   > uid " Showmsg & if
打开:hack/toolcenter/require/defend.PHP
整个文件内容替换为一下代码:
<?php!function_exists('readover') && exit('Forbidden');
InitGP(array('uid'));
if($tooldb['type']!=2){
Showmsg('tooluse_type_error'); // 判断道具类型是否设置错误
}
if(!$uid){
Showmsg('tooluse_nodefender');
}
$rt = $db->get_one("SELECT MAX(time) AS tooltime FROM pw_toollog WHERE touid='$uid' AND filename='defend'");
if($rt && $rt['tooltime']>$timestamp-3600*48){
Showmsg('tooluse_deused');
}
$db->update("UPDATE pw_usertool SET nums=nums-1 WHERE uid='$winduid' AND toolid='$toolid'");
$logdata=array(
'type' => 'use',
'filename' => 'defend',
'descrip' => 'tool_21_descrip',
'uid' => $winduid,
'username' => $windid,
'touid' => $uid,
'ip' => $onlineip,
'time' => $timestamp,
'toolname' => $tooldb['name'],
);
writetoollog($logdata);
Showmsg('toolmsg_success');
?>
--结束END--
本文标题: phpwind护身符道具不过期问题
本文链接: https://lsjlt.com/news/32555.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0