| 1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
| 2 |
<html>
|
| 3 |
<head>
|
| 4 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
| 5 |
<title>枫林在线</title>
|
| 6 |
<link rel="stylesheet" href="css/default.css" type="text/css">
|
| 7 |
</head>
|
| 8 |
<body>
|
| 9 |
<center>
|
| 10 |
<?
|
| 11 |
include "./head.inc.php";
|
| 12 |
?>
|
| 13 |
<table width="760" border="0" cellpadding="0" cellspacing="0">
|
| 14 |
<tr height=20 bgcolor=#F3F9FC>
|
| 15 |
<td width="20"> </td>
|
| 16 |
<td>枫林在线 >> <a href="search.php">搜索</a> >> 网站登录</td>
|
| 17 |
<td width="20"> </td>
|
| 18 |
</tr>
|
| 19 |
<tr>
|
| 20 |
<td colspan=3 height=1 bgcolor=gray></td>
|
| 21 |
</tr>
|
| 22 |
<tr height=5>
|
| 23 |
<td> </td>
|
| 24 |
</tr>
|
| 25 |
</table>
|
| 26 |
<table width="760" border="0" cellpadding="0" cellspacing="0">
|
| 27 |
<tr>
|
| 28 |
<td width="10%"></td>
|
| 29 |
<td width="80%" align="center" class="td4">
|
| 30 |
<table width="95%" border="0" cellpadding="0" cellspacing="0">
|
| 31 |
<tr height="10">
|
| 32 |
<td></td>
|
| 33 |
</tr>
|
| 34 |
<tr>
|
| 35 |
<td>
|
| 36 |
<?
|
| 37 |
if (isset($_POST["sitename"]))
|
| 38 |
$sitename=trim($_POST["sitename"]);
|
| 39 |
else
|
| 40 |
$sitename="";
|
| 41 |
if (isset($_POST["url"]))
|
| 42 |
$url=trim($_POST["url"]);
|
| 43 |
else
|
| 44 |
$url="";
|
| 45 |
if (isset($_POST["class"]))
|
| 46 |
$class=trim($_POST["class"]);
|
| 47 |
else
|
| 48 |
$class="";
|
| 49 |
if (isset($_POST["location"]))
|
| 50 |
$location=trim($_POST["location"]);
|
| 51 |
else
|
| 52 |
$location="";
|
| 53 |
if (isset($_POST["description"]))
|
| 54 |
$description=trim($_POST["description"]);
|
| 55 |
else
|
| 56 |
$description="";
|
| 57 |
if (isset($_POST["name"]))
|
| 58 |
$name=trim($_POST["name"]);
|
| 59 |
else
|
| 60 |
$name="";
|
| 61 |
if (isset($_POST["email"]))
|
| 62 |
$email=trim($_POST["email"]);
|
| 63 |
else
|
| 64 |
$email="";
|
| 65 |
|
| 66 |
$sitename=addslashes($sitename);
|
| 67 |
$url=addslashes($url);
|
| 68 |
switch($class)
|
| 69 |
{
|
| 70 |
case "WWW":
|
| 71 |
case "FTP":
|
| 72 |
case "TELNET":
|
| 73 |
case "BC":
|
| 74 |
case "MMS":
|
| 75 |
break;
|
| 76 |
default:
|
| 77 |
$class="WWW";
|
| 78 |
}
|
| 79 |
switch($location)
|
| 80 |
{
|
| 81 |
case "LAN":
|
| 82 |
case "INTERNET":
|
| 83 |
break;
|
| 84 |
default:
|
| 85 |
$type="INTERNET";
|
| 86 |
}
|
| 87 |
$description=addslashes($description);
|
| 88 |
$name=addslashes($name);
|
| 89 |
$email=addslashes($email);
|
| 90 |
|
| 91 |
if ($sitename=="" || $description=="" || $name=="" || $email=="")
|
| 92 |
{
|
| 93 |
echo ("资料填写不完整!");
|
| 94 |
}
|
| 95 |
else
|
| 96 |
{
|
| 97 |
$db_conn=include "./db_open.inc.php";
|
| 98 |
|
| 99 |
$rs=mysql_query("select ID from s_e where enable=1 and url='$url'")
|
| 100 |
or die("Query data error!");
|
| 101 |
if (mysql_num_rows($rs))
|
| 102 |
{
|
| 103 |
echo ("网址已存在!");
|
| 104 |
}
|
| 105 |
else
|
| 106 |
{
|
| 107 |
mysql_query("insert into s_e (sitename,url,class,location,description,name,".
|
| 108 |
"email,ip) values('$sitename','$url','$class','$location','$description','$name',".
|
| 109 |
"'$email','".Client_Address()."')")
|
| 110 |
or die("Add data error!");
|
| 111 |
echo ("资料提交完成,我们将在两个工作日内办理。<br>\n");
|
| 112 |
echo("感谢您的支持!\n");
|
| 113 |
}
|
| 114 |
mysql_free_result($rs);
|
| 115 |
mysql_close($db_conn);
|
| 116 |
}
|
| 117 |
?>
|
| 118 |
</td>
|
| 119 |
</tr>
|
| 120 |
<tr height="10">
|
| 121 |
<td></td>
|
| 122 |
</tr>
|
| 123 |
</table>
|
| 124 |
</td>
|
| 125 |
<td width="10%"></td>
|
| 126 |
</tr>
|
| 127 |
</table>
|
| 128 |
<?
|
| 129 |
include "./foot.inc.php";
|
| 130 |
?>
|
| 131 |
</center>
|
| 132 |
</body>
|
| 133 |
</html>
|