8¡¢×¢²aÎļþreg.php3
<?
require("common.php3");
require("mail.php3");
if($submit){
if($id=="")error("ÇeÌiдÄuµÄ×¢²aÓû§Ãu£¡");
elseif(!eregi("^[0-9a-zA_Z]+$",$id))error("ÄaµÄÓû§Ãu²»Äܺ¬ÓÐÆaËu×Öu£¡");
elseif($password=="")error("ÇeÌiдÄuµÄÃÜÂe£¡");
elseif($password<>$password1)error("ÄuµÄÃÜÂeÌiд²»ÕýÈ£¡");
elseif($name=="")error("ÇeÌiдÄuµÄÃu×Ö£¡");
elseif($mail=="")error("ÇeÌiдÄuµÄÓʼþµØÖ£¡");
else{
$dbm=dbmopen("class","w");
if(dbmexists($dbm,$id))error("Õa¸oÓû§ÃuÒѾ¸ø±ðÈË×¢²aÁË£¡");
else{
$intro=nl2br($intro);
$data="$name|!:!|$nickname|!:!|$mail|!:!|$home|!:!|$oicq|!:!|$icq|!:!|$add|!:!|$tel|!:!|$birth|!:!|$job|!:!|$intro|!:!|$sex";
dbminsert($dbm,$id,$data);
$pwd=dbmopen("password","w");
dbminsert($pwd,$id,$password);
}
dbmclose($dbm);
$sendmsg="»¶Ó×¢²a¡¶ÉiÛÚÖÐѧ2000½i¸ßÖУ¨12£(C)°aͬѧ¼¡n";
$sendmsg.="ÏÂÃaeÊÇÄuµÄ×¢²aÐÅÏ¢£ºn";
$sendmsg.="Óû§Ãu£º$idnÓû§ÃÜÂe£»$passwordn";
$sendmsg.="=====================================================";
$sendmsg.="×¢²aÐÕÃu£º$namen×¢²aedzƣº$nicknamen×¢²aÓÊÏa£º$mailnÖ÷Ò³µØÖ£º$homen";
$sendmsg.="ÄuµÄOICQ£º$oicqnÄuµÄ ICQ£º$icqnÁªÏµµØÖ£º$addnÁªÏµµç»°£º$teln";
$sendmsg.="ÄuµÄÉuÈÕ£º$birthnÄuµÄÖ°Òµ£º$jobnÄuµÄÐÔ±ð£»$sexnÄuµÄ¸oÈ˽eÉÜ£ºn$intronn";
$sendmsg.="======================================================";
$sendmsg.="»¶Ó×¢²a¡¶ÉiÛÚÖÐѧ2000½i¸ßÖУ¨12£(C)°aͬѧ¼¡";
$sendmsg.="µÇ½µØÖ£ºhttp://5212.net/class/";
mail2("»¶Ó×¢²a¡¶ÉiÛÚÖÐѧ2000½i¸ßÖУ¨12£(C)°aͬѧ¼¡*",$sendmsg,$mail);
header("Location:index.php3");
}
}else{
?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
9¡¢½¨Á¢Êý¾Ý¿aµÄÎļþrun.php3
<?
$dbm=dbmopen("class","c");
dbmclose($dbm);
$dbm=dbmopen("password","c");
dbmclose($dbm);
?>