diff --git a/web/site/instances.php b/web/site/instances.php index fa88b62..d0b412f 100644 --- a/web/site/instances.php +++ b/web/site/instances.php @@ -507,7 +507,8 @@ while ($if<$il && $row=mysqli_fetch_assoc($res)) { $buf=array(); while ($rrow=mysqli_fetch_assoc($rres)) $buf[]=hspech($rrow['Lang']); - $out.='
'; + ($row['Thumb']=='unavailable') ? $thumb=$prepath.'imgs/InstThumbUnavailable.svg' : $thumb=$row['Thumb']; + $out.='
'; // if (!is_null($row['Priority'])) $out.=''; if (!is_null($row['Priority'])) $out.='
'._('Recommended').'
'; $out.='
'.N; @@ -605,11 +606,14 @@ while ($if<$il && $row=mysqli_fetch_assoc($res)) { } $out.='
'.N; - if (!is_null($row['AdmAccount'])) + if (!is_null($row['AdmAccount'])) { $admacc=''.hspech($row['AdmAccount']).'@'.hspech($row['URI']).''; - else + ($row['AdmAvatar']=='unavailable') ? $thumb=$prepath.'imgs/AdmAccThumbUnavailable.svg' : $thumb=$row['AdmAvatar']; + } else { $admacc=nully(null); - $out.='
'._('Admin account').' '.$admacc.'
'._('Date of creation').' '.nully(ldate($row['AdmCreatedAt'],true)).'
'._('Admin name').' '.nully(hspech($row['AdmDisplayName'])).'
'._('Admin notes').'
'.nullyp(strip(trim(n2es($row['AdmNote'])),$row['URI'])).'
'.N; + $thumb=$prepath.'imgs/AdmAccThumbUnavailable.svg'; + } + $out.='
'._('Admin account').' '.$admacc.'
'._('Date of creation').' '.nully(ldate($row['AdmCreatedAt'],true)).'
'._('Admin name').' '.nully(hspech($row['AdmDisplayName'])).'
'._('Admin notes').'
'.nullyp(strip(trim(n2es($row['AdmNote'])),$row['URI'])).'
'.N; $out.='
'; $out.='
'._('Stats').'
';