手机
当前位置:查字典教程网 >CMS教程 >phpwind >phpwind护身符道具不过期问题
phpwind护身符道具不过期问题
摘要:关键字描述:问题不过道具 >uid"Showmsg&if打开:hack/toolcenter/require/de...

关键字描述:问题 不过 道具   > uid " Showmsg & if

打开:hack/toolcenter/require/defend.php

整个文件内容替换为一下代码:

Copy code <?php

!function_exists('readover') && exit('Forbidden');

/****

@name:护身符

@type:会员类

@effect:使用后,不能对该用户实现猪头术效果。

****/

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');

?>

【phpwind护身符道具不过期问题】相关文章:

phpwind版主推荐权限问题

PHPWind7.3特色功能推荐

PHPWind7.0风格css样式详解

phpwind 系统强制您所在的用户组必须设置安全问题

phpwind用帖子时出现乱码问题

伪静态在phpWind中的应用

phpwind发帖 自动分析url|使用签名如何默认不选中

phpwind支付成功后收不到交易币的解决方案

PHPwind6.x CSS模板样式表修改帮助

phpwind的rewrite重写原理

精品推荐
分类导航