";
}
else if ($action==reg)
{
usemess("請在下表填寫註冊資訊",'必填','必填','必填','必填','必填','必填','必填');
}
if ($action==add)
{
if ($useni) //若有資訊
{
🎜> if ($bq[$ i]) $usebq=$bq[$i];
}
$reginfo=reg($usename,$usepass,$usemail,$useweb,$useni,$useoicic; usezy,$useaddr,$useinf,$usety,$usebq,$useqm);
switch ($reginfo)
{ break;
"錯誤!密碼超長",$usename,$usemail,$useweb,$useni,$useoicq,$useaddr,$useqm);
break;
break;
usemess("錯誤!oicq號非法",$usename,$usemail,$useweb,$useni,$useoicq,$useaddr,$useqm);
break;
🎜> usemess("錯誤!使用者密碼含有非法字元",$usename,$usemail,$useweb,$useni,$useoicq,$useaddr,$useqm); usemess("錯誤!使用者名稱含有非法字元",$usename,$usemail,$useweb,$useni,$useoicq,$useaddr,$useqm); $reginfo==6):
usemess("錯誤!非法OICQ號碼",$usename,$usemail,$useweb,$useni,$useoicq,$use m); break case ($reginfo==7):
usemess("錯誤!非法EMAIL位址",$usename,$usemail,$useweb,$useni,$useoicq,$useaddr,$useqm); 🎜> case ($reginfo==8):
usemess("非常道歉!這個使用者已經存在,請重新選擇",$usename,$usemail,$useweb,$useni,$useoicq,$useaddr,$useqm);
break;
🎜> usemess("未知錯誤!",$usename,$usemail,$useweb,$useni,$useoicq,$useaddr,$usemail,$useweb,$useni,$useoicq,$useaddr,$usemail,$useweb)$useni,$useoicq,$useaddr,$useqm);
break;
錯誤,請與
黑暗居士聯絡",$usename,$usemail,$useweb,$useni,$useoicq,$useaddr,$useqm);
break;
> default:
$reginfo=update($reginfo);
}
}
else usemess("請填寫好你的資料",'必填','必填','必填','必填','必填','必填','必填');
}
if ($action==dl) //登入函數
{
if ($uname)
from useinfo where usename='".$uname."'"; //檢查用戶是否有
$req=@mysql_query($query);
$ user=@mysql_fetch_array($req);
if ($user[0]==$upass) $time=date(Y年n月j日G時i分);
$query="update useinfo set enddate='$time' where usename='".$uname."'"; else dlmes("資料登入錯誤!");
");
}
else dlmes("無法找到使用者資訊,請確認!如果還沒註冊,請點選
這裡") ;
}
else dlmes("使用者登入");
}
?>