'));
} elseif ($filter=='htmlchars') {
return(hspech($val));
} elseif ($filter=='timestamp') {
return(strftime('%c',$val));
} elseif ($filter=='email') {
return(''.strip_tags($val).'');
} elseif ($filter=='url') {
return(''.strip_tags($val).'');
} elseif ($filter=='image') {
return('');
} elseif ($filter=='boolt') {
if ($val)
return('Si');
else
return('No');
} elseif ($filter=='boolf') {
if ($val)
return('Si');
else
return('No');
} else {
return($val);
}
} else {
if (is_null($ntext)) {
if ($fem)
return('Non definita');
else
return('Non definito');
}
else {
return(''.$ntext.'');
}
}
}
function booly($pre,$val,$nottoobad=false,$invcol=false) {
if ($val) {
if (!$invcol) {
$p=' ';
} else {
if (!$nottoobad) {
$p=' ';
} else {
$p=' ';
}
}
return($p.$pre.'SI ';
} else {
$p=' ';
}
} else {
$p=' ';
}
return($p.$pre.'NO'.N;
// $out.='
'.N;
return($out);
}
?>
'.N;
$out.=''.N;
$out.='Attributi Info '.N;
$out.=''.$row['URI'];
if ($showcount) $out.=' ('.$finst.'/'.$cinsts.')';
$out.=' '.N;
if ($account['Level']!='guest') {
if (!is_null($row['GuestID'])) {
$out.=' '.N;
} elseif (trim($row['Email'])=='') {
$out.=' '.N;
} else {
$out.=' '.N;
}
}
$attr=booly(trimname($cols['Instances.Blacklisted']['name']).': ',$row['Blacklisted'],false,true).N;
$attr.=booly(trimname($cols['Instances.New']['name']).': ',$row['New'],true).N;
$attr.=booly(trimname($cols['Instances.Good']['name']).': ',$row['Good']).N;
$attr.=booly(trimname($cols['Instances.Chosen']['name']).': ',$row['Chosen']).N;
$attr.=booly(trimname($cols['Instances.Visible']['name']).': ',$row['Visible']).N;
/*$attr.=booly($cols['Instances.RegOpen']['name'].': ',$row['RegOpen']).N;
$attr.=booly($cols['Instances.RegReqApproval']['name'].': ',$row['RegReqApproval'],true,true).N;*/
$sres=mysqli_query($link,'SELECT * FROM InstChecks WHERE InstID='.$row['IID'].' ORDER BY Time DESC')
or muoribene(mysqli_error($link),true);
$csres=mysqli_num_rows($sres);
if ($csres>0) {
$bene=0;
while ($srow=mysqli_fetch_assoc($sres)) {
if ($srow['Status']==1)
$bene++;
}
$width=str_replace(',','.',100/$csres*$bene);
$attr.='
Accessi: '.$tot['tlogins'].'
Registrazioni: '.$tot['tregs'].''.N;
while ($srow=mysqli_fetch_assoc($sres)) {
$attr.='
'.N;
$out.=''.N;
$out.=''.$attr.' '.N;
if ($row['Blacklisted']>0) {
$sres=mysqli_query($link,'SELECT * FROM Blacklist WHERE Domain=\''.myesc($link,$row['URI']).'\'')
or muoribene(mysqli_error($link),true);
if (mysqli_num_rows($sres)>0) {
$srow=mysqli_fetch_assoc($sres);
if (!is_null($srow['PublicComment']) && preg_match('/^\s*$/',$srow['PublicComment'])!==1) {
$out.='