File "html_4a6daded27c9f18230c5e45ffc1ce24b.php"
Full path: /home/argothem/www/organecyberpresse/tmp/cache/skel/html_4a6daded27c9f18230c5e45ffc1ce24b.php
File size: 8.7 KB
MIME-type: text/x-php
Charset: utf-8
<?php
/*
* Squelette : ../plugins-dist/statistiques/prive/squelettes/inclure/stats-visites-jours-resume.html
* Date : Tue, 10 Jun 2025 11:31:50 GMT
* Compile : Fri, 22 Aug 2025 09:13:20 GMT
* Boucles : _arth
*/
function BOUCLE_arthhtml_4a6daded27c9f18230c5e45ffc1ce24b(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {
static $command = array();
static $connect;
$command['connect'] = $connect = '';
$in = array();
if (!(is_array($a = (($Pile[0]['statut'] ?? null)))))
$in[]= $a;
else $in = array_merge($in, $a);
if (!isset($si_init)) { $command['si'] = array(); $si_init = true; }
$command['si'][] = retablir_echappements_modeles(interdire_scripts((entites_html(table_valeur($Pile[0]??[], (string)'objet', null),true) == 'article')));
if (!isset($command['table'])) {
$command['table'] = 'articles';
$command['id'] = '_arth';
$command['from'] = array('articles' => 'spip_articles');
$command['type'] = array();
$command['groupby'] = array();
$command['select'] = array("articles.popularite",
"articles.visites",
"articles.id_article",
"articles.lang",
"articles.titre");
$command['orderby'] = array();
$command['join'] = array();
$command['limit'] = '';
$command['having'] =
array();
}
$command['where'] =
array(
array('=', 'articles.id_article', sql_quote(retablir_echappements_modeles(interdire_scripts(entites_html(table_valeur($Pile[0]??[], (string)'id_objet', null),true))), '', 'bigint NOT NULL AUTO_INCREMENT')), (!is_whereable(($Pile[0]['statut'] ?? null)) ? '' : ((is_array(($Pile[0]['statut'] ?? null))) ? sql_in('articles.statut', $in) :
array('=', 'articles.statut', sql_quote(($Pile[0]['statut'] ?? null), '','varchar(10) NOT NULL')))));
if (defined("_BOUCLE_PROFILER")) $timer = time()+(float)microtime();
$t0 = "";
// REQUETE
$iter = Spip\Compilateur\Iterateur\Factory::create(
"SQL",
$command,
array('../plugins-dist/statistiques/prive/squelettes/inclure/stats-visites-jours-resume.html','html_4a6daded27c9f18230c5e45ffc1ce24b','_arth',36,$GLOBALS['spip_lang'])
);
if (!$iter->err()) {
lang_select($GLOBALS['spip_lang']);
$SP++;
// RESULTATS
while ($Pile[$SP]=$iter->fetch()) {
lang_select_public($Pile[$SP]['lang'], '', $Pile[$SP]['titre']);
$t0 .= (
'
<th scope="row">' .
label_nettoyer(_T('statistiques:info_popularite_5')) .
'</th>
<td class="num" data-label="' .
attribut_html(label_nettoyer(_T('statistiques:info_popularite_5'))) .
'">' .
retablir_echappements_modeles(interdire_scripts(number_format(round($Pile[$SP]['popularite']),'0','',' '))) .
'</td>
</tr>
<tr>
<th scope="row">' .
label_nettoyer(_T('public|spip|ecrire:info_total')) .
'</th>
<td class="num" data-label="' .
attribut_html(label_nettoyer(_T('public|spip|ecrire:info_total'))) .
'">' .
retablir_echappements_modeles(interdire_scripts(number_format(round(((($a = $Pile[$SP]['visites']) OR (is_string($a) AND strlen($a))) ? $a : '0')),'0','',' '))) .
'</td>
</tr>
<tr>
<th scope="col"></th>
<td class="num" data-label="">' .
(($t1 = strval(retablir_echappements_modeles(plus(array_search($Pile[$SP]['id_article'],(table_valeur($Pile["vars"]??[], (string)'c', null))),'1'))))!=='' ?
('<strong>' . $t1 . ( '</strong>' .
retablir_echappements_modeles(singulier_ou_pluriel(count(table_valeur($Pile["vars"]??[], (string)'c', null)),'info_classement_1','info_classement_2','liste')))) :
'') .
'</td>
');
lang_select();
}
lang_select();
$iter->free();
}
if (defined("_BOUCLE_PROFILER")
AND 1000*($timer = (time()+(float)microtime())-$timer) > _BOUCLE_PROFILER)
spip_log(intval(1000*$timer)."ms BOUCLE_arth @ ../plugins-dist/statistiques/prive/squelettes/inclure/stats-visites-jours-resume.html","profiler"._LOG_AVERTISSEMENT);
return $t0;
}
//
// Fonction principale du squelette ../plugins-dist/statistiques/prive/squelettes/inclure/stats-visites-jours-resume.html
// Temps de compilation total: 1.030 ms
//
function html_4a6daded27c9f18230c5e45ffc1ce24b($Cache, $Pile, $doublons = array(), $Numrows = array(), $SP = 0) {
if (isset($Pile[0]["doublons"]) AND is_array($Pile[0]["doublons"]))
$doublons = nettoyer_env_doublons($Pile[0]["doublons"]);
$connect = '';
$page = (
retablir_echappements_modeles(vide($Pile['vars'][$_zzz=(string)'c'] = (array()))) .
(($t1 = strval(retablir_echappements_modeles(interdire_scripts(((entites_html(table_valeur($Pile[0]??[], (string)'id_objet', null),true)) ?' ' :'')))))!=='' ?
($t1 . ( '
' .
retablir_echappements_modeles(vide($Pile['vars'][$_zzz=(string)'c'] = (interdire_scripts(classement_populaires(entites_html(table_valeur($Pile[0]??[], (string)'objet', null),true)))))))) :
'') .
'
<table class=\'spip spip_table--responsive spip_table--statistiques spip_table--statistiques-resume\'>
<caption>' .
_T('statistiques:resume') .
'</caption>
<tbody>
<tr>
<th scope="row">' .
label_nettoyer(_T('public|spip|ecrire:info_maximum')) .
'</th>
' .
retablir_echappements_modeles(vide($Pile['vars'][$_zzz=(string)'stats'] = (statistiques_stats_generales($Pile,null)))) .
'<td class="num" data-label="' .
attribut_html(label_nettoyer(_T('public|spip|ecrire:info_maximum'))) .
'">' .
retablir_echappements_modeles(number_format(((($a = table_valeur($Pile["vars"]??[], (string)'stats/max', null)) OR (is_string($a) AND strlen($a))) ? $a : '0'),'0','',' ')) .
'</td>
</tr>
<tr>
<th scope="row">
' .
(($t1 = strval(retablir_echappements_modeles(interdire_scripts(((((include_spip('inc/config')?lire_config('activer_referers','oui',false):'') == 'oui')) ?' ' :'')))))!=='' ?
($t1 . ( '
<a href="' .
retablir_echappements_modeles(parametre_url(generer_url_ecrire('stats_referers'),'jour','jour')) .
'"
title="' .
attribut_html(label_nettoyer(_T('statistiques:titre_liens_entrants'))) .
': ' .
attribut_html(label_nettoyer(_T('public|spip|ecrire:info_aujourdhui'))) .
'">
' .
label_nettoyer(_T('public|spip|ecrire:info_aujourdhui')) .
'</a>')) :
'') .
'
' .
(($t1 = strval(retablir_echappements_modeles(interdire_scripts(((((include_spip('inc/config')?lire_config('activer_referers','oui',false):'') == 'oui')) ?'' :' ')))))!=='' ?
($t1 . label_nettoyer(_T('public|spip|ecrire:info_aujourdhui'))) :
'') .
'
</th>
<td class="num" data-label="' .
attribut_html(label_nettoyer(_T('public|spip|ecrire:info_aujourdhui'))) .
'">' .
retablir_echappements_modeles(number_format(((($a = table_valeur($Pile["vars"]??[], (string)'stats/today', null)) OR (is_string($a) AND strlen($a))) ? $a : '0'),'0','',' ')) .
'</td>
</tr>
<tr>
<th scope="row">
' .
(($t1 = strval(retablir_echappements_modeles(interdire_scripts(((((include_spip('inc/config')?lire_config('activer_referers','oui',false):'') == 'oui')) ?' ' :'')))))!=='' ?
($t1 . ( '
<a href="' .
retablir_echappements_modeles(parametre_url(generer_url_ecrire('stats_referers'),'jour','veille')) .
'"
title="' .
attribut_html(label_nettoyer(_T('statistiques:titre_liens_entrants'))) .
': ' .
attribut_html(label_nettoyer(_T('public|spip|ecrire:info_hier'))) .
'">
' .
label_nettoyer(_T('public|spip|ecrire:info_hier')) .
'
</a>')) :
'') .
'
' .
(($t1 = strval(retablir_echappements_modeles(interdire_scripts(((((include_spip('inc/config')?lire_config('activer_referers','oui',false):'') == 'oui')) ?'' :' ')))))!=='' ?
($t1 . label_nettoyer(_T('public|spip|ecrire:info_hier'))) :
'') .
'
</th>
<td class="num" data-label="' .
attribut_html(label_nettoyer(_T('public|spip|ecrire:info_hier'))) .
'">' .
retablir_echappements_modeles(number_format(((($a = table_valeur($Pile["vars"]??[], (string)'stats/yesterday', null)) OR (is_string($a) AND strlen($a))) ? $a : '0'),'0','',' ')) .
'</td>
</tr>
<tr>
' .
(($t1 = BOUCLE_arthhtml_4a6daded27c9f18230c5e45ffc1ce24b($Cache, $Pile, $doublons, $Numrows, $SP))!=='' ?
$t1 :
(( '
<th scope="row">' .
label_nettoyer(_T('public|spip|ecrire:info_total')) .
'</th>
<td class="num" data-label="' .
attribut_html(label_nettoyer(_T('public|spip|ecrire:info_total'))) .
'">' .
retablir_echappements_modeles(number_format(((($a = stats_total('')) OR (is_string($a) AND strlen($a))) ? $a : '0'),'0','',' ')) .
'</td>
</tr>
<tr>
<th scope="row">' .
label_nettoyer(_T('statistiques:info_popularite_2')) .
'</th>
<td class="num" data-label="' .
attribut_html(label_nettoyer(_T('statistiques:info_popularite_2'))) .
'">' .
retablir_echappements_modeles(interdire_scripts(number_format(round(((($a = (include_spip('inc/config')?lire_config('popularite_total',null,false):'')) OR (is_string($a) AND strlen($a))) ? $a : '0')),'0','',' '))) .
'</td>
'))) .
'
</tr>
</tbody>
</table>
');
return analyse_resultat_skel('html_4a6daded27c9f18230c5e45ffc1ce24b', $Cache, $page, '../plugins-dist/statistiques/prive/squelettes/inclure/stats-visites-jours-resume.html');
}