<?php
require_once'f_sex.php';
require_once'f_simbol.php';
function profil($la,$valoare='')
{
global$conn,$domenii_statice;
$mod_profil=$_COOKIE['mod_profil']??2;
return($mod_profil>1?($conn->query('SELECT`vizibil`FROM`membrii`WHERE`id`="'.$la.'"')->fetch_row()[0]==1?'<img src="'.$domenii_statice[2].'ofl.png" alt="-" width="16" height="16" />':($conn->query('SELECT COUNT(*)FROM`membrii_conectati`WHERE`de`="'.$la.'"')->fetch_row()[0]>0?'<img src="'.$domenii_statice[1].'onl.png" alt="+" width="16" height="16" />':'<img src="'.$domenii_statice[2].'ofl.png" alt="-" width="16" height="16" />')):'').'<a href="/profil-membru/la/'.$la.'-'.seo(nume($la,1)).'">'.($mod_profil>0?simbol($la):'').($valoare!=''?$valoare:'<strong><u>'.nume($la).'</u></strong>').'</a>';
}