雷火电竞-中国电竞赛事及体育赛事平台

歡迎來到入門教程網(wǎng)!

phpwind

當(dāng)前位置:主頁 > CMS教程 > phpwind >

phpwind護(hù)身符道具不過期問題

來源:本站原創(chuàng)|時(shí)間:2020-01-11|欄目:phpwind|點(diǎn)擊:

關(guān)鍵字描述:?jiǎn)栴} 不過 道具   > uid " Showmsg & if

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

整個(gè)文件內(nèi)容替換為一下代碼:

Copy code
<?php
!function_exists('readover') && exit('Forbidden');

/****

@name:護(hù)身符
@type:會(huì)員類
@effect:使用后,不能對(duì)該用戶實(shí)現(xiàn)豬頭術(shù)效果。

****/
InitGP(array('uid'));
if($tooldb['type']!=2){
Showmsg('tooluse_type_error'); // 判斷道具類型是否設(shè)置錯(cuò)誤
}
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里設(shè)置paypal貝寶網(wǎng)上支付獲得收益

欄    目:phpwind

下一篇:PHPWind論壇核心設(shè)置詳細(xì)說明【config.php】

本文標(biāo)題:phpwind護(hù)身符道具不過期問題

本文地址:http://www.jygsgssxh.com/a1/phpwind/13058.html

網(wǎng)頁制作CMS教程網(wǎng)絡(luò)編程軟件編程腳本語言數(shù)據(jù)庫服務(wù)器

如果侵犯了您的權(quán)利,請(qǐng)與我們聯(lián)系,我們將在24小時(shí)內(nèi)進(jìn)行處理、任何非本站因素導(dǎo)致的法律后果,本站均不負(fù)任何責(zé)任。

聯(lián)系QQ:835971066 | 郵箱:835971066#qq.com(#換成@)

Copyright © 2002-2020 腳本教程網(wǎng) 版權(quán)所有