changeuserpwd.php

(开头部分) 3KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<?php
include_once("sessionuser.php");
 include_once("top.php");
	$act = !empty($_GET['act']) ? trim($_GET['act']) : '';
	if($act == 'save')
	{
		$pwd = !empty($_POST['p2']) ? md5(trim($_POST['p2'])) : '';
		if($pwd==""){
			echo "<script>alert('密码未修改,请使用原来密码!');location.href='usercenter.php';</script>";
			}
		else
		{
			mysql_query("update usermember set pwd='$pwd'",$conn);
			echo "<script>alert('修改成功!');location.href='usercenter.php';</script>";
			}
	}
	$sql=mysql_query("select * from usermember where name='".$_SESSION['username']."'",$conn);
	$row=mysql_fetch_array($sql);
?>
<table width="980" height="" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="220" align="left" valign="top">
      <?php include("left.php");?></td>
    <td width="760" align="right" valign="top" bgcolor="#FFFFFF"><table width="750" height="30" border="0" cellpadding="0" cellspacing="0"  class="nav1">
                <tr>
                  <td align="left" class="con2">&nbsp;&nbsp;&nbsp;<b>修改密码</b></td>
        </tr>
              </table>
      <table width="500" height="10" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td></td>
        </tr>
      </table>
      <table width="700" height="100" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td height="32" bgcolor="#f1f1f1"><div align="center" style="color: #760602">修改用户密码</div></td>
        </tr>
        <tr>
          <td height="80" bgcolor="#d7d7d7"><table width="700" height="80" border="0" align="center" cellpadding="0" cellspacing="1">
              <script language="javascript">
		  function chkinput1(form)
			  {
			    if(form.p1.value=="")
				{
				  alert("请输入原密码!");
				  form.p1.select();
				  return(false);
				}
				if(form.p2.value=="")
				{
				  alert("请输新密码!");
				  form.p2.select();
				  return(false);
				}      
			   if(form.p3.value=="")
				{
				  alert("请输确认密码!");
				  form.p3.select();
				  return(false);
				} 
后面还有 48 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。