<?php
header("content-type:text/html;charset=utf-8");
include "../hexin.php";
$zh=$_REQUEST["zh"];
$mm=$_REQUEST["mm"];
$yx=$_REQUEST["yx"];
$nc=strip_tags($_REQUEST["nc"]);
if($_POST)
{
$data=post("http://".$ym."/cl/cl.php","zh=".$zh."&mm=".$mm."&nr=注册账号".$yx."，".$nc."");
if($data=="注册账号成功")
{
setcookie("zh",$zh,time()+3600*24*30,"/");
setcookie("mm",$mm,time()+3600*24*30,"/");
tctz($data,"./denglu.php");
}
else
{
tctz($data,"./zhuce.php");
}
}
tc("邮箱验证注册\\n随便填写无效\\n注册成功后\\n打开邮箱验证\\n有可能在垃圾箱！");
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>用户注册</title>
<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0">
<meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
<link rel="stylesheet" type="text/css" href="../page/css/aui.css">
</head>
<body>
<div class="aui-content aui-margin-b-15">
<form method="post" action="">
<ul class="aui-list aui-form-list">
<li class="aui-list-header">用户注册</li>
<li class="aui-list-item">
<div class="aui-list-item-inner">
<div class="aui-list-item-label-icon">
<i class="aui-iconfont aui-icon-mail"></i>
</div>
<div class="aui-list-item-input">
<input type="email" name="yx" placeholder="你的邮箱">
</div>
</div>
</li>
<li class="aui-list-item">
<div class="aui-list-item-inner">
<div class="aui-list-item-label-icon">
<i class="aui-iconfont aui-icon-mobile"></i>
</div>
<div class="aui-list-item-input">
<input type="text" name="nc" placeholder="您的昵称">
</div>
</div>
</li>
<li class="aui-list-item">
<div class="aui-list-item-inner">
<div class="aui-list-item-label-icon">
<i class="aui-iconfont aui-icon-my"></i>
</div>
<div class="aui-list-item-input">
<input type="text" name="zh" placeholder="您的账号 5-10位数字">
</div>
</div>
</li>
<li class="aui-list-item">
<div class="aui-list-item-inner">
<div class="aui-list-item-label-icon">
<i class="aui-iconfont aui-icon-lock"></i>
</div>
<div class="aui-list-item-input">
<input type="password" name="mm" placeholder="您的密码 6-12字母或数字">
</div>
</div>
</li>
<li class="aui-list-item">
<div class="aui-list-item-inner aui-list-item-center aui-list-item-btn">
<input type="submit" class="aui-btn aui-btn-info aui-margin-r-5" value="注册">
<a href="./denglu.php" class="aui-btn aui-btn-danger aui-margin-l-5">登陆</a>
</div>
</li>
</ul>
</form>
</div>
</body>
</html>