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

📄 inter_message.php

📁 Download you own three BR
💻 PHP
字号:
<?php

if (isset($_POST)) {
	    include_once("functions/func_common.php");
	if ($_POST['e_username']=="") {
		echomsg("请输入收信人的名称!");
	}else {
	    include_once("functions/class_mysql.php");

		$query=$db->query("select * from player_info where `p_nickname`='".$_POST['e_username']."';");
		$num=$db->num_rows($query);
		if (!$num>0) {
			echomsg("该用户不存在!");
		}
	}
	if ($_POST['e_title']=="") {
		echomsg("请输入信件标题!");		
	}
	if ($_POST['e_text']=="") {
		echomsg("请输入信件正文!");
	}
//	$e_times=date("Y-m-d", time()); 
	$query=$db->query("INSERT INTO e_mail (`id` ,`e_name` ,`e_username` ,`e_title` ,`e_text` ,`e_times` ,`e_read` ,e_type ) VALUES (NULL , '".$_COOKIE['NickName']."', '".$_POST['e_username']."', '".$_POST['e_title']."', '".$_POST['e_text']."', '".time()."', '0','2');");
	echomsg("信息发送成功!","message.php?e_type=2");
}
?>

⌨️ 快捷键说明

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