2018-11-18 16:38:43 +01:00
<?php
use \Friendica\Directory\Utils\L10n;
?>
< h1 > <?php echo $this -> __ ( 'Directory statistics' ) ?> </ h1 >
< h2 > <?php echo $this -> __ ( 'Profiles' ) ?> </ h2 >
2018-11-18 17:35:23 +01:00
< p > <?php echo $this -> __ ( 'This directory knows about <strong>%s distinct potential profile URLs</strong>.' , L10n :: formatNumber ( $stats [ 'profile_queue' ][ 'total' ])) ?> </ p >
< p > <?php echo $this -> __ ( 'Out of those, there are <strong>%s profiles (%s)</strong> that opted in the public directory at least once.' ,
L10n::formatNumber($stats['profile']['total']),
L10n::formatNumber($stats['profile']['ratio'], L10n::PERCENT)
)?>< / p >
2020-06-13 19:21:18 +02:00
< p > <?php echo $this -> __ ( 'Out of those, there currently are <strong>%s available profiles (%s)</strong>. <a href="%s">Check them out!</a>' ,
2018-11-18 17:35:23 +01:00
L10n::formatNumber($stats['profile']['available']['total']),
2020-06-13 19:21:18 +02:00
L10n::formatNumber($stats['profile']['available']['ratio'], L10n::PERCENT),
$this->escapeHtmlAttr($this->u(''))
2018-11-18 17:35:23 +01:00
)?>< / p >
2018-11-18 16:38:43 +01:00
< h3 > <?php echo $this -> __ ( 'Languages' ) ?> </ h3 >
2018-11-18 17:35:23 +01:00
< p > <?php echo $this -> __ ( 'Out of <strong>%s</strong> profiles reporting their language there are:' , L10n :: formatNumber ( $stats [ 'profile' ][ 'language' ][ 'total' ])) ?> </ p >
2018-11-18 16:38:43 +01:00
< ul >
<?php foreach ( $stats [ 'profile' ][ 'languages' ] as $language ) : ?>
< li >
< strong > <?php echo L10n :: formatNumber ( $language [ 'total' ]) ?> </ strong >
<?php echo empty ( $language [ 'language' ]) ? 'N/A' : L10n :: localeToLanguageString ( $language [ 'language' ]) ?>
(<?php echo L10n :: formatNumber ( $language [ 'ratio' ], L10n :: PERCENT ) ?> )
< / li >
<?php endforeach ; ?>
< / ul >
< h2 > <?php echo $this -> __ ( 'Servers' ) ?> </ h2 >
2018-11-18 17:35:23 +01:00
< p > <?php echo $this -> __ ( 'This directory knows about <strong>%s distinct potential server URLs</strong>.' , L10n :: formatNumber ( $stats [ 'server_queue' ][ 'total' ])) ?> </ p >
< p > <?php echo $this -> __ ( 'Out of those, there are <strong>%s domains (%s)</strong> that have been a Friendica server at least once.' ,
L10n::formatNumber($stats['server']['total']),
L10n::formatNumber($stats['server']['ratio'], L10n::PERCENT))
?>< / p >
< p > <?php echo $this -> __ ( 'Out of those, there are:' ) ?> </ p >
2018-11-18 16:38:43 +01:00
< ul >
2018-11-18 17:35:23 +01:00
< li > <?php echo $this -> __ ( '<strong>%s available servers (%s)</strong>' ,
L10n::formatNumber($stats['server']['available']['total']),
L10n::formatNumber($stats['server']['available']['ratio'], L10n::PERCENT)
)?>< / li >
2020-06-13 19:21:18 +02:00
< li > <?php echo $this -> __ ( '<strong>%s public servers (%s)</strong> currently open for registration. <a href="%s">Check them out!</a>' ,
2018-11-18 17:35:23 +01:00
L10n::formatNumber($stats['server']['open']['total']),
2020-06-13 19:21:18 +02:00
L10n::formatNumber($stats['server']['open']['ratio'], L10n::PERCENT),
$this->escapeHtmlAttr($this->r('servers'))
2018-11-18 17:35:23 +01:00
)?>< / li >
2018-11-18 16:38:43 +01:00
< / ul >
< h3 > <?php echo $this -> __ ( 'Languages' ) ?> </ h3 >
2018-11-18 17:35:23 +01:00
< p > <?php echo $this -> __ ( 'Out of <strong>%s</strong> servers reporting their language there are:' , L10n :: formatNumber ( $stats [ 'server' ][ 'language' ][ 'total' ])) ?> </ p >
2018-11-18 16:38:43 +01:00
< ul >
<?php foreach ( $stats [ 'server' ][ 'languages' ] as $language ) : ?>
< li >
< strong > <?php echo L10n :: formatNumber ( $language [ 'total' ]) ?> </ strong >
2018-11-18 17:35:23 +01:00
<?php echo L10n :: localeToLanguageString ( $language [ 'language' ]) ?>
2018-11-18 16:38:43 +01:00
(<?php echo L10n :: formatNumber ( $language [ 'ratio' ], L10n :: PERCENT ) ?> )
< / li >
<?php endforeach ; ?>
< / ul >
< h3 > <?php echo $this -> __ ( 'Versions' ) ?> </ h3 >
2018-11-18 17:35:23 +01:00
< p > <?php echo $this -> __ ( 'Out of <strong>%s</strong> servers reporting their version there are:' , L10n :: formatNumber ( $stats [ 'server' ][ 'version' ][ 'total' ])) ?> </ p >
2018-11-18 16:38:43 +01:00
< ul >
<?php foreach ( $stats [ 'server' ][ 'versions' ] as $version ) : ?>
< li >
< strong > <?php echo L10n :: formatNumber ( $version [ 'total' ]) ?> </ strong >
< code > <?php echo $this -> e ( $version [ 'version' ]) ?> </ code >
(<?php echo L10n :: formatNumber ( $version [ 'ratio' ], L10n :: PERCENT ) ?> )
<?php if ( $version [ 'version' ] == $stable_version ) : ?>
< span class = "badge badge-success" >< i class = "fa fa-smile" ></ i > <?php echo $this -> __ ( 'Stable Version' ) ?> </ span >
2018-12-19 10:09:23 +01:00
<?php elseif ( $version [ 'version' ] == $dev_version || $version [ 'version' ] == $rc_version ) : ?>
2018-11-18 16:38:43 +01:00
< span class = "badge badge-secondary" >< i class = "fa fa-poo" ></ i > <?php echo $this -> __ ( 'Develop Version' ) ?> </ span >
<?php endif ; ?>
< / li >
<?php endforeach ; ?>
< / ul >