Using realfloat.php “rf()” function tu workaround php 7.3 echoing floats with “,” instead of “.” as a decimal separator
This commit is contained in:
parent
af958a194f
commit
d998837828
1 changed files with 6 additions and 4 deletions
|
@ -13,6 +13,7 @@ $dlanguc=strtoupper($dlang);
|
|||
require '../lib/n2es.php';
|
||||
require '../lib/gracetime.php';
|
||||
require '../lib/fnum.php';
|
||||
require '../lib/realfloat.php';
|
||||
|
||||
use function mysqli_real_escape_string as myesc;
|
||||
/*$dlang='fr';
|
||||
|
@ -20,6 +21,7 @@ $dtzbl=['ca'=>'Europe/Madrid','en'=>'Europe/London','es'=>'Europe/Madrid','fr'=>
|
|||
date_default_timezone_set($dtzbl[$dlang]);*/
|
||||
|
||||
$lc=localeconv();
|
||||
$lcc=['decimal_point'=>'.', 'thousands_sep'=>''];
|
||||
|
||||
$debug='';
|
||||
debug(date('r',$btu).N,$debug);
|
||||
|
@ -285,7 +287,7 @@ function presub() {
|
|||
<table class="ms_leg_tab"><tr><td class="ms_suspending"></td><td class="ms_leg_td">+</td><td class="ms_limiting"></td><td class="ms_leg_td"> '._('Instances suspending or limiting Threads').': '.fnum($metastats['suspending']['instances']+$metastats['limiting']['instances'],$lc).' / '.fnum($metastats['known']['instances'],$lc).' ('.fnum($metastats['suspending']['kiperc']+$metastats['limiting']['kiperc'],$lc,2).'%)</td></tr></table>
|
||||
<table class="ms_leg_tab"><tr><td class="ms_notsusporlim"></td><td class="ms_leg_td"> '._('Instances not suspending or limiting Threads').': '.fnum($metastats['notsusporlim']['instances'],$lc).' / '.fnum($metastats['known']['instances'],$lc).' ('.fnum($metastats['notsusporlim']['kiperc'],$lc,2).'%)</td></tr></table>
|
||||
|
||||
<table class="ms_cont"><tr><td class="ms_suspending" style="width:'.$metastats['suspending']['kiperc'].'%"></td><td class="ms_limiting" style="width:'.$metastats['limiting']['kiperc'].'%"></td><td class="ms_notsusporlim" style="width:'.$metastats['notsusporlim']['kiperc'].'%"></td></tr></table>
|
||||
<table class="ms_cont"><tr><td class="ms_suspending" style="width:'.rf($metastats['suspending']['kiperc']).'%"></td><td class="ms_limiting" style="width:'.rf($metastats['limiting']['kiperc']).'%"></td><td class="ms_notsusporlim" style="width:'.rf($metastats['notsusporlim']['kiperc']).'%"></td></tr></table>
|
||||
|
||||
<div class="sep"></div>
|
||||
|
||||
|
@ -294,7 +296,7 @@ function presub() {
|
|||
<table class="ms_leg_tab"><tr><td class="ms_suspending_u"></td><td class="ms_leg_td">+</td><td class="ms_limiting_u"></td><td class="ms_leg_td"> '._('Users on instances suspending or limiting Threads').': '.fnum($metastats['suspending']['users']+$metastats['limiting']['users'],$lc).' / '.fnum($metastats['known']['instances'],$lc).' ('.fnum($metastats['suspending']['kuperc']+$metastats['limiting']['kuperc'],$lc,2).'%)</td></tr></table>
|
||||
<table class="ms_leg_tab"><tr><td class="ms_notsusporlim_u"></td><td class="ms_leg_td"> '._('Users on instances not suspending or limiting Threads').': '.fnum($metastats['notsusporlim']['users'],$lc).' / '.fnum($metastats['known']['users'],$lc).' ('.fnum($metastats['notsusporlim']['kuperc'],$lc,2).'%)</td></tr></table>
|
||||
|
||||
<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>
|
||||
<table class="ms_cont"><tr><td class="ms_suspending_u" style="width:'.rf($metastats['suspending']['kuperc']).'%"></td><td class="ms_limiting_u" style="width:'.rf($metastats['limiting']['kuperc']).'%"></td><td class="ms_notsusporlim_u" style="width:'.rf($metastats['notsusporlim']['kuperc']).'%"></td></tr></table>
|
||||
|
||||
<h4>'._('Statistics on the state of Threads<br>moderation related to all instances.').'</h4>
|
||||
|
||||
|
@ -304,7 +306,7 @@ function presub() {
|
|||
<table class="ms_leg_tab"><tr><td class="ms_notsusporlim"></td><td class="ms_leg_td"> '._('Instances not suspending or limiting Threads').': '.fnum($metastats['notsusporlim']['instances'],$lc).' / '.fnum($row['tinsts'],$lc).' ('.fnum($metastats['notsusporlim']['iperc'],$lc,2).'%)</td></tr></table>
|
||||
<table class="ms_leg_tab"><tr><td class="ms_unknown"></td><td class="ms_leg_td"> '._('Instances whose Threads moderation status is unknown').': '.fnum($metastats['unknown']['instances'],$lc).' / '.fnum($row['tinsts'],$lc).' ('.fnum($metastats['unknown']['iperc'],$lc,2).'%)</td></tr></table>
|
||||
|
||||
<table class="ms_cont"><tr><td class="ms_suspending" style="width:'.$metastats['suspending']['iperc'].'%"></td><td class="ms_limiting" style="width:'.$metastats['limiting']['iperc'].'%"></td><td class="ms_notsusporlim" style="width:'.$metastats['notsusporlim']['iperc'].'%"></td><td class="ms_unknown" style="width:'.$metastats['unknown']['iperc'].'%"></td></tr></table>
|
||||
<table class="ms_cont"><tr><td class="ms_suspending" style="width:'.rf($metastats['suspending']['iperc']).'%"></td><td class="ms_limiting" style="width:'.rf($metastats['limiting']['iperc']).'%"></td><td class="ms_notsusporlim" style="width:'.rf($metastats['notsusporlim']['iperc']).'%"></td><td class="ms_unknown" style="width:'.$metastats['unknown']['iperc'].'%"></td></tr></table>
|
||||
|
||||
<div class="sep"></div>
|
||||
|
||||
|
@ -314,7 +316,7 @@ function presub() {
|
|||
<table class="ms_leg_tab"><tr><td class="ms_notsusporlim_u"></td><td class="ms_leg_td"> '._('Users on instances not suspending or limiting Threads').': '.fnum($metastats['notsusporlim']['users'],$lc).' / '.fnum($row['tusers'],$lc).' ('.fnum($metastats['notsusporlim']['uperc'],$lc,2).'%)</td></tr></table>
|
||||
<table class="ms_leg_tab"><tr><td class="ms_unknown_u"></td><td class="ms_leg_td"> '._('Users on instances whose Threads mod. status is unknown').': '.fnum($metastats['unknown']['users'],$lc).' / '.fnum($row['tusers'],$lc).' ('.fnum($metastats['unknown']['uperc'],$lc,2).'%)</td></tr></table>
|
||||
|
||||
<table class="ms_cont"><tr><td class="ms_suspending_u" style="width:'.$metastats['suspending']['uperc'].'%"></td><td class="ms_limiting_u" style="width:'.$metastats['limiting']['uperc'].'%"></td><td class="ms_notsusporlim_u" style="width:'.$metastats['notsusporlim']['uperc'].'%"></td><td class="ms_unknown_u" style="width:'.$metastats['unknown']['uperc'].'%"></td></tr></table>
|
||||
<table class="ms_cont"><tr><td class="ms_suspending_u" style="width:'.rf($metastats['suspending']['uperc']).'%"></td><td class="ms_limiting_u" style="width:'.rf($metastats['limiting']['uperc']).'%"></td><td class="ms_notsusporlim_u" style="width:'.rf($metastats['notsusporlim']['uperc']).'%"></td><td class="ms_unknown_u" style="width:'.rf($metastats['unknown']['uperc']).'%"></td></tr></table>
|
||||
|
||||
</div>'.N;
|
||||
|
||||
|
|
Loading…
Reference in a new issue