-
Notifications
You must be signed in to change notification settings - Fork 0
/
fk1.php
99 lines (97 loc) · 3.63 KB
/
fk1.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<?php
require("include/global.php");
?>
<html xmlns="http:https://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title><?php echo $db->ly_system("system",2)?></title>
<META name=keywords content="<?php echo $db->ly_system("system",3)?>">
<meta name="description" content="<?php echo $db->ly_system("system",4)?>">
<link href="images/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="images/check.js"></script>
</head>
<body>
<table width="100%" height="100%" border="0" align="center" cellpadding="8" cellspacing="0">
<tr>
<td height="470" align="left" valign="top" bgcolor="#FFFFFF"><?php
$ip=$_SERVER['REMOTE_ADDR'];
$sql="select * from lockip where lockip='$ip'";
$rs=mysql_query($sql);
if(mysql_num_rows($rs)>0)
{
?>
<script language="javascript">
alert("抱歉!您已经被管理员锁定,可能因为您发表了不合适言论!\n请与管理员联系");
location.href="index.php"
</script>
<?php
die();
}
if($_POST["Submit"])
{
$username=$_POST["username"];
$qq=$_POST["qq"];
$email=$_POST["email"];
$homepage=$_POST["homepage"];
$face=$_POST["face"];
$title=$_POST["title"];
$content=$_POST["content"];
$time=date('Y-m-d H:i:s');
$ip=$_SERVER['REMOTE_ADDR'];
$sql="insert into leavewords (username,qq,email,homepage,face,leave_title,leave_contents,leave_time,ip) values ('$username',$qq,'$email','$homepage','$face','$title','$content','$time','$ip')";
mysql_query($sql);
echo "<script language=javascript>alert('您的留言已在审核中,请稍等!');window.location='index.php'</script>";
?>
<?php
}
?>
<form id="form1" name="form1" method="post" action="" onsubmit=return(CheckInput()) style="margin-top:0px;">
<table width="100%" border="0" align="center" cellpadding="5" cellspacing="1" bordercolor="#000000" bgcolor="#CCCCCC">
<tr>
<td colspan="2" align="right" bgcolor="#FFFFFF"><a href="index.php">返回留言板</a> </td>
</tr>
<tr>
<th colspan="2" bgcolor="#FFFFFF">添加留言(带红色 * 号为必填项)</th>
</tr>
<tr>
<td width="74" align="center" bgcolor="#FFFFFF">网友昵称:</td>
<td width="604" bgcolor="#FFFFFF"><input name="username" type="text" id="username" />
<span class="style1">*</span></td>
</tr>
<tr>
<td align="center" bgcolor="#FFFFFF">网友扣扣:</td>
<td bgcolor="#FFFFFF"><input name="qq" type="text" id="qq" /></td>
</tr>
<tr>
<td align="center" bgcolor="#FFFFFF">您的邮箱:</td>
<td bgcolor="#FFFFFF"><input name="email" type="text" id="email" />
<span class="style1">*</span></td>
</tr>
<tr>
<td align="center" bgcolor="#FFFFFF">个人主页:</td>
<td bgcolor="#FFFFFF"><input name="homepage" type="text" id="homepage" value="http:https://" /></td>
</tr>
<input type="hidden" value="1" name="face" checked="checked" />
<tr>
<td align="center" bgcolor="#FFFFFF">留言标题:</td>
<td bgcolor="#FFFFFF"><input name="title" type="text" id="title" />
<span class="style1">*</span></td>
</tr>
<tr>
<td colspan="2" bgcolor="#FFFFFF">
留言内容: </td>
</tr>
<tr>
<td colspan="2" bgcolor="#FFFFFF"><textarea name="content" cols="60" rows="5"></textarea></td>
</tr>
<tr>
<td colspan="2" align="center" bgcolor="#FFFFFF"><input type="submit" name="Submit" value="提交" />
<input type="reset" name="Submit2" value="重置" /></td>
</tr>
</table>
</form></td>
</tr>
</table>
<hr><p align="center"><?php echo $db->ly_system("system",60)?></p>
</body>
</html>