info.inc.php主要做些判斷與資訊處理
function update($reginfo)
{
switch ($reginfo[4]) $reginfo[4]="男";
break;
break;
}
switch ($reginfo[11])
{ break;
case ($reginfo[11]==2):
case ($reginfo[11]== 3):
$reginfo[11]="管理人";
break;
站長" ;
break;
default:
$reginfo[ > switch ($reginfo[6])
{
case ($reginfo[6]==5):
$reginfo[6]="我是學生";
> $reginfo[6]="公務員";
break;
case) ($reginfo[6]==2): case ($reginfo[6]==3):
$reginfo[6]="自由職業";
🎜> $reginfo[6]="無所事";
break;
break;
}
if ($reginfo[12]==1) $reginfo[12]="是";
else $reginfo[12]=="否";
if ($reginfo[18]==1) $ reginfo[18]="是";
else $reginfo[18]="否";
if ($reginfo[12]==2)
{$reginfo[4]=$reginfo[12]==2)
{$reginfo[4]=$reginfo[ 4]." [保密]";
$reginfo[5]=$reginfo[5]." [保密]";
$reginfo[6]=$reginfo[6]." [保密]" ;
$reginfo[7]=$reginfo[7]." [保密]";
$reginfo[8]=$reginfo[8]." [保密]";
return $reginfo;
}
else
return $reginfo;
}
function uinfo($useinfo,$t)
{
if ($t==name) return eregi(" ^[a-zA-Z0-9][_-~a-zA-Z0-9]{2,8}$",$useinfo); //判斷使用者名稱
else if($t==oicq ) return eregi("^[0-9]{1,10}$",$useinfo); //oicq
//oicq
9]{1,8}$",$useinfo); //pass
else if($t==web) //web
{
$n=strstr($useinfo,'.');
if ($n&&strlen($useinfo)>10)
{
$x[1]=substr($n,0,1);
$n=strstr(substr($n,1),'.');
$x[2]=substr($n,0,1);
if ($x[1]==$x[2]) return OK;
}
}
else return eregi("^[_.0-9a-z-]+@([0-9a-z][0-9a-z-]+.)+[a-z]{2,3}$",$useinfo); //邮箱
}
function err($mess)
{
echo "