虚位以待(AD)
虚位以待(AD)
首页 > CMS教程 > Phpwind > phpwind教程:护身符道具不过期问题

phpwind教程:护身符道具不过期问题
类别:Phpwind   作者:码皇   来源:互联网   点击:

打开:hack toolcenter require defend php整个文件内容替换为一下代码: Copy code ?php!function_exists( readover ) exit( Forbidden ); ****@name:护身符@type:会员类@effect:使用后,不能对该用户实现猪头术效 ,魔客吧
打开: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教程:护身符道具不过期问题