Some tinkering on strings related to threads moderation and their look
This commit is contained in:
parent
4a0423ce34
commit
5e4907674e
1 changed files with 5 additions and 5 deletions
|
@ -215,7 +215,7 @@ function presub() {
|
|||
$res=tquery('SELECT COUNT(ID) AS tinsts, SUM(UserCount) AS tusers, SUM(StatusCount) AS tstatuses, SUM(ActiveUsersMonth) AS tactusers FROM Instances WHERE IsMastodon=1 AND LastOkCheckTS>='.$graceline,__LINE__);
|
||||
$row=mysqli_fetch_assoc($res);
|
||||
echo(_('<div id="help" class="hiddiv"><p class="intro">This search engine for Mastodon instances is based on a database that gets updated by our crawler every night (CET). Instances are considered new for 30 days after they are discovered. When an instance has not responded to our daily checks for more than 30 days it’s no longer considered in statistics and searches and it gets checked only on the first of the month, rather than daily, until it possibly responds again. “Random ordering” of results varies daily.</p><p class="intro">Default search criteria reflect our fondness for a decentralized and egalitarian Fediverse and our attempt to exclude instances accepting fascist, racist, sexist, ableist or sovereignist contents by marking them as noxious.</p></div>').N);
|
||||
printf(_('<p class="intro">We currently count <span class="statd">%s</span> Mastodon instances, with <span class="statd">%s</span> users (<span class="statd">%s</span> active during last month) and <span class="statd">%s</span> published statuses.</p><h4><a id="msswitch" onclick="swmetastats();" style="cursor:pointer;">Show Threads moderation statistics</a></h4>'), fnum($row['tinsts'],0,$dlang), fnum($row['tusers'],0,$dlang), fnum($row['tactusers'],0,$dlang), fnum($row['tstatuses'],0,$dlang));
|
||||
printf(_('<p class="intro">We currently count <span class="statd">%s</span> Mastodon instances, with <span class="statd">%s</span> users (<span class="statd">%s</span> active during last month) and <span class="statd">%s</span> published statuses. [<a id="msswitch" onclick="swmetastats();" style="cursor:pointer;">Show Threads moderation statistics</a>]</p>'), fnum($row['tinsts'],0,$dlang), fnum($row['tusers'],0,$dlang), fnum($row['tactusers'],0,$dlang), fnum($row['tstatuses'],0,$dlang));
|
||||
|
||||
//echo '<pre>'.print_r($metastats,true).'</pre>'.N;
|
||||
|
||||
|
@ -272,11 +272,11 @@ function presub() {
|
|||
|
||||
<script language="JavaScript">swmetastats();</script>
|
||||
|
||||
<div class="sep"></div>
|
||||
<h3>'._('Threads moderation statistics').'</h3>
|
||||
|
||||
<p class="introe">'._('These statistics on the status of Threads moderation are based on the list of moderated instances, which is accessible only on some instances, and on the list of instances adhering to the <a href="https://fedipact.online/" target="_blank">Anti-Meta Fedi Pact</a>.').'</p>
|
||||
|
||||
<h4>'._('Statistics on instances whose<br>Threads moderation status is known').'</h4>
|
||||
<h4>'._('Statistics on the state of Threads moderation<br>related to instances on which it is known').'</h4>
|
||||
|
||||
<table class="ms_leg_tab"><tr><td class="ms_suspending"></td><td class="ms_leg_td"> '._('Instances suspending Threads').': '.fnum($metastats['suspending']['instances'],0,$dlang).' / '.fnum($metastats['known']['instances'],0,$dlang).' ('.fnum($metastats['suspending']['kiperc'],2,$dlang).'%)</td></tr></table>
|
||||
<table class="ms_leg_tab"><tr><td class="ms_limiting"></td><td class="ms_leg_td"> '._('Instances limiting Threads').': '.fnum($metastats['limiting']['instances'],0,$dlang).' / '.fnum($metastats['known']['instances'],0,$dlang).' ('.fnum($metastats['limiting']['kiperc'],2,$dlang).'%)</td></tr></table>
|
||||
|
@ -294,7 +294,7 @@ function presub() {
|
|||
|
||||
<table class="ms_cont"><tr><td class="ms_suspending_u" style="width:'.$metastats['suspending']['kuperc'].'%"></td><td class="ms_limiting_u" style="width:'.$metastats['limiting']['kuperc'].'%"></td><td class="ms_notsusporlim_u" style="width:'.$metastats['notsusporlim']['kuperc'].'%"></td></tr></table>
|
||||
|
||||
<h4>'._('Statistics on all instances').'</h4>
|
||||
<h4>'._('Statistics on the state of Threads<br>moderation related to all instances.').'</h4>
|
||||
|
||||
<table class="ms_leg_tab"><tr><td class="ms_suspending"></td><td class="ms_leg_td"> '._('Instances suspending Threads').': '.fnum($metastats['suspending']['instances'],0,$dlang).' / '.fnum($row['tinsts'],0,$dlang).' ('.fnum($metastats['suspending']['iperc'],2,$dlang).'%)</td></tr></table>
|
||||
<table class="ms_leg_tab"><tr><td class="ms_limiting"></td><td class="ms_leg_td"> '._('Instances limiting Threads').': '.fnum($metastats['limiting']['instances'],0,$dlang).' / '.fnum($row['tinsts'],0,$dlang).' ('.fnum($metastats['limiting']['iperc'],2,$dlang).'%)</td></tr></table>
|
||||
|
@ -416,7 +416,7 @@ function presub() {
|
|||
$p=1;
|
||||
if (array_key_exists('p',$_GET) && preg_match('#^[0-9]+$#',$_GET['p'])===1) $p=$_GET['p']+0;
|
||||
|
||||
echo('<h4>'._('Search instances').'</h4>
|
||||
echo('<h3>'._('Search instances').'</h3>
|
||||
<form method="get" id="curvf" name="curvf">
|
||||
<input name="exnox" type="hidden" value="'.$_GET['exnox'].'">
|
||||
<input name="exregc" type="hidden" value="'.$_GET['exregc'].'">
|
||||
|
|
Loading…
Reference in a new issue