⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 birth.php

📁 PHPWind Board 修改的树形论坛
💻 PHP
字号:
<?php
!function_exists('readover') && exit('Forbidden');

/****

@name:生日卡
@type:会员类
@effect:对特定用户使用。

****/
InitGP(array('uid'));
if($tooldb['type']!=2){
	Showmsg('tooluse_type_error');  // 判断道具类型是否设置错误
}
if(!$uid){
	Showmsg('tooluse_nobirther');
}
require_once(R_P.'require/msg.php');
$men = $db->get_one("SELECT username FROM pw_members WHERE uid='$uid'");
if(!$men['username']){
	Showmsg('tooluse_nobirther');
}
$db->update("UPDATE pw_usertool SET nums=nums-1 WHERE uid='$winduid' AND toolid='$toolid'");
$msg = array(
	$men['username'],
	$winduid,
	'birth_title',
	$timestamp,
	'birth_content',
	'N',
	$windid
);
writenewmsg($msg,1);

$logdata = array(
	'type'		=>	'use',
	'descrip'	=>	'tool_16_descrip',
	'uid'		=>	$winduid,
	'username'	=>	$windid,
	'toname'	=>	$men['username'],
	'ip'		=>	$onlineip,
	'time'		=>	$timestamp,
	'toolname'	=>	$tooldb['name'],
	'subject'	=>	$subject,
);

writetoollog($logdata);

Showmsg("已向您的好友发送了生日贺卡");
?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -