手机
当前位置:查字典教程网 >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 系统强制您所在的用户组必须设置安全问题

在phpwind里设置paypal贝宝网上支付获得收益

phpwind后台删除用户点选“直接删除”出错问题

phpwind 今日发贴数量不显示解决

PHPWind论坛核心设置详细说明【config.php】

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

巧用Discuz!7.0后台防灌水功能

PHPWind7.0风格css样式详解

phpwind7.5运营工具:站点运营必须工具集合

phpwind热榜排行最新回复排序问题

精品推荐
分类导航