usercenter.php
(开头部分) 6KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
include("top.php");
include_once("sessionuser.php");
$act = !empty($_GET['act']) ? trim($_GET['act']) : '';
if($act == 'save')
{
$email=$_POST['email'];
$truename=$_POST['truename'];
$tel=$_POST['tel'];
$qq=$_POST['qq'];
$dizhi=$_POST['dizhi'];
$youbian=$_POST['youbian'];
if(!empty($_FILES['img']['name'])){
$file = $_FILES['img'];//得到传输的数据
//得到文件名称
$name = $file['name'];
$type = strtolower(substr($name,strrpos($name,'.')+1)); //得到文件类型,并且都转化成小写
//判断是否是通过HTTP POST上传的
$upload_path = ROOT_PATH.'/upimages/'; //上传文件的存放路径
//开始移动文件到相应的文件夹
$mu=mt_rand(1,10000000);
if(move_uploaded_file($file['tmp_name'],$upload_path.$mu.".".$type)){
$fileName =$mu.".".$type;
}else{
//echo "Failed!";
}
}
else
{
$fileName=$_POST['upfile1'];
}
mysql_query("update usermember set email='$email',truename='$truename',tel='$tel',qq='$qq',dizhi='$dizhi',youbian='$youbian',img='$fileName'",$conn);
echo "<script>alert('修改成功!');location.href='usercenter.php';</script>";
}
?>
<table width="980" height="" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="220" valign="top"><?php include("left.php");?></td>
<td width="760" align="center" valign="top" bgcolor="#FFFFFF">
<table width="100%" height="30" border="0" cellpadding="0" cellspacing="0" class="nav1">
<tr>
<td align="left" class="con2"> <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" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="32" bgcolor="#f1f1f1"><div align="center" style="color: #660206"><?php echo $_SESSION['username'];?>的所有信息</div></td>
</tr>
<tr>
<td height="160" bgcolor="#d7d7d7"><table width="750" height="160" border="0" align="center" cellpadding="0" cellspacing="1">
后面还有 108 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。