function getavatar($idm,$vignette,$sexe,$size){ if( !is_null($size) ){ switch($size){ case 1:$size = 'mini_';break; case 2:$size = 'mini_';break; case 3:$size = 'original_';break; } }else{ $size= 'micro_' ; } if($vignette != ''){ if($idm <1000){$rep=0 ;}else{$rep=floor($idm/1000) ;} $path = "http://www.liberticam.com/ImgUsers/".$rep."/".$idm."/".$size.$vignette ; return $path ; }else{ $path = $pix."http://www.liberticam.com/x/images/ico/avatar_".$sexe.'.jpg'; return $path ; } } ?>