www.gusucode.com > ShopEx481 & PHPWind 整合版码程序 > bbs/hack/toolcenter/require/flower.php
<?php !function_exists('readover') && exit('Forbidden'); /**** @name:鲜花道具 @type:帖子类 @effect:增加帖子的推荐数 ****/ if($tooldb['type']!=1){ Showmsg('tooluse_type_error'); // 判断道具类型是否设置错误 } $db->update("UPDATE pw_threads SET dig=dig+1 WHERE tid='$tid'"); $db->update("UPDATE pw_usertool SET nums=nums-1 WHERE uid='$winduid' AND toolid='$toolid'"); $logdata = array( 'type' => 'use', 'nums' => '', 'money' => '', 'descrip' => "tool_{$toolid}_descrip", 'uid' => $winduid, 'username' => $windid, 'ip' => $onlineip, 'time' => $timestamp, 'toolname' => $tooldb['name'], 'from' => '', ); writetoollog($logdata); Showmsg('toolmsg_success'); ?>