/[LeafOK_CVS]/fenglin/www/site_reg.php
ViewVC logotype

Diff of /fenglin/www/site_reg.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.1 by sysadm, Fri Sep 9 13:35:20 2005 UTC Revision 1.3 by sysadm, Fri Mar 28 05:50:18 2025 UTC
# Line 1  Line 1 
1  <?  <?
2          include "./log.inc.php";          require_once "../lib/db_open.inc.php";
3  ?>  ?>
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">  
4  <html>  <html>
5  <head>  <head>
6  <meta http-equiv="Content-Type" content="text/html; charset=gb2312">  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
7  <title>枫林在线</title>  <title>鏋灄鍦ㄧ嚎</title>
8  <link rel="stylesheet" href="css/default.css" type="text/css">  <link rel="stylesheet" href="css/default.css" type="text/css">
9  </head>  </head>
10  <body>  <body>
# Line 16  Line 15 
15  <table width="760" border="0" cellpadding="0" cellspacing="0">  <table width="760" border="0" cellpadding="0" cellspacing="0">
16          <tr height=20 bgcolor=#F3F9FC>          <tr height=20 bgcolor=#F3F9FC>
17                  <td width="20">&nbsp;</td>                  <td width="20">&nbsp;</td>
18                  <td>枫林在线 &gt;&gt; <a href="search.php">搜索</a> &gt;&gt; 网站登录</td>                  <td>鏋灄鍦ㄧ嚎 &gt;&gt; <a href="search.php">鎼滅储</a> &gt;&gt; 缃戠珯鐧诲綍</td>
19                  <td width="20">&nbsp;</td>                  <td width="20">&nbsp;</td>
20          </tr>          </tr>
21          <tr>          <tr>
# Line 93  Line 92 
92    
93          if ($sitename=="" || $description=="" || $name=="" || $email=="")          if ($sitename=="" || $description=="" || $name=="" || $email=="")
94          {          {
95                  echo ("资料填写不完整!");                  echo ("璧勬枡濉啓涓嶅畬鏁达紒");
96          }          }
97          else          else
98          {          {
                 $db_conn=include "./db_open.inc.php";  
   
99                  $rs=mysql_query("select ID from s_e where enable=1 and url='$url'")                  $rs=mysql_query("select ID from s_e where enable=1 and url='$url'")
100                          or die("Query data error!");                          or die("Query data error!");
101                  if (mysql_num_rows($rs))                  if (mysql_num_rows($rs))
102                  {                  {
103                          echo ("网址已存在!");                          echo ("缃戝潃宸插瓨鍦紒");
104                  }                  }
105                  else                  else
106                  {                  {
107                          mysql_query("insert into s_e (sitename,url,class,location,description,name,".                          mysql_query("insert into s_e (sitename,url,class,location,description,name,".
108                                  "email,ip) values('$sitename','$url','$class','$location','$description','$name',".                                  "email,ip) values('$sitename','$url','$class','$location','$description','$name',".
109                                  "'$email','".Client_Address()."')")                                  "'$email','".client_addr()."')")
110                                  or die("Add data error!");                                  or die("Add data error!");
111                          echo ("资料提交完成,我们将在两个工作日内办理。<br>\n");                          echo ("璧勬枡鎻愪氦瀹屾垚锛屾垜浠皢鍦ㄤ袱涓伐浣滄棩鍐呭姙鐞嗐<br>\n");
112                          echo("感谢您的支持!\n");                          echo("鎰熻阿鎮ㄧ殑鏀寔锛乗n");
113                  }                  }
114                  mysql_free_result($rs);                  mysql_free_result($rs);
115                  mysql_close($db_conn);                  mysql_close($db_conn);


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1