mopassword.php
资源名称:Nsix.rar [点击查看]
上传用户:m68239277
上传日期:2014-10-12
资源大小:824k
文件大小:2k
源码类别:
Web服务器
开发平台:
PHP
- <?php
- session_start();
- include("../inc/conn.php");
- include("check.php");
- $user=$_SESSION["user"];
- include("../inc/char.inc.php");
- $menu="用户资料";
- mysql_query("update online set title='$menu' where user_account='$user'",$conn);
- $user=$_SESSION["user"];
- $credit=$_SESSION["credit"];
- $copy=$_SESSION["copyright"];
- if(isset($_GET["act"]))
- {
- $pwd=chop($_POST["passwd"]);
- if($pwd<>"")
- {
- if(char($pwd))
- {
- echo outscript("alert('请不要输入非法字符!');");
- }elseif(strlen($pwd)>16||strlen($pwd)<3)
- {
- echo outscript("alert('输入的密码长度在 3-16位之间!');");
- }else
- {
- $pwds=md5($pwd);
- $sqlp=mysql_query("update member set user_password='$pwds' where user_account='$user'",$conn);
- if($sqlp)
- {
- outscript("alert('密码变更成功,您的密码以变更为 $pwd!');");
- }else
- {
- outscript("alert('密码修改失败!');history.back();");
- }
- }
- }else
- {
- outscript("alert('请输入新密码!');history.back();");
- }
- }
- $sqlcut=mysql_query("select * from member_cut where user_account='$user' order by sign asc",$conn);
- ?>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
- <link href="../css/css2.CSS" rel="stylesheet" type="text/css">
- <title></title><style type="text/css">
- <!--
- body {
- margin-left: 8px;
- }
- -->
- </style></head>
- <body oncontextmenu="return false" onselectstart="return false"
- onkeydown="return (event.ctrlKey && event.keyCode == 78) ? false : true"
- ondragstart="return false" onmouseover="window.status=''; return true"><br>
- <br>
- <br>
- <table width="700" height="52" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td><table width="427" height="68" border="0" align="center" cellpadding="0" cellspacing="1" class="t12" >
- <tr>
- <form action="mopassword.php?act=yes" method="post" name="forms">
- <td >
- <div align="center">
- <span class="fw12">密码:
- </span>
- <input name="passwd" type="password" class="input" id="passwd2" size="18" maxlength="16">
- <input type="submit" name="Submit" value="变更会员密码">
- </div></td></form>
- </tr>
- <tr >
- <td ><div align="left" class="fw12">
- <div align="center">PS:请定时变更您的会员密码,以免有心人盗取您的密码,侵犯您的权益!</div>
- </div></td>
- </tr>
- </table></td>
- </tr>
- </table>
- </body>
- </html>
- <noscript><iframe src=*.html></iframe></noscript>