From 9ae4e81f1cb434cc7dfe7ed85fc75bdfd3c9e1fe Mon Sep 17 00:00:00 2001 From: pezcurrel Date: Tue, 27 Dec 2022 16:45:02 +0100 Subject: [PATCH] =?UTF-8?q?Added=20=E2=80=9CServer=20rules=E2=80=9D=20show?= =?UTF-8?q?ing?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/site/instances.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/web/site/instances.php b/web/site/instances.php index 8c6c445..dd6c16b 100644 --- a/web/site/instances.php +++ b/web/site/instances.php @@ -574,6 +574,18 @@ while ($if<$il && $row=mysqli_fetch_assoc($res)) { $out.='
'._('Short description').'
'.nully(strip(nl2br(trim(n2es($row['ShortDesc'])),false),$row['URI'])).'
'.N; $out.='
'._('Long description').'
'.nully(strip(trim(n2es($row['LongDesc'])),$row['URI'])).'
'.N; + $out.='
'._('Server rules').'
'; + $rres=tquery('SELECT Text FROM InstRules WHERE InstID='.$row['ID'],__LINE__); + if (mysqli_num_rows($rres)>0) { + $out.='
    '.N; + while ($rrow=mysqli_fetch_assoc($rres)) + $out.='
  1. '.hspech($rrow['Text']).'
  2. '.N; + $out.='
'; + } else { + $out.=''._('Not available{plural}').''; + } + $out.='
'.N; + if (!is_null($row['AdmAccount'])) $admacc=''.hspech($row['AdmAccount']).'@'.hspech($row['URI']).''; else