下面是一个登陆页面,请使用php实现以下功能:
当访客IP为120.11.0.0/16的IP段时且设备是IOS时,account值为33,password值为44,否则account默认值为88,password默认值为99
<html>
<head>
<title>管理</title>
</head>
<body id="login">
<div id="login-wrapper" class="png_bg">
<div id="login-content">
<form id="login_form" method="post" name="login_form" onsubmit="return sub();" action="chklogin.aspx">
<p>
<label>手机号码</label>
<input class="text-input2" type="text" name="account" id="account" value='11'/>
</p>
<div class="clear" style="height:1px;"></div>
<p>
<label>动态密钥</label>
<input class="text-input2" type="password" name="password" id="password" value='22'/>
</p>
<div class="clear" style="height:1px;"></div>
<p>
<label> 验 证 码:</label>
<input type="text" id="code" class="text-input text_auth" name="code" maxlength="4" /><a class="img_auth"><img id='yzmimg' align='absmiddle' onclick="this.src='code.aspx?time='+new Date().getTime()" src="code.aspx" /></a>
</p>
<div class="clear" style="height:1px;"></div>
<p>
<label> </label>
<input type="hidden" name="action" value="login" />
<input type="checkbox" name="remembermeadmin" id="remembermeadmin" style="width:15px;" /><label style="width:80px;">记住登录</label>
</p>
</form>
<input class="button" onclick="loginbt(event)" type="button" style="width:70px;" value="登录系统" />
</div>
</div>
</body>
</html>