| Current Path : /home/quelfutuu/www/tmp/cache/skel/ |
| Current File : /home/quelfutuu/www/tmp/cache/skel/html_403cfa274da6f8c97291298586d80939.php |
<?php
/*
* Squelette : plugins/auto/breves/v3.2.0/backend-breves.html
* Date : Fri, 10 Oct 2025 10:54:04 GMT
* Compile : Sat, 02 May 2026 00:02:45 GMT
* Boucles : _mots_rss, _rubrique_mf, _mots_mf, _documents, _breves
*/
function BOUCLE_mots_rsshtml_403cfa274da6f8c97291298586d80939(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {
static $command = array();
static $connect;
$command['connect'] = $connect = '';
if (!isset($command['table'])) {
$command['table'] = 'mots';
$command['id'] = '_mots_rss';
$command['from'] = array('mots' => 'spip_mots','L1' => 'spip_mots_liens');
$command['type'] = array();
$command['groupby'] = array();
$command['select'] = array("mots.titre");
$command['orderby'] = array();
$command['join'] = array('L1' => array('mots','id_mot'));
$command['limit'] = '';
$command['having'] =
array();
}
$command['where'] =
array(
array('=', 'L1.id_objet', sql_quote($Pile[$SP]['id_breve'], '','bigint NOT NULL DEFAULT \'0\'')),
array('=', 'L1.objet', sql_quote('breve')));
if (defined("_BOUCLE_PROFILER")) $timer = time()+(float)microtime();
$t0 = "";
// REQUETE
$iter = Spip\Compilateur\Iterateur\Factory::create(
"SQL",
$command,
array('plugins/auto/breves/v3.2.0/backend-breves.html','html_403cfa274da6f8c97291298586d80939','_mots_rss',36,$GLOBALS['spip_lang'])
);
if (!$iter->err()) {
$SP++;
// RESULTATS
while ($Pile[$SP]=$iter->fetch()) {
$t0 .= (($t1 = strval(retablir_echappements_modeles(interdire_scripts(texte_backend(traiter_doublons_documents($doublons, cs_nettoie(PtoBR(cs_glossaire_titres(propre(supprimer_numero($Pile[$SP]['titre']), $connect, $Pile[0]))))))))))!=='' ?
('
<dc:subject>' . $t1 . '</dc:subject>') :
'');
}
$iter->free();
}
if (defined("_BOUCLE_PROFILER")
AND 1000*($timer = (time()+(float)microtime())-$timer) > _BOUCLE_PROFILER)
spip_log(intval(1000*$timer)."ms BOUCLE_mots_rss @ plugins/auto/breves/v3.2.0/backend-breves.html","profiler"._LOG_AVERTISSEMENT);
return $t0;
}
function BOUCLE_rubrique_mfhtml_403cfa274da6f8c97291298586d80939(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {
static $command = array();
static $connect;
$command['connect'] = $connect = '';
if (!isset($command['table'])) {
$command['table'] = 'rubriques';
$command['id'] = '_rubrique_mf';
$command['from'] = array('rubriques' => 'spip_rubriques');
$command['type'] = array();
$command['groupby'] = array();
$command['select'] = array("rubriques.titre",
"rubriques.id_rubrique",
"rubriques.lang");
$command['orderby'] = array();
$command['join'] = array();
$command['limit'] = '';
$command['having'] =
array();
}
$command['where'] =
array(
quete_condition_statut('rubriques.statut','!','publie',''),
array('=', 'rubriques.id_rubrique', sql_quote($Pile[$SP]['id_rubrique'], '','bigint NOT NULL AUTO_INCREMENT')));
if (defined("_BOUCLE_PROFILER")) $timer = time()+(float)microtime();
$t0 = "";
// REQUETE
$iter = Spip\Compilateur\Iterateur\Factory::create(
"SQL",
$command,
array('plugins/auto/breves/v3.2.0/backend-breves.html','html_403cfa274da6f8c97291298586d80939','_rubrique_mf',45,$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 .= (
'-
' .
(($t1 = strval(retablir_echappements_modeles(interdire_scripts(texte_backend(traiter_doublons_documents($doublons, cs_nettoie(PtoBR(propre(supprimer_numero($Pile[$SP]['titre']), $connect, $Pile[0])))))))))!=='' ?
(( '<a href="' .
retablir_echappements_modeles(url_absolue(vider_url(urlencode_1738(generer_objet_url($Pile[$SP]['id_rubrique'], 'rubrique', '', '', true))))) .
'" rel="directory">') . $t1 . '</a>') :
'') .
'
');
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_rubrique_mf @ plugins/auto/breves/v3.2.0/backend-breves.html","profiler"._LOG_AVERTISSEMENT);
return $t0;
}
function BOUCLE_mots_mfhtml_403cfa274da6f8c97291298586d80939(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {
static $command = array();
static $connect;
$command['connect'] = $connect = '';
if (!isset($command['table'])) {
$command['table'] = 'mots';
$command['id'] = '_mots_mf';
$command['from'] = array('mots' => 'spip_mots','L1' => 'spip_mots_liens');
$command['type'] = array();
$command['groupby'] = array();
$command['select'] = array("mots.titre",
"mots.id_mot");
$command['orderby'] = array();
$command['join'] = array('L1' => array('mots','id_mot'));
$command['limit'] = '';
$command['having'] =
array();
}
$command['where'] =
array(
array('=', 'L1.id_objet', sql_quote($Pile[$SP]['id_breve'], '','bigint NOT NULL DEFAULT \'0\'')),
array('=', 'L1.objet', sql_quote('breve')));
if (defined("_BOUCLE_PROFILER")) $timer = time()+(float)microtime();
$t0 = "";
// REQUETE
$iter = Spip\Compilateur\Iterateur\Factory::create(
"SQL",
$command,
array('plugins/auto/breves/v3.2.0/backend-breves.html','html_403cfa274da6f8c97291298586d80939','_mots_mf',48,$GLOBALS['spip_lang'])
);
if (!$iter->err()) {
$SP++;
// RESULTATS
while ($Pile[$SP]=$iter->fetch()) {
$t1 = (
'
' .
(($t1 = strval(retablir_echappements_modeles(interdire_scripts(texte_backend(traiter_doublons_documents($doublons, cs_nettoie(PtoBR(cs_glossaire_titres(propre(supprimer_numero($Pile[$SP]['titre']), $connect, $Pile[0]))))))))))!=='' ?
(( '<a href="' .
retablir_echappements_modeles(url_absolue(vider_url(urlencode_1738(generer_objet_url($Pile[$SP]['id_mot'], 'mot', '', '', true))))) .
'" rel="tag">') . $t1 . '</a>') :
''));
$t0 .= ((strlen($t1) && strlen($t0)) ? ', ' : '') . $t1;
}
$iter->free();
}
if (defined("_BOUCLE_PROFILER")
AND 1000*($timer = (time()+(float)microtime())-$timer) > _BOUCLE_PROFILER)
spip_log(intval(1000*$timer)."ms BOUCLE_mots_mf @ plugins/auto/breves/v3.2.0/backend-breves.html","profiler"._LOG_AVERTISSEMENT);
return $t0;
}
function BOUCLE_documentshtml_403cfa274da6f8c97291298586d80939(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {
static $command = array();
static $connect;
$command['connect'] = $connect = '';
$doublons_index = array();
// Initialise le(s) critère(s) doublons
if (!isset($doublons[$d = 'documents'])) { $doublons[$d] = ''; }
if (!isset($command['table'])) {
$command['table'] = 'documents';
$command['id'] = '_documents';
$command['from'] = array('documents' => 'spip_documents','L1' => 'spip_documents_liens');
$command['type'] = array();
$command['groupby'] = array();
$command['select'] = array("documents.id_document",
"documents.taille");
$command['orderby'] = array();
$command['join'] = array('L1' => array('documents','id_document'));
$command['limit'] = '';
$command['having'] =
array();
}
$command['where'] =
array(
quete_condition_statut('documents.statut','publie,prop,prepa','publie',''),
quete_condition_postdates('documents.date_publication',''),
array('IN', 'documents.mode', '(\'image\',\'document\')'),
array('(documents.taille > 0 OR documents.distant=\'oui\')'),
array('=', 'L1.id_objet', sql_quote($Pile[$SP]['id_breve'], '','bigint NOT NULL DEFAULT \'0\'')),
array('=', 'L1.objet', sql_quote('breve')),
array('NOT',
array('=', 'documents.media', "'image'")),
array(sql_in('documents.id_document', $doublons[$doublons_index[]= ('documents')], 'NOT')));
if (defined("_BOUCLE_PROFILER")) $timer = time()+(float)microtime();
$t0 = "";
// REQUETE
$iter = Spip\Compilateur\Iterateur\Factory::create(
"SQL",
$command,
array('plugins/auto/breves/v3.2.0/backend-breves.html','html_403cfa274da6f8c97291298586d80939','_documents',68,$GLOBALS['spip_lang'])
);
if (!$iter->err()) {
$SP++;
// RESULTATS
while ($Pile[$SP]=$iter->fetch()) {
foreach($doublons_index as $k) $doublons[$k] .= "," . $Pile[$SP]['id_document']; // doublons
$t0 .= (
(($t1 = strval(retablir_echappements_modeles(unique(url_absolue(vider_url(urlencode_1738(generer_objet_url($Pile[$SP]['id_document'], 'document', '', '', true))))))))!=='' ?
('
<enclosure url="' . $t1 . ( '"' .
(($t2 = strval(retablir_echappements_modeles(interdire_scripts($Pile[$SP]['taille']))))!=='' ?
(' length="' . $t2 . '"') :
'') .
(($t2 = strval(retablir_echappements_modeles(interdire_scripts(mime_type_oembed($Pile[$SP]['id_document'])))))!=='' ?
(' type="' . $t2 . '"') :
'') .
' />')) :
'') .
'
');
}
$iter->free();
}
if (defined("_BOUCLE_PROFILER")
AND 1000*($timer = (time()+(float)microtime())-$timer) > _BOUCLE_PROFILER)
spip_log(intval(1000*$timer)."ms BOUCLE_documents @ plugins/auto/breves/v3.2.0/backend-breves.html","profiler"._LOG_AVERTISSEMENT);
return $t0;
}
function BOUCLE_breveshtml_403cfa274da6f8c97291298586d80939(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {
static $command = array();
static $connect;
$command['connect'] = $connect = '';
$in = array();
if (!(is_array($a = (($Pile[0]['id_rubrique'] ?? null)))))
$in[]= $a;
else $in = array_merge($in, $a);
$in1 = array();
if (!(is_array($a = (($Pile[0]['lang'] ?? null)))))
$in1[]= $a;
else $in1 = array_merge($in1, $a);
$in2 = array();
if (!(is_array($a = (($Pile[0]['id_mot'] ?? null)))))
$in2[]= $a;
else $in2 = array_merge($in2, $a);
if (!isset($command['table'])) {
$command['table'] = 'breves';
$command['id'] = '_breves';
$command['from'] = array('breves' => 'spip_breves','L1' => 'spip_mots_liens');
$command['type'] = array();
$command['groupby'] = array("breves.id_breve");
$command['select'] = array("breves.id_breve",
"breves.id_rubrique",
"breves.date_heure",
"breves.lang",
"breves.titre",
"breves.date_heure AS date",
"breves.texte");
$command['orderby'] = array('breves.date_heure DESC');
$command['join'] = array('L1' => array('breves','id_objet','id_breve','L1.objet='.sql_quote('breve')));
$command['limit'] = '0,20';
$command['having'] =
array();
}
$command['where'] =
array(
quete_condition_statut('breves.statut','publie,prop','publie',''), (!is_whereable(($Pile[0]['id_rubrique'] ?? null)) ? '' : ((is_array(($Pile[0]['id_rubrique'] ?? null))) ? sql_in('breves.id_rubrique', $in) :
array('=', 'breves.id_rubrique', sql_quote(($Pile[0]['id_rubrique'] ?? null), '','bigint NOT NULL DEFAULT \'0\'')))), (!is_whereable(($Pile[0]['lang'] ?? null)) ? '' : ((is_array(($Pile[0]['lang'] ?? null))) ? sql_in('breves.lang', $in1) :
array('=', 'breves.lang', sql_quote($GLOBALS['spip_lang'], '','varchar(10) NOT NULL DEFAULT \'\'')))), 'JOIN-L1' =>
array('=', 'L1.objet', sql_quote('breve')), (!is_whereable(($Pile[0]['id_mot'] ?? null)) ? '' : ((is_array(($Pile[0]['id_mot'] ?? null))) ? sql_in('L1.id_mot', $in2) :
array('=', 'L1.id_mot', sql_quote(($Pile[0]['id_mot'] ?? null), '','bigint NOT NULL DEFAULT \'0\'')))));
if (defined("_BOUCLE_PROFILER")) $timer = time()+(float)microtime();
$t0 = "";
// REQUETE
$iter = Spip\Compilateur\Iterateur\Factory::create(
"SQL",
$command,
array('plugins/auto/breves/v3.2.0/backend-breves.html','html_403cfa274da6f8c97291298586d80939','_breves',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 .= (
'
<item' .
(($t1 = strval(retablir_echappements_modeles(spip_htmlentities($Pile[$SP]['lang'] ? $Pile[$SP]['lang'] : $GLOBALS['spip_lang']))))!=='' ?
(' xml:lang="' . $t1 . '"') :
'') .
'>
<title>' .
retablir_echappements_modeles(interdire_scripts(texte_backend(supprimer_tags(traiter_doublons_documents($doublons, cs_nettoie(PtoBR(propre(supprimer_numero($Pile[$SP]['titre']), $connect, $Pile[0])))))))) .
'</title>
<link>' .
retablir_echappements_modeles(url_absolue(vider_url(urlencode_1738(generer_objet_url($Pile[$SP]['id_breve'], 'breve', '', '', true))))) .
'</link>
' .
(($t1 = strval(retablir_echappements_modeles(url_absolue(vider_url(urlencode_1738(generer_objet_url($Pile[$SP]['id_breve'], 'breve', '', '', true)))))))!=='' ?
('<guid isPermaLink="true">' . $t1 . '</guid>') :
'') .
'
' .
(($t1 = strval(retablir_echappements_modeles(interdire_scripts(date_iso(normaliser_date($Pile[$SP]['date']))))))!=='' ?
('<dc:date>' . $t1 . '</dc:date>') :
'') .
'
<dc:format>text/html</dc:format>
' .
(($t1 = strval(retablir_echappements_modeles(spip_htmlentities($Pile[$SP]['lang'] ? $Pile[$SP]['lang'] : $GLOBALS['spip_lang']))))!=='' ?
('<dc:language>' . $t1 . '</dc:language>') :
'') .
'
' .
(($t1 = strval(retablir_echappements_modeles('')))!=='' ?
($t1 . '
Le bloc qui suit diffuse diffuse les mots-cles a la mode RSS
') :
'') .
BOUCLE_mots_rsshtml_403cfa274da6f8c97291298586d80939($Cache, $Pile, $doublons, $Numrows, $SP) .
'
<description>' .
retablir_echappements_modeles(interdire_scripts(texte_backend(generer_objet_introduction((int)$Pile[$SP]['id_breve'], 'breves', array('texte' => $Pile[$SP]['texte'],), '300', null, null, $connect)))) .
'
' .
(($t1 = strval(retablir_echappements_modeles('')))!=='' ?
($t1 . '
Le bloc qui suit diffuse la rubrique et les mots-cles
sous forme de "microformats"
') :
'') .
BOUCLE_rubrique_mfhtml_403cfa274da6f8c97291298586d80939($Cache, $Pile, $doublons, $Numrows, $SP) .
(($t1 = BOUCLE_mots_mfhtml_403cfa274da6f8c97291298586d80939($Cache, $Pile, $doublons, $Numrows, $SP))!=='' ?
('
/ ' . $t1) :
'') .
'
</description>
' .
(($t1 = strval(retablir_echappements_modeles('')))!=='' ?
($t1 . '
Le bloc qui suit diffuse aussi le texte integral de la breve,
ce qui permet une syndication plus riche (mais plus "lourde").
Fonction desactivable depuis les reglages du site.
') :
'') .
(($t1 = strval(retablir_echappements_modeles(interdire_scripts((((include_spip('inc/config')?lire_config('syndication_integrale',null,false):'') == 'oui') ? ' ':'')))))!=='' ?
('
' . $t1 . ( '<content:encoded>' .
(($t2 = strval(retablir_echappements_modeles(texte_backend(filtrer('image_graver', filtrer('image_reduire',quete_html_logo(quete_logo('id_breve', 'ON', $Pile[$SP]['id_breve'], ''), 'right', ''),'150','150'))))))!=='' ?
($t2 . '
') :
'') .
(($t2 = strval(retablir_echappements_modeles(interdire_scripts(texte_backend(filtrer('image_graver', filtrer('image_reduire',traiter_doublons_documents($doublons, cs_nettoie(sommaire_d_article(cs_glossaire(propre($Pile[$SP]['texte'], $connect, $Pile[0]))))),'500','0')))))))!=='' ?
('<div class=\'rss_texte\'>' . $t2 . '</div>
') :
'') .
(($t2 = strval(retablir_echappements_modeles(interdire_scripts(texte_backend(calculer_notes())))))!=='' ?
('<hr />
<div class=\'rss_notes\'>' . $t2 . '</div>') :
'') .
'
</content:encoded>
')) :
'') .
'
' .
(($t1 = strval(retablir_echappements_modeles('')))!=='' ?
($t1 . '
Le bloc qui suit diffuse l\'adresse des documents associes aux articles ;
ajouter par ex. {extension=mp3} pour limiter a un certain type de document.
') :
'') .
' ' .
BOUCLE_documentshtml_403cfa274da6f8c97291298586d80939($Cache, $Pile, $doublons, $Numrows, $SP) .
'
</item>
');
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_breves @ plugins/auto/breves/v3.2.0/backend-breves.html","profiler"._LOG_AVERTISSEMENT);
return $t0;
}
//
// Fonction principale du squelette plugins/auto/breves/v3.2.0/backend-breves.html
// Temps de compilation total: 43.716 ms
//
function html_403cfa274da6f8c97291298586d80939($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('<'.'?php header(' . _q(( 'Content-type: text/xml' .
(($t2 = strval((interdire_scripts($GLOBALS['meta']['charset']))))!=='' ?
('; charset=' . $t2) :
''))) . '); ?'.'>') .
'<?xml
version="1.0"' .
(($t1 = strval(retablir_echappements_modeles(interdire_scripts($GLOBALS['meta']['charset']))))!=='' ?
(' encoding="' . $t1 . '"') :
'') .
'?>' .
(($t1 = strval(retablir_echappements_modeles(interdire_scripts(url_absolue(generer_url_public('backend.xslt', ''))))))!=='' ?
('<?xml-stylesheet title="XSL formatting" type="text/xsl" href="' . $t1 . '" ?>') :
'') .
'
<rss version="2.0" ' .
(($t1 = strval(retablir_echappements_modeles('')))!=='' ?
($t1 . ' rss 2.0.9)') :
'') .
'
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:atom="http://www.w3.org/2005/Atom"
>
<channel' .
(($t1 = strval(retablir_echappements_modeles(spip_htmlentities(($Pile[0]['lang'] ?? null) ? ($Pile[0]['lang'] ?? null) : $GLOBALS['spip_lang']))))!=='' ?
(' xml:lang="' . $t1 . '"') :
'') .
'>
<title>' .
retablir_echappements_modeles(interdire_scripts(texte_backend(textebrut(traiter_doublons_documents($doublons, typo($GLOBALS['meta']['nom_site'], "TYPO", $connect, $Pile[0])))))) .
'</title>
<link>' .
retablir_echappements_modeles(spip_htmlspecialchars(sinon($GLOBALS['meta']['adresse_site'],'.'))) .
'/</link>
<description>' .
retablir_echappements_modeles(interdire_scripts(texte_backend(supprimer_tags(traiter_doublons_documents($doublons, propre($GLOBALS['meta']['descriptif_site'], $connect, $Pile[0])))))) .
'</description>
<language>' .
retablir_echappements_modeles(spip_htmlentities(($Pile[0]['lang'] ?? null) ? ($Pile[0]['lang'] ?? null) : $GLOBALS['spip_lang'])) .
'</language>
<generator>SPIP - www.spip.net</generator>
<atom:link href="' .
retablir_echappements_modeles(url_absolue(self())) .
'" rel="self" type="application/rss+xml" />
' .
(($t1 = strval(retablir_echappements_modeles(texte_backend(url_absolue(extraire_attribut(filtrer('image_graver', filtrer('image_reduire',quete_html_logo(quete_logo('id_syndic', 'ON', "'0'", ''), '', ''),'144','400')),'src'))))))!=='' ?
(( ' <image>
<title>' .
retablir_echappements_modeles(interdire_scripts(texte_backend(traiter_doublons_documents($doublons, typo($GLOBALS['meta']['nom_site'], "TYPO", $connect, $Pile[0]))))) .
'</title>
<url>') . $t1 . ( '</url>
<link>' .
retablir_echappements_modeles(spip_htmlspecialchars(sinon($GLOBALS['meta']['adresse_site'],'.'))) .
'/</link>
' .
(($t2 = strval(retablir_echappements_modeles(extraire_attribut(filtrer('image_graver', filtrer('image_reduire',quete_html_logo(quete_logo('id_syndic', 'ON', "'0'", ''), '', ''),'144','400')),'height'))))!=='' ?
('<height>' . $t2 . '</height>') :
'') .
'
' .
(($t2 = strval(retablir_echappements_modeles(extraire_attribut(filtrer('image_graver', filtrer('image_reduire',quete_html_logo(quete_logo('id_syndic', 'ON', "'0'", ''), '', ''),'144','400')),'width'))))!=='' ?
('<width>' . $t2 . '</width>') :
'') .
'
</image>
')) :
'') .
'
' .
BOUCLE_breveshtml_403cfa274da6f8c97291298586d80939($Cache, $Pile, $doublons, $Numrows, $SP) .
'
</channel>
</rss>');
return analyse_resultat_skel('html_403cfa274da6f8c97291298586d80939', $Cache, $page, 'plugins/auto/breves/v3.2.0/backend-breves.html');
}