Your IP : 216.73.216.146


Current Path : /home/bourgleram/www/tmp/cache/skel/
Upload File :
Current File : /home/bourgleram/www/tmp/cache/skel/html_2d5a5938b6c859bf61bdb2589b8c8250.php

<?php

/*
 * Squelette : plugins-dist/statistiques/prive/transmettre/statistiques.html
 * Date :      Mon, 03 Oct 2016 08:25:37 GMT
 * Compile :   Fri, 09 Feb 2018 10:52:58 GMT
 * Boucles :   _statsj, 0
 */ 

function BOUCLE_statsjhtml_2d5a5938b6c859bf61bdb2589b8c8250(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {

	static $command = array();
	static $connect;
	$command['connect'] = $connect = '';
	$command['sourcemode'] = 'stats_visites';

	$command['source'] = array('jour', interdire_scripts(entites_html(sinon(table_valeur(@$Pile[0], (string)'duree', null), '90'),true)), interdire_scripts(entites_html(table_valeur(@$Pile[0], (string)'id_article', null),true)));

	if (!isset($command['table'])) {
		$command['table'] = '';
		$command['id'] = '_statsj';
		$command['from'] = array();
		$command['type'] = array();
		$command['groupby'] = array();
		$command['select'] = array(".valeur",
		".cle");
		$command['orderby'] = array();
		$command['where'] = 
			array();
		$command['join'] = array();
		$command['limit'] = '';
		$command['having'] = 
			array();
	}
	if (defined("_BOUCLE_PROFILER")) $timer = time()+microtime();
	$t0 = "";
	// REQUETE
	$iter = IterFactory::create(
		"DATA",
		$command,
		array('plugins-dist/statistiques/prive/transmettre/statistiques.html','html_2d5a5938b6c859bf61bdb2589b8c8250','_statsj',3,$GLOBALS['spip_lang'])
	);
	if (!$iter->err()) {
	$SP++;
	// RESULTATS
	while ($Pile[$SP]=$iter->fetch()) {

		$t0 .= (
interdire_scripts(affdate(safehtml($Pile[$SP]['cle']),'Y-m-d')) .
',' .
interdire_scripts(safehtml(table_valeur($Pile[$SP]['valeur'], 'visites'))) .
'
');
	}
	$iter->free();
	}
	if (defined("_BOUCLE_PROFILER")
	AND 1000*($timer = (time()+microtime())-$timer) > _BOUCLE_PROFILER)
		spip_log(intval(1000*$timer)."ms BOUCLE_statsj @ plugins-dist/statistiques/prive/transmettre/statistiques.html","profiler"._LOG_AVERTISSEMENT);
	return $t0;
}


function BOUCLE0html_2d5a5938b6c859bf61bdb2589b8c8250(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {

	static $command = array();
	static $connect;
	$command['connect'] = $connect = '';
	if (!isset($command['table'])) {
		$command['table'] = 'auteurs';
		$command['id'] = '0';
		$command['from'] = array('auteurs' => 'spip_auteurs');
		$command['type'] = array();
		$command['groupby'] = array();
		$command['select'] = array("auteurs.id_auteur",
		"auteurs.lang");
		$command['orderby'] = array();
		$command['join'] = array();
		$command['limit'] = '';
		$command['having'] = 
			array();
	}
	$command['where'] = 
			array(
quete_condition_statut('auteurs.statut','!5poubelle','!5poubelle',''), 
			array('=', 'auteurs.id_auteur', sql_quote(interdire_scripts(entites_html(table_valeur(@$Pile[0], (string)'id', null),true)),'','bigint(21) NOT NULL AUTO_INCREMENT')));
	if (defined("_BOUCLE_PROFILER")) $timer = time()+microtime();
	$t0 = "";
	// REQUETE
	$iter = IterFactory::create(
		"SQL",
		$command,
		array('plugins-dist/statistiques/prive/transmettre/statistiques.html','html_2d5a5938b6c859bf61bdb2589b8c8250',0,1,$GLOBALS['spip_lang'])
	);
	if (!$iter->err()) {
	lang_select($GLOBALS['spip_lang']);
	$SP++;
	// RESULTATS
	while ($Pile[$SP]=$iter->fetch()) {

		lang_select_public($Pile[$SP]['lang'], 'oui');
		$t0 .= (
'<?php
if (' .
(securiser_acces($Pile[$SP]['id_auteur'],interdire_scripts(entites_html(table_valeur(@$Pile[0], (string)'cle', null),true)),'transmettre',interdire_scripts(entites_html(table_valeur(@$Pile[0], (string)'op', null),true)),interdire_scripts(entites_html(table_valeur(@$Pile[0], (string)'args', null),true))) ? '1':'0') .
') {
?>' .
(($t1 = BOUCLE_statsjhtml_2d5a5938b6c859bf61bdb2589b8c8250($Cache, $Pile, $doublons, $Numrows, $SP))!=='' ?
		((	trim(trim(_T('public|spip|ecrire:date'),':')) .
		',' .
		trim(trim(_T('statistiques:info_visites'),':')) .
		'
') . $t1) :
		'') .
'
<?php
} else {
include_spip(\'inc/minipres\'); 
echo minipres();
}?>');
		lang_select();
	}
	lang_select();
	$iter->free();
	}
	if (defined("_BOUCLE_PROFILER")
	AND 1000*($timer = (time()+microtime())-$timer) > _BOUCLE_PROFILER)
		spip_log(intval(1000*$timer)."ms BOUCLE0 @ plugins-dist/statistiques/prive/transmettre/statistiques.html","profiler"._LOG_AVERTISSEMENT);
	return $t0;
}

//
// Fonction principale du squelette plugins-dist/statistiques/prive/transmettre/statistiques.html
// Temps de compilation total: 5.756 ms
//

function html_2d5a5938b6c859bf61bdb2589b8c8250($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 = (
BOUCLE0html_2d5a5938b6c859bf61bdb2589b8c8250($Cache, $Pile, $doublons, $Numrows, $SP) .
'
');

	return analyse_resultat_skel('html_2d5a5938b6c859bf61bdb2589b8c8250', $Cache, $page, 'plugins-dist/statistiques/prive/transmettre/statistiques.html');
}
?>