PHP
·
发表于 5年以前
·
阅读量:8303
6¡¢µÇ³oÎļþlogout.php3
<?
setcookie("login",false,time()+31536000);
header("location:login.php3");
?>
7¡¢ÐÞ¸ÄÐÅÏ¢Îļþmodify.php3
<?
require("common.php3");
$id=$login;
if($submit){
if($name=="")error("ÇeÌiдÄuµÄÃu×Ö£¡");
elseif($mail=="")error("ÇeÌiдÄuµÄÓʼþµØÖ*£¡");
else{
$dbm=dbmopen("class","w");
$intro=nl2br($intro);
$data="$name|!:!|$nickname|!:!|$mail|!:!|$home|!:!|$oicq|!:!|$icq|!:!|$add|!:!|$tel|!:!|$birth|!:!|$job|!:!|$intro|!:!|$sex";
dbmreplace($dbm,$id,$data);
dbmclose($dbm);
header("Location:index.php3");
}
}else{
$dbm=dbmopen("class","r");
$data=dbmfetch($dbm,$login);
$info=explode("|!:!|",$data);
dbmclose($dbm);
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|