File "html_bc973c23acd4d19f7fe20acf40f3adfb.php"
Full path: /home/argothem/www/cache/inc/cache/html_purifier/HTML/html_bc973c23acd4d19f7fe20acf40f3adfb.php
File size: 10.34 KB
MIME-type: text/x-php
Charset: utf-8
<?php
/*
* Squelette : ../plugins-dist/statistiques/prive/squelettes/inclure/stats-visites-jours-resume.html
* Date : Fri, 07 Jul 2023 11:03:32 GMT
* Compile : Sat, 24 Feb 2024 12:37:09 GMT
* Boucles : _arth, _art
*/
function BOUCLE_arthhtml_bc973c23acd4d19f7fe20acf40f3adfb(&$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'][] = 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.lang",
"articles.titre");
$command['orderby'] = array();
$command['join'] = array();
$command['limit'] = '';
$command['having'] =
array();
}
$command['where'] =
array(
array('=', 'articles.id_article', sql_quote(interdire_scripts(entites_html(table_valeur($Pile[0]??[], (string)'id_objet', null),true)), '', 'bigint(21) 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_bc973c23acd4d19f7fe20acf40f3adfb','_arth',26,$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="col">' .
label_nettoyer(_T('statistiques:info_popularite_5')) .
'</th>
<th scope="col">' .
label_nettoyer(_T('public|spip|ecrire:info_total')) .
'</th>
<th scope="col"></th>
');
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;
}
function BOUCLE_arthtml_bc973c23acd4d19f7fe20acf40f3adfb(&$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'][] = interdire_scripts((entites_html(table_valeur($Pile[0]??[], (string)'objet', null),true) == 'article'));
if (!isset($command['table'])) {
$command['table'] = 'articles';
$command['id'] = '_art';
$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(interdire_scripts(entites_html(table_valeur($Pile[0]??[], (string)'id_objet', null),true)), '', 'bigint(21) 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_bc973c23acd4d19f7fe20acf40f3adfb','_art',42,$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 .= (
'
<td class="num" data-label="' .
attribut_html(label_nettoyer(_T('statistiques:info_popularite_5'))) .
'">' .
interdire_scripts(number_format(round($Pile[$SP]['popularite']),'0','',' ')) .
'</td>
<td class="num" data-label="' .
attribut_html(label_nettoyer(_T('public|spip|ecrire:info_total'))) .
'">' .
interdire_scripts(number_format(round(((($a = $Pile[$SP]['visites']) OR (is_string($a) AND strlen($a))) ? $a : '0')),'0','',' ')) .
'</td>
<td class="num" data-label="">' .
(($t1 = strval(plus(array_search($Pile[$SP]['id_article'],table_valeur($Pile["vars"]??[], (string)'c', null)),'1')))!=='' ?
('<strong>' . $t1 . ( '</strong>' .
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_art @ ../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.085 ms
//
function html_bc973c23acd4d19f7fe20acf40f3adfb($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 = (
vide($Pile['vars'][$_zzz=(string)'c'] = array()) .
(($t1 = strval(interdire_scripts(((entites_html(table_valeur($Pile[0]??[], (string)'id_objet', null),true)) ?' ' :''))))!=='' ?
($t1 . ( '
' .
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>
<thead>
<tr>
<th scope="col">' .
label_nettoyer(_T('public|spip|ecrire:info_maximum')) .
'</th>
<th scope="col">
' .
(($t1 = strval(interdire_scripts(((((include_spip('inc/config')?lire_config('activer_referers','oui',false):'') == 'oui')) ?' ' :''))))!=='' ?
($t1 . ( '
<a href="' .
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(interdire_scripts(((((include_spip('inc/config')?lire_config('activer_referers','oui',false):'') == 'oui')) ?'' :' '))))!=='' ?
($t1 . label_nettoyer(_T('public|spip|ecrire:info_aujourdhui'))) :
'') .
'
</th>
<th scope="col">
' .
(($t1 = strval(interdire_scripts(((((include_spip('inc/config')?lire_config('activer_referers','oui',false):'') == 'oui')) ?' ' :''))))!=='' ?
($t1 . ( '
<a href="' .
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(interdire_scripts(((((include_spip('inc/config')?lire_config('activer_referers','oui',false):'') == 'oui')) ?'' :' '))))!=='' ?
($t1 . label_nettoyer(_T('public|spip|ecrire:info_hier'))) :
'') .
'
</th>
' .
(($t1 = BOUCLE_arthhtml_bc973c23acd4d19f7fe20acf40f3adfb($Cache, $Pile, $doublons, $Numrows, $SP))!=='' ?
$t1 :
(( '
<th scope="col">' .
label_nettoyer(_T('public|spip|ecrire:info_total')) .
'</th>
<th scope="col">' .
label_nettoyer(_T('statistiques:info_popularite_2')) .
'</th>
'))) .
'
</tr>
</thead>
<tbody>
<tr>
' .
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'))) .
'">' .
number_format(((($a = table_valeur($Pile["vars"]??[], (string)'stats/max', null)) OR (is_string($a) AND strlen($a))) ? $a : '0'),'0','',' ') .
'</td>
<td class="num" data-label="' .
attribut_html(label_nettoyer(_T('public|spip|ecrire:info_aujourdhui'))) .
'">' .
number_format(((($a = table_valeur($Pile["vars"]??[], (string)'stats/today', null)) OR (is_string($a) AND strlen($a))) ? $a : '0'),'0','',' ') .
'</td>
<td class="num" data-label="' .
attribut_html(label_nettoyer(_T('public|spip|ecrire:info_hier'))) .
'">' .
number_format(((($a = table_valeur($Pile["vars"]??[], (string)'stats/yesterday', null)) OR (is_string($a) AND strlen($a))) ? $a : '0'),'0','',' ') .
'</td>
' .
(($t1 = BOUCLE_arthtml_bc973c23acd4d19f7fe20acf40f3adfb($Cache, $Pile, $doublons, $Numrows, $SP))!=='' ?
$t1 :
(( '
<td class="num" data-label="' .
attribut_html(label_nettoyer(_T('public|spip|ecrire:info_total'))) .
'">' .
number_format(((($a = stats_total('')) OR (is_string($a) AND strlen($a))) ? $a : '0'),'0','',' ') .
'</td>
<td class="num" data-label="' .
attribut_html(label_nettoyer(_T('statistiques:info_popularite_2'))) .
'">' .
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_bc973c23acd4d19f7fe20acf40f3adfb', $Cache, $page, '../plugins-dist/statistiques/prive/squelettes/inclure/stats-visites-jours-resume.html');
}