diff --git a/web/site/instances.php b/web/site/instances.php index 4f1e77a..460099f 100644 --- a/web/site/instances.php +++ b/web/site/instances.php @@ -718,8 +718,8 @@ while ($if<$il && $row=mysqli_fetch_assoc($res)) { if ($row['Noxious']) $out.='
'._('Why we consider this instance noxious').'
'.text2html($row['NoxReason'],''._('Not available{singular}').'').'
'.N; - $out.='
'._('Short description').'
'.nully(strip($row['ShortDesc'],$row['URI'])).'
'.N; - $out.='
'._('Long description').'
'.nully(strip($row['LongDesc'],$row['URI'])).'
'.N; + $out.='
'._('Short description').'
'.nully(text2html($row['ShortDesc'],null)).'
'.N; + $out.='
'._('Long description').'
'.nully(strip($row['LongDesc'],"{$row['URI']}/about/")).'
'.N; $out.='
'._('Instance rules').'
'; $rres=tquery('SELECT Text FROM InstRules WHERE InstID='.$row['ID'],__LINE__); @@ -781,7 +781,7 @@ while ($if<$il && $row=mysqli_fetch_assoc($res)) { $admacc=''._('Opted out of search engines indexing').''; } (is_null($row['AdmCreatedAt'])) ? $fdate=''._('Not available{singular}').'' : $fdate=datefmt_format($dfmt,$row['AdmCreatedAt']).' UTC'; - $out.='
'._('Admin account').' '.$admacc.'
'._('Date of creation').' '.$fdate.'
'._('Display name').' '.nully(hspech($row['AdmDisplayName'])).'
'._('Bio').'
'.nully(strip($row['AdmNote'],$row['URI'])).'
'.N; + $out.='
'._('Admin account').' '.$admacc.'
'._('Date of creation').' '.$fdate.'
'._('Display name').' '.nully(hspech($row['AdmDisplayName'])).'
'._('Bio').'
'.nully(strip($row['AdmNote'],"{$row['URI']}/@{$row['AdmAccount']}/")).'
'.N; $out.='
'; $out.='
'._('Statistics').'
'; @@ -953,8 +953,9 @@ function nullyp($str) { function strip($str,$uri) { if (nullemp($str)) return(null); - $str=preg_replace('#]*)?>.*#is','',$str); - $str=preg_replace('#','

'],$str); $str=preg_replace(['#


#i','#
#i','#
#i','#

    #i'],['

    ','','
','
    '],$str); $str=preg_replace(['##i','##i','##i','##i'],['','','',''],$str);