eak;
case ($reginfo==7):
usemess("错误!非法EMAIL地址",$usename,$usemail,$useweb,$useni,$useoicq,$useaddr,$useqm);
break;
case ($reginfo==8):
usemess("非常报歉!这个用户已经存在,请重新选择",$usename,$usemail,$useweb,$useni,$useoicq,$useaddr,$useqm);
break;
case ($reginfo==9):
usemess("未知错误!",$usename,$usemail,$useweb,$useni,$useoicq,$useaddr,$useqm);
break;
case ($reginfo==10):
usemess("写入数据库错误,请与<font color='ffffff'>黑暗居士</font>联系",$usename,$usemail,$useweb,$useni,$useoicq,$useaddr,$useqm);
break;
default:
$reginfo=update($reginfo);
regok("注册成功,以下是你的个人信息",$reginfo);
break;
}
}
else usemess("请填写好你的信息",'必填','必填','必填','必填','必填','必填','必填');
}
if ($action==dl) //登录函数
{
if ($uname)
{
$query="select usepass,usename,enddate,useni from useinfo where usename='".$uname."'"; //检查是否存在用户
$req=@mysql_query($query);
if ($req)
{
$user=@mysql_fetch_array($req);
if ($user[0]==$upass) //检查口令是否正确
{
$time=date(Y年n月j日G时i分);
$query="update useinfo set enddate='$time' where usename='".$uname."'";
$req=@mysql_query($query);
if ($req) dlokey($user);
else dlmes("数据登录错误!");
}
else dlmes("用户密码不正确,请校验!");
}
else dlmes("不能找到用户信息,请确认!如果还未注册,请点击<a href='reguse.php?action=xy'>这里</a>");
}
else dlmes("用户登录");
}
?>
</body>
</html>
case ($reginfo==7):
usemess("错误!非法EMAIL地址",$usename,$usemail,$useweb,$useni,$useoicq,$useaddr,$useqm);
break;
case ($reginfo==8):
usemess("非常报歉!这个用户已经存在,请重新选择",$usename,$usemail,$useweb,$useni,$useoicq,$useaddr,$useqm);
break;
case ($reginfo==9):
usemess("未知错误!",$usename,$usemail,$useweb,$useni,$useoicq,$useaddr,$useqm);
break;
case ($reginfo==10):
usemess("写入数据库错误,请与<font color='ffffff'>黑暗居士</font>联系",$usename,$usemail,$useweb,$useni,$useoicq,$useaddr,$useqm);
break;
default:
$reginfo=update($reginfo);
regok("注册成功,以下是你的个人信息",$reginfo);
break;
}
}
else usemess("请填写好你的信息",'必填','必填','必填','必填','必填','必填','必填');
}
if ($action==dl) //登录函数
{
if ($uname)
{
$query="select usepass,usename,enddate,useni from useinfo where usename='".$uname."'"; //检查是否存在用户
$req=@mysql_query($query);
if ($req)
{
$user=@mysql_fetch_array($req);
if ($user[0]==$upass) //检查口令是否正确
{
$time=date(Y年n月j日G时i分);
$query="update useinfo set enddate='$time' where usename='".$uname."'";
$req=@mysql_query($query);
if ($req) dlokey($user);
else dlmes("数据登录错误!");
}
else dlmes("用户密码不正确,请校验!");
}
else dlmes("不能找到用户信息,请确认!如果还未注册,请点击<a href='reguse.php?action=xy'>这里</a>");
}
else dlmes("用户登录");
}
?>
</body>
</html>