<?php
require("lib.inc");
if($u_name=='')
{
$title="欢迎使用本系统提供的服务!";
$bgcolor="#ffffcc";
showHtmlHead($title,$bgcolor);
require("login.inc");
showHtmlFooter();
}
else {if(!connect_mysql())
exit();
else{
$query="
select user_id
from user
where u_name='$user' and
passwd=password('passwd')";
$result=mysql_query($query);
if(mysql_num_rows($result)==0){
unset($now);
echo "对不起,您的用户名/密码不正确!<br>";
echo "请您点击这里<a href='login.php'>这里</a>重试!<br>";
exit;
}
else{
$msg="祝贺您通过验证!";
$msg.="点击这里M<a href='welcome.php?user_id=$user_id'>
这里</a>进入服务区!<br>";
showMessage($msg);
exit;
}
}
else{
$msg="无法连接数据库服务器,请联系";
$msg.="<a href=mailto:[email protected]>站长</a>!";
showMessage($msg);
exit;
}
}
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><? echo $title;?></title>
</head><body></body>
</html>
require("lib.inc");
if($u_name=='')
{
$title="欢迎使用本系统提供的服务!";
$bgcolor="#ffffcc";
showHtmlHead($title,$bgcolor);
require("login.inc");
showHtmlFooter();
}
else {if(!connect_mysql())
exit();
else{
$query="
select user_id
from user
where u_name='$user' and
passwd=password('passwd')";
$result=mysql_query($query);
if(mysql_num_rows($result)==0){
unset($now);
echo "对不起,您的用户名/密码不正确!<br>";
echo "请您点击这里<a href='login.php'>这里</a>重试!<br>";
exit;
}
else{
$msg="祝贺您通过验证!";
$msg.="点击这里M<a href='welcome.php?user_id=$user_id'>
这里</a>进入服务区!<br>";
showMessage($msg);
exit;
}
}
else{
$msg="无法连接数据库服务器,请联系";
$msg.="<a href=mailto:[email protected]>站长</a>!";
showMessage($msg);
exit;
}
}
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><? echo $title;?></title>
</head><body></body>
</html>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货