User not found

"); elseif($gb_mid==0)print("


Member ".$gb_uid." No Longer Exist

"); elseif(isIgnored($gb_mid)!=0)print("


Member ".$gb_uid." is not available.

"); else displayMem($gb_mid); mysql_close($db); require("../zinc/foot.php"); //============================================================== function getMemID($uid){ global $db; $v=-1; $result=mysql_query("select mem_id,mem_status,username from cz_members where username='".$uid."'",$db); if( ($rs=mysql_fetch_array($result)) ){ if($rs['mem_status']>=10)$v=0; else $v=$rs['mem_id']; } mysql_free_result($result); return $v; } //============================================================== function isIgnored($mid){ global $db,$gbMemID; $v=0; if($gbMemID!="" && $mid!=$gbMemID){ $result=mysql_query("select mem_id from cz_mem_ignore where mem_id=".$mid." and ignore_mem_id=".$gbMemID,$db); if( ($rs=mysql_fetch_array($result)) ){ $v=1; } mysql_free_result($result); } return $v; } //============================================================== function displayMem($mid){ global $db,$rootdir,$gbMemID; $result=mysql_query("select m.*,s.state_name,c.country_name from cz_members m,ref_state s,ref_country c where m.state_id=s.state_id and m.country_id=c.country_id and m.mem_id=".$mid,$db); if( ($rs=mysql_fetch_array($result)) ){ $pro_pic=$rs['profile_pic']; $memage=getAge($rs['dob']); $hasrel=1; if($pro_pic!='' && $pro_pic!='none.gif'){ //$w=150; //$size=getimagesize($rootdir.'img_photo/'.$pro_pic); //if($size[0]<$w)$w=$size[0]; $xt=$pro_pic;$xt=substr($xt,0,strpos($xt,".")).".jpg"; if($gbMemID==0) $pic=''; else $pic=''; } elseif($rs['gender']==1)$pic=''; else $pic=''; //-------------------------------------------------------------------------------- $GENDER = array("Unknown","Male","Female"); print(''); print('
'); print('
'.$pic.'


'); print(''.$rs['username'].'
'.$GENDER[$rs['gender']].'
'); if($memage>=18 || $hasrel!=0){ if($rs['show_age']!=0){ print('Age: '.$memage.' yrs old
'); print('AstroSign: '.getAstroSign($rs['dob']).' / '.getLunarSignDt($rs['dob']).'

'); } else print(getAstroSign($rs['dob']).'
'); if($rs['ethnicity']!="")print('Ethncity: '.$rs['ethnicity'].'
'); if($rs['show_loc']!=0){ print("Country: ".$rs['country_name'].'
'); if($rs['country_id']=="USA")print('State: '.$rs['state_name']."
"); } } print('
'); print('
'); print('HOME'); print('PHOTOS'); print('BUDDIES'); print('EVENTS'); if($gbMemID==$memID) print('CHAT'); else print('CHATS'); print('
'); print('
'); print(''); print(''); print(''); print(''); print(''); print('
'); print('
'); } mysql_free_result($result); ?>