File "html_5c759b9494210182833bdddba659202a.php"

Full path: /home/argothem/www/SpipFactory-fichiers_de_travail/sauvegarde-depannage-1.9a3.2/1.9/CACHE/skel/html_5c759b9494210182833bdddba659202a.php
File size: 16.7 KB
MIME-type: text/x-php
Charset: utf-8

<?php
/*
 * Squelette : dist/backend.html
 * Date :      Sun, 02 Jul 2006 21:49:10 GMT
 * Compile :   Sun, 08 Mar 2020 16:59:28 GMT (0.02s)
 * Boucles :   _rubrique_rss, _mots_rss, _rubrique_mf, _mots_mf, _documents, _un_article, _a, _10recents, _b, _tres_recents
 */ 
//
// <BOUCLE rubriques>
//
function BOUCLE_rubrique_rsshtml_5c759b9494210182833bdddba659202a(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {

	// REQUETE
	$result = spip_optim_select(
		array("rubriques.titre",
		"rubriques.id_rubrique",
		"rubriques.lang"), # SELECT
		array('rubriques' => 'spip_rubriques'), # FROM
		
			array(
			array('=', 'rubriques.id_rubrique', spip_abstract_quote($Pile[$SP]['id_rubrique'])), 
			array('=', 'rubriques.statut', '"publie"')), # WHERE
		array(), # WHERE pour jointure
		'', # GROUP
		array(), # ORDER
		'', # LIMIT
		'', # sous
		
			array(), # HAVING
		'rubriques', # table
		'_rubrique_rss', # boucle
		''); # serveur
	$t0 = "";
	$SP++;
	$old_lang = $GLOBALS['spip_lang'];

	// RESULTATS
	while ($Pile[$SP] = @spip_abstract_fetch($result,"")) {
		if (!$GLOBALS['forcer_lang'])
	 		$GLOBALS['spip_lang'] = ($x = $Pile[$SP]['lang']) ? $x : $old_lang;
		$t0 .= ((strval($t1 = interdire_scripts(texte_backend(supprimer_numero(typo($Pile[$SP]['titre'])))))!='') ?
		(('<category' .
	((strval($t2 = url_absolue(htmlspecialchars(vider_url(generer_url_rubrique($Pile[$SP]['id_rubrique'])))))!='') ?
			(' domain="' . $t2 . '"') :
			('')) .
	'>') . $t1 . '</category>') :
		(''));
	}

	$GLOBALS['spip_lang'] = $old_lang;
	@spip_abstract_free($result,'');
	return $t0;
}


//
// <BOUCLE mots>
//
function BOUCLE_mots_rsshtml_5c759b9494210182833bdddba659202a(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {

	// REQUETE
	$result = spip_optim_select(
		array("mots.id_mot",
		"mots.titre"), # SELECT
		array('L1' => 'spip_mots_articles','mots' => 'spip_mots'), # FROM
		
			array(
			array('=', 'L1.id_article', spip_abstract_quote($Pile[$SP]['id_article']))), # WHERE
		array(1 => array('mots', 'id_mot')), # WHERE pour jointure
		"mots.id_mot", # GROUP
		array(), # ORDER
		'', # LIMIT
		'', # sous
		
			array(), # HAVING
		'mots', # table
		'_mots_rss', # boucle
		''); # serveur
	$t0 = "";
	$SP++;

	// RESULTATS
	while ($Pile[$SP] = @spip_abstract_fetch($result,"")) {

		$t0 .= ('
		' .
((strval($t1 = interdire_scripts(texte_backend(typo($Pile[$SP]['titre']))))!='') ?
		('<dc:subject>' . $t1 . '</dc:subject>') :
		('')));
	}

	@spip_abstract_free($result,'');
	return $t0;
}


//
// <BOUCLE rubriques>
//
function BOUCLE_rubrique_mfhtml_5c759b9494210182833bdddba659202a(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {

	// REQUETE
	$result = spip_optim_select(
		array("rubriques.titre",
		"rubriques.id_rubrique",
		"rubriques.lang"), # SELECT
		array('rubriques' => 'spip_rubriques'), # FROM
		
			array(
			array('=', 'rubriques.id_rubrique', spip_abstract_quote($Pile[$SP]['id_rubrique'])), 
			array('=', 'rubriques.statut', '"publie"')), # WHERE
		array(), # WHERE pour jointure
		'', # GROUP
		array(), # ORDER
		'', # LIMIT
		'', # sous
		
			array(), # HAVING
		'rubriques', # table
		'_rubrique_mf', # boucle
		''); # serveur
	$t0 = "";
	$SP++;
	$old_lang = $GLOBALS['spip_lang'];

	// RESULTATS
	while ($Pile[$SP] = @spip_abstract_fetch($result,"")) {
		if (!$GLOBALS['forcer_lang'])
	 		$GLOBALS['spip_lang'] = ($x = $Pile[$SP]['lang']) ? $x : $old_lang;
		$t0 .= ('-
' .
((strval($t1 = interdire_scripts(texte_backend(supprimer_numero(typo($Pile[$SP]['titre'])))))!='') ?
		(('&lt;a href="' .
	url_absolue(htmlspecialchars(vider_url(generer_url_rubrique($Pile[$SP]['id_rubrique'])))) .
	'" rel="directory"&gt;') . $t1 . '&lt;/a&gt;') :
		('')) .
'
');
	}

	$GLOBALS['spip_lang'] = $old_lang;
	@spip_abstract_free($result,'');
	return $t0;
}


//
// <BOUCLE mots>
//
function BOUCLE_mots_mfhtml_5c759b9494210182833bdddba659202a(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {

	// REQUETE
	$result = spip_optim_select(
		array("mots.id_mot",
		"mots.titre"), # SELECT
		array('L1' => 'spip_mots_articles','mots' => 'spip_mots'), # FROM
		
			array(
			array('=', 'L1.id_article', spip_abstract_quote($Pile[$SP]['id_article']))), # WHERE
		array(1 => array('mots', 'id_mot')), # WHERE pour jointure
		"mots.id_mot", # GROUP
		array(), # ORDER
		'', # LIMIT
		'', # sous
		
			array(), # HAVING
		'mots', # table
		'_mots_mf', # boucle
		''); # serveur
	$t0 = "";
	$SP++;

	// RESULTATS
	while ($Pile[$SP] = @spip_abstract_fetch($result,"")) {

		$t1 = ('
' .
((strval($t1 = interdire_scripts(texte_backend(typo($Pile[$SP]['titre']))))!='') ?
		(('&lt;a href="' .
	url_absolue(htmlspecialchars(vider_url(generer_url_mot($Pile[$SP]['id_mot'])))) .
	'" rel="tag"&gt;') . $t1 . '&lt;/a&gt;') :
		('')));
		$t0 .= (($t1 && $t0) ? ', ' : '') . $t1;
	}

	@spip_abstract_free($result,'');
	return $t0;
}


//
// <BOUCLE documents>
//
function BOUCLE_documentshtml_5c759b9494210182833bdddba659202a(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {
	$doublons_index = array();

	// REQUETE
	$result = spip_optim_select(
		array("documents.id_document",
		"documents.taille",
		"J1.mime_type"), # SELECT
		array('L1' => 'spip_documents_articles','J1' => 'spip_types_documents','documents' => 'spip_documents'), # FROM
		
			array(
			array('=', 'L1.id_article', spip_abstract_quote($Pile[$SP]['id_article'])), 
			array('=', 'documents.mode', "'document'"), 
			array(calcul_mysql_in('documents.id_document', "0".$doublons[$doublons_index[]= ('documents')], 'NOT')), 
			array('=', 'documents.id_type', 'J1.id_type'), 
			array('(documents.taille > 0 OR documents.distant="oui")')), # WHERE
		array(1 => array('documents', 'id_document')), # WHERE pour jointure
		"documents.id_document", # GROUP
		array(), # ORDER
		'', # LIMIT
		'', # sous
		
			array(), # HAVING
		'documents', # table
		'_documents', # boucle
		''); # serveur
	$t0 = "";
	$SP++;

	// RESULTATS
	while ($Pile[$SP] = @spip_abstract_fetch($result,"")) {

			foreach($doublons_index as $k) $doublons[$k] .= "," . $Pile[$SP]['id_document']; // doublons

		$t0 .= (((strval($t1 = unique(url_absolue(htmlspecialchars(vider_url(generer_url_document($Pile[$SP]['id_document']))))))!='') ?
		('
		<enclosure url="' . $t1 . ('"' .
	((strval($t2 = interdire_scripts($Pile[$SP]['taille']))!='') ?
			(' length="' . $t2 . '"') :
			('')) .
	((strval($t2 = interdire_scripts($Pile[$SP]['mime_type']))!='') ?
			(' type="' . $t2 . '"') :
			('')) .
	' />')) :
		('')) .
'
		');
	}

	@spip_abstract_free($result,'');
	return $t0;
}


//
// <BOUCLE articles>
//
function BOUCLE_un_articlehtml_5c759b9494210182833bdddba659202a(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {

	// REQUETE
	$result = spip_optim_select(
		array("articles.id_rubrique",
		"articles.id_article",
		"articles.titre",
		"articles.date",
		"articles.lang",
		"articles.texte",
		"articles.chapo",
		"articles.descriptif",
		"articles.ps"), # SELECT
		array('articles' => 'spip_articles'), # FROM
		
			array(
			array('=', 'articles.id_article', spip_abstract_quote($Pile[$SP]['id_article'])), 
			array('=', 'articles.statut', '"publie"')), # WHERE
		array(), # WHERE pour jointure
		'', # GROUP
		array(), # ORDER
		'', # LIMIT
		'', # sous
		
			array(), # HAVING
		'articles', # table
		'_un_article', # boucle
		''); # serveur
	$t0 = "";
	$SP++;
	$old_lang = $GLOBALS['spip_lang'];

	// RESULTATS
	while ($Pile[$SP] = @spip_abstract_fetch($result,"")) {
		if (!$GLOBALS['forcer_lang'])
	 		$GLOBALS['spip_lang'] = ($x = $Pile[$SP]['lang']) ? $x : $old_lang;
		$t0 .= ('
	<item>
		<title>' .
interdire_scripts(texte_backend(supprimer_numero(typo($Pile[$SP]['titre'])))) .
'</title>
		<link>' .
url_absolue(htmlspecialchars(vider_url(generer_url_article($Pile[$SP]['id_article'])))) .
'</link>
		' .
((strval($t1 = url_absolue(htmlspecialchars(vider_url(generer_url_article($Pile[$SP]['id_article'])))))!='') ?
		('<guid isPermaLink="true">' . $t1 . '</guid>') :
		('')) .
'
		' .
((strval($t1 = date_iso(vider_date($Pile[$SP]['date'])))!='') ?
		('<dc:date>' . $t1 . '</dc:date>') :
		('')) .
'
		<dc:format>text/html</dc:format>
		' .
((strval($t1 = htmlentities($Pile[$SP]['lang'] ? $Pile[$SP]['lang'] : $GLOBALS['spip_lang']))!='') ?
		('<dc:language>' . $t1 . '</dc:language>') :
		('')) .
'
		' .
((strval($t1 = texte_backend(supprimer_tags(recuperer_fond(
			'modeles/lesauteurs',
			array('id_article' => $Pile[$SP]['id_article'])))))!='') ?
		('<dc:creator>' . $t1 . '</dc:creator>') :
		('')) .
'

' .
BOUCLE_rubrique_rsshtml_5c759b9494210182833bdddba659202a($Cache, $Pile, $doublons, $Numrows, $SP) .
'
' .
BOUCLE_mots_rsshtml_5c759b9494210182833bdddba659202a($Cache, $Pile, $doublons, $Numrows, $SP) .
'

		<description>' .
interdire_scripts(texte_backend(calcul_introduction('articles', $Pile[$SP]['texte'], $Pile[$SP]['chapo'], $Pile[$SP]['descriptif']))) .
'

' .
BOUCLE_rubrique_mfhtml_5c759b9494210182833bdddba659202a($Cache, $Pile, $doublons, $Numrows, $SP) .
((strval($t1 = BOUCLE_mots_mfhtml_5c759b9494210182833bdddba659202a($Cache, $Pile, $doublons, $Numrows, $SP))!='') ?
		('
/ ' . $t1) :
		('')) .
'

		</description>

' .
((strval($t1 = interdire_scripts((($GLOBALS["meta"]['syndication_integrale'] == 'oui') ? ' ':'')))!='') ?
		('
' . $t1 . ('<content:encoded>' .
	((strval($t2 = texte_backend(affiche_logos(calcule_logo('id_article', 'ON', $Pile[$SP]['id_article'],'',  ''), '', 'right')))!='') ?
			($t2 . '
		') :
			('')) .
	((strval($t2 = interdire_scripts(texte_backend(traiter_doublons_documents($doublons, propre(nettoyer_chapo($Pile[$SP]['chapo']))))))!='') ?
			('&lt;div class=\'rss_chapo\'&gt;' . $t2 . '&lt;/div&gt;
		') :
			('')) .
	((strval($t2 = interdire_scripts(texte_backend(filtrer('image_reduire',traiter_doublons_documents($doublons, propre($Pile[$SP]['texte'])),'520','0'))))!='') ?
			('&lt;div class=\'rss_texte\'&gt;' . $t2 . '&lt;/div&gt;
		') :
			('')) .
	((strval($t2 = interdire_scripts(texte_backend(calculer_notes())))!='') ?
			('&lt;hr /&gt;
		&lt;div class=\'rss_notes\'&gt;' . $t2 . '&lt;/div&gt;
		') :
			('')) .
	((strval($t2 = interdire_scripts(texte_backend(traiter_doublons_documents($doublons, propre($Pile[$SP]['ps'])))))!='') ?
			('&lt;div class=\'rss_ps\'&gt;' . $t2 . '&lt;/div&gt;') :
			('')) .
	'
		</content:encoded>
')) :
		('')) .
'

' .
'		' .
BOUCLE_documentshtml_5c759b9494210182833bdddba659202a($Cache, $Pile, $doublons, $Numrows, $SP) .
'

	</item>
');
	}

	$GLOBALS['spip_lang'] = $old_lang;
	@spip_abstract_free($result,'');
	return $t0;
}


//
// <BOUCLE boucle>
//
function BOUCLE_ahtml_5c759b9494210182833bdddba659202a(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {
	$save_numrows = ($Numrows['_un_article']);
	$t0 = BOUCLE_un_articlehtml_5c759b9494210182833bdddba659202a($Cache, $Pile, $doublons, $Numrows, $SP);
	$Numrows['_un_article'] = ($save_numrows);
	return $t0;
}


//
// <BOUCLE articles>
//
function BOUCLE_10recentshtml_5c759b9494210182833bdddba659202a(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {
	$doublons_index = array();

	// REQUETE
	$result = spip_optim_select(
		array("articles.id_article",
		"articles.lang"), # SELECT
		array('L1' => 'spip_mots_articles','articles' => 'spip_articles'), # FROM
		
			array(($Pile[$SP]['lang'] ? 
			array('=', 'articles.lang', spip_abstract_quote($GLOBALS['spip_lang'])) : ''), ($Pile[$SP]['id_rubrique'] ? calcul_mysql_in('articles.id_rubrique', calcul_branche($Pile[$SP]['id_rubrique']), '') : 1), ($Pile[$SP]['id_mot'] ? 
			array('=', 'L1.id_mot', spip_abstract_quote($Pile[$SP]['id_mot'])) : ''), 
			array(calcul_mysql_in('articles.id_article', "0".$doublons[$doublons_index[]= ('articles')], 'NOT')), 
			array('=', 'articles.statut', '"publie"')), # WHERE
		array(1 => array('articles', 'id_article')), # WHERE pour jointure
		"articles.id_article", # GROUP
		array('articles.date' . ' DESC'), # ORDER
		'0,10', # LIMIT
		'', # sous
		
			array(), # HAVING
		'articles', # table
		'_10recents', # boucle
		''); # serveur
	$t0 = "";
	$SP++;
	$old_lang = $GLOBALS['spip_lang'];

	// RESULTATS
	while ($Pile[$SP] = @spip_abstract_fetch($result,"")) {

			foreach($doublons_index as $k) $doublons[$k] .= "," . $Pile[$SP]['id_article']; // doublons
		if (!$GLOBALS['forcer_lang'])
	 		$GLOBALS['spip_lang'] = ($x = $Pile[$SP]['lang']) ? $x : $old_lang;
		$t0 .= ('
' .
BOUCLE_ahtml_5c759b9494210182833bdddba659202a($Cache, $Pile, $doublons, $Numrows, $SP) .
'
');
	}

	$GLOBALS['spip_lang'] = $old_lang;
	@spip_abstract_free($result,'');
	return $t0;
}


//
// <BOUCLE boucle>
//
function BOUCLE_bhtml_5c759b9494210182833bdddba659202a(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {
	$save_numrows = ($Numrows['_un_article']);
	$t0 = BOUCLE_un_articlehtml_5c759b9494210182833bdddba659202a($Cache, $Pile, $doublons, $Numrows, $SP);
	$Numrows['_un_article'] = ($save_numrows);
	return $t0;
}


//
// <BOUCLE articles>
//
function BOUCLE_tres_recentshtml_5c759b9494210182833bdddba659202a(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {
	$doublons_index = array();

	// REQUETE
	$result = spip_optim_select(
		array("articles.id_article",
		"articles.lang"), # SELECT
		array('L1' => 'spip_mots_articles','articles' => 'spip_articles'), # FROM
		
			array(($Pile[$SP]['lang'] ? 
			array('=', 'articles.lang', spip_abstract_quote($GLOBALS['spip_lang'])) : ''), ($Pile[$SP]['id_rubrique'] ? calcul_mysql_in('articles.id_rubrique', calcul_branche($Pile[$SP]['id_rubrique']), '') : 1), ($Pile[$SP]['id_mot'] ? 
			array('=', 'L1.id_mot', spip_abstract_quote($Pile[$SP]['id_mot'])) : ''), 
			array('<', 'LEAST((UNIX_TIMESTAMP(now())-UNIX_TIMESTAMP(articles.date))/86400,
	TO_DAYS(now())-TO_DAYS(articles.date),
	DAYOFMONTH(now())-DAYOFMONTH(articles.date)+30.4368*(MONTH(now())-MONTH(articles.date))+365.2422*(YEAR(now())-YEAR(articles.date)))', "'3'"), 
			array(calcul_mysql_in('articles.id_article', "0".$doublons[$doublons_index[]= ('articles')], 'NOT')), 
			array('=', 'articles.statut', '"publie"')), # WHERE
		array(1 => array('articles', 'id_article')), # WHERE pour jointure
		"articles.id_article", # GROUP
		array('articles.date' . ' DESC'), # ORDER
		'', # LIMIT
		'', # sous
		
			array(), # HAVING
		'articles', # table
		'_tres_recents', # boucle
		''); # serveur
	$t0 = "";
	$SP++;
	$old_lang = $GLOBALS['spip_lang'];

	// RESULTATS
	while ($Pile[$SP] = @spip_abstract_fetch($result,"")) {

			foreach($doublons_index as $k) $doublons[$k] .= "," . $Pile[$SP]['id_article']; // doublons
		if (!$GLOBALS['forcer_lang'])
	 		$GLOBALS['spip_lang'] = ($x = $Pile[$SP]['lang']) ? $x : $old_lang;
		$t0 .= ('
' .
BOUCLE_bhtml_5c759b9494210182833bdddba659202a($Cache, $Pile, $doublons, $Numrows, $SP) .
'
');
	}

	$GLOBALS['spip_lang'] = $old_lang;
	@spip_abstract_free($result,'');
	return $t0;
}



//
// Fonction principale du squelette dist/backend.html
//
function html_5c759b9494210182833bdddba659202a($Cache, $Pile, $doublons=array(), $Numrows=array(), $SP=0) {
	$page = ('<?php header("X-Spip-Cache: 3600"); ?>'.'<?php header("Cache-Control: max-age=3600"); ?>' .
'<'.'?php header("' . ('Content-type: text/xml' .
	((strval($t2 = interdire_scripts($GLOBALS['meta']['charset']))!='') ?
			('; charset=' . $t2) :
			(''))) . '"); ?'.'>' .
'
<?php echo \'<\' ?>?xml version="1.0"' .
((strval($t1 = interdire_scripts($GLOBALS['meta']['charset']))!='') ?
		(' encoding="' . $t1 . '"') :
		('')) .
'?>
<rss version="2.0"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
>

<channel>
	<title>' .
interdire_scripts(texte_backend(typo($GLOBALS['meta']['nom_site']))) .
'</title>
	<link>' .
htmlspecialchars(sinon($GLOBALS['meta']['adresse_site'],'.')) .
'/</link>
	<description>' .
interdire_scripts(texte_backend(traiter_doublons_documents($doublons, propre($GLOBALS['meta']['descriptif_site'])))) .
'</description>
	<language>' .
htmlentities($Pile[0]['lang'] ? $Pile[0]['lang'] : $GLOBALS['spip_lang']) .
'</language>
	<generator>SPIP - www.spip.net</generator>

' .
((strval($t1 = texte_backend(url_absolue(extraire_attribut(affiche_logos(calcule_logo('id_syndic', 'ON', "'0'",'',  ''), '', ''),'src'))))!='') ?
		(('	<image>
		<title>' .
	interdire_scripts(texte_backend(typo($GLOBALS['meta']['nom_site']))) .
	'</title>
		<url>') . $t1 . ('</url>
		<link>' .
	htmlspecialchars(sinon($GLOBALS['meta']['adresse_site'],'.')) .
	'/</link>
		' .
	((strval($t2 = extraire_attribut(affiche_logos(calcule_logo('id_syndic', 'ON', "'0'",'',  ''), '', ''),'height'))!='') ?
			('<height>' . $t2 . '</height>') :
			('')) .
	'
		' .
	((strval($t2 = extraire_attribut(affiche_logos(calcule_logo('id_syndic', 'ON', "'0'",'',  ''), '', ''),'width'))!='') ?
			('<width>' . $t2 . '</width>') :
			('')) .
	'
	</image>
')) :
		('')) .
'

	' .
BOUCLE_un_articlehtml_5c759b9494210182833bdddba659202a($Cache, $Pile, $doublons, $Numrows, $SP) .
'

' .
BOUCLE_10recentshtml_5c759b9494210182833bdddba659202a($Cache, $Pile, $doublons, $Numrows, $SP) .
'

' .
BOUCLE_tres_recentshtml_5c759b9494210182833bdddba659202a($Cache, $Pile, $doublons, $Numrows, $SP) .
'

</channel>

</rss>
');

	return analyse_resultat_skel('html_5c759b9494210182833bdddba659202a', $Cache, $page);
}

?>