Server : Apache System : Linux webd348.cluster026.gra.hosting.ovh.net 5.15.148-ovh-vps-grsec-zfs-classid #1 SMP Thu Feb 8 09:41:04 UTC 2024 x86_64 User : hednacluml ( 122243) PHP Version : 8.3.9 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl Directory : /home/hednacluml/univers/tmp/cache/skel/ |
<?php /* * Squelette : plugins/auto/escal/inc-rss-item.html * Date : Sat, 11 Nov 2023 17:14:06 GMT * Compile : Mon, 13 Nov 2023 20:45:33 GMT * Boucles : _exlure, _mots_rss, _rubrique_mf, _mots_mf, _documents, _un_article */ function BOUCLE_exlurehtml_7dc3d8ca64fae563d6848b457e839a3f(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) { static $command = array(); static $connect; $command['connect'] = $connect = ''; $doublons_index = array(); $in = array(); $in[]= 'affichage'; $in[]= 'type_rubrique'; $in[]= 'Agenda_couleur'; // Initialise le(s) critère(s) doublons if (!isset($doublons[$d = 'mots'])) { $doublons[$d] = ''; } if (!isset($command['table'])) { $command['table'] = 'mots'; $command['id'] = '_exlure'; $command['from'] = array('mots' => 'spip_mots','L1' => 'spip_mots_liens','L2' => 'spip_mots'); $command['type'] = array(); $command['groupby'] = array("mots.id_mot"); $command['select'] = array("mots.id_mot"); $command['join'] = array('L1' => array('mots','id_objet','id_mot','L1.objet='.sql_quote('mot')), 'L2' => array('L1','id_mot')); $command['limit'] = ''; $command['having'] = array(); } $command['orderby'] = array(((!$zqv=sql_quote($in) OR $zqv==="''") ? 0 : ('FIELD(L2.type,' . $zqv . ')'))); $command['where'] = array('JOIN-L1' => array('=', 'L1.objet', sql_quote('mot')), sql_in('L2.type', $in), array(sql_in('mots.id_mot', $doublons[$doublons_index[]= ('mots')], 'NOT'))); if (defined("_BOUCLE_PROFILER")) $timer = time()+(float)microtime(); $t0 = ""; // REQUETE $iter = Spip\Compilateur\Iterateur\Factory::create( "SQL", $command, array('plugins/auto/escal/inc-rss-item.html','html_7dc3d8ca64fae563d6848b457e839a3f','_exlure',16,$GLOBALS['spip_lang']) ); if (!$iter->err()) { $SP++; // RESULTATS while ($Pile[$SP]=$iter->fetch()) { foreach($doublons_index as $k) $doublons[$k] .= "," . $Pile[$SP]['id_mot']; // doublons $t0 .= ' '; } $iter->free(); } if (defined("_BOUCLE_PROFILER") AND 1000*($timer = (time()+(float)microtime())-$timer) > _BOUCLE_PROFILER) spip_log(intval(1000*$timer)."ms BOUCLE_exlure @ plugins/auto/escal/inc-rss-item.html","profiler"._LOG_AVERTISSEMENT); return $t0; } function BOUCLE_mots_rsshtml_7dc3d8ca64fae563d6848b457e839a3f(&$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_article'], '','bigint(21) NOT NULL DEFAULT \'0\'')), array('=', 'L1.objet', sql_quote('article'))); if (defined("_BOUCLE_PROFILER")) $timer = time()+(float)microtime(); $t0 = ""; // REQUETE $iter = Spip\Compilateur\Iterateur\Factory::create( "SQL", $command, array('plugins/auto/escal/inc-rss-item.html','html_7dc3d8ca64fae563d6848b457e839a3f','_mots_rss',19,$GLOBALS['spip_lang']) ); if (!$iter->err()) { $SP++; // RESULTATS while ($Pile[$SP]=$iter->fetch()) { $t0 .= ( ' ' . (($t1 = strval(interdire_scripts(texte_backend(traiter_doublons_documents($doublons, supprimer_numero(typo($Pile[$SP]['titre'], "TYPO", $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/escal/inc-rss-item.html","profiler"._LOG_AVERTISSEMENT); return $t0; } function BOUCLE_rubrique_mfhtml_7dc3d8ca64fae563d6848b457e839a3f(&$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(21) 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/escal/inc-rss-item.html','html_7dc3d8ca64fae563d6848b457e839a3f','_rubrique_mf',28,$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(interdire_scripts(texte_backend(supprimer_tags(traiter_doublons_documents($doublons, supprimer_numero(typo($Pile[$SP]['titre'], "TYPO", $connect, $Pile[0]))))))))!=='' ? (( '<a href="' . 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/escal/inc-rss-item.html","profiler"._LOG_AVERTISSEMENT); return $t0; } function BOUCLE_mots_mfhtml_7dc3d8ca64fae563d6848b457e839a3f(&$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 = 'mots'])) { $doublons[$d] = ''; } 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_article'], '','bigint(21) NOT NULL DEFAULT \'0\'')), array('=', 'L1.objet', sql_quote('article')), array(sql_in('mots.id_mot', $doublons[('mots')], ''))); if (defined("_BOUCLE_PROFILER")) $timer = time()+(float)microtime(); $t0 = ""; // REQUETE $iter = Spip\Compilateur\Iterateur\Factory::create( "SQL", $command, array('plugins/auto/escal/inc-rss-item.html','html_7dc3d8ca64fae563d6848b457e839a3f','_mots_mf',31,$GLOBALS['spip_lang']) ); if (!$iter->err()) { $SP++; // RESULTATS while ($Pile[$SP]=$iter->fetch()) { foreach($doublons_index as $k) $doublons[$k] .= "," . $Pile[$SP]['id_mot']; // doublons $t1 = ( ' ' . (($t1 = strval(interdire_scripts(texte_backend(traiter_doublons_documents($doublons, supprimer_numero(typo($Pile[$SP]['titre'], "TYPO", $connect, $Pile[0])))))))!=='' ? (( '<a href="' . 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/escal/inc-rss-item.html","profiler"._LOG_AVERTISSEMENT); return $t0; } function BOUCLE_documentshtml_7dc3d8ca64fae563d6848b457e839a3f(&$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','L2' => 'spip_types_documents'); $command['type'] = array(); $command['groupby'] = array(); $command['select'] = array("documents.id_document", "documents.taille", "L2.mime_type"); $command['orderby'] = array(); $command['join'] = array('L1' => array('documents','id_document'), 'L2' => array('documents','extension')); $command['limit'] = ''; $command['having'] = array(); } $command['where'] = array( quete_condition_statut('documents.statut','publie,prop,prepa','publie',''), quete_condition_postdates('documents.date_publication',''), array('(documents.taille > 0 OR documents.distant=\'oui\')'), array('=', 'L1.id_objet', sql_quote($Pile[$SP]['id_article'], '','bigint(21) NOT NULL DEFAULT \'0\'')), array('=', 'L1.objet', sql_quote('article')), array('=', 'documents.mode', "'document'"), 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/escal/inc-rss-item.html','html_7dc3d8ca64fae563d6848b457e839a3f','_documents',55,$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(unique(url_absolue(vider_url(urlencode_1738(generer_objet_url($Pile[$SP]['id_document'], 'document', '', '', true)))))))!=='' ? (' <enclosure url="' . $t1 . ( '"' . (($t2 = strval(interdire_scripts($Pile[$SP]['taille'])))!=='' ? (' length="' . $t2 . '"') : '') . (($t2 = strval(interdire_scripts($Pile[$SP]['mime_type'])))!=='' ? (' 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/escal/inc-rss-item.html","profiler"._LOG_AVERTISSEMENT); return $t0; } function BOUCLE_un_articlehtml_7dc3d8ca64fae563d6848b457e839a3f(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) { static $command = array(); static $connect; $command['connect'] = $connect = ''; if (!isset($command['table'])) { $command['table'] = 'articles'; $command['id'] = '_un_article'; $command['from'] = array('articles' => 'spip_articles'); $command['type'] = array(); $command['groupby'] = array(); $command['select'] = array("articles.id_article", "articles.id_rubrique", "articles.lang", "articles.titre", "articles.date", "articles.descriptif", "articles.texte", "articles.chapo", "articles.url_site", "articles.nom_site", "articles.ps"); $command['orderby'] = array(); $command['join'] = array(); $command['limit'] = ''; $command['having'] = array(); } $command['where'] = array( quete_condition_statut('articles.statut','publie,prop,prepa/auteur','publie',''), quete_condition_postdates('articles.date',''), array('=', 'articles.id_article', sql_quote(($Pile[0]['id_article'] ?? null), '','bigint(21) 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/escal/inc-rss-item.html','html_7dc3d8ca64fae563d6848b457e839a3f','_un_article',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'], '', $Pile[$SP]['titre']); $t0 .= ( ' <item' . (($t1 = strval(spip_htmlentities($Pile[$SP]['lang'] ? $Pile[$SP]['lang'] : $GLOBALS['spip_lang'])))!=='' ? (' xml:lang="' . $t1 . '"') : '') . '> <title>' . interdire_scripts(texte_backend(supprimer_tags(traiter_doublons_documents($doublons, supprimer_numero(typo($Pile[$SP]['titre'], "TYPO", $connect, $Pile[0])))))) . '</title> <link>' . url_absolue(vider_url(urlencode_1738(generer_objet_url($Pile[$SP]['id_article'], 'article', '', '', true)))) . '</link> ' . (($t1 = strval(texte_backend(url_absolue(vider_url(urlencode_1738(generer_objet_url($Pile[$SP]['id_article'], 'article', '', '', true)))))))!=='' ? ('<guid isPermaLink="true">' . $t1 . '</guid>') : '') . ' ' . (($t1 = strval(interdire_scripts(date_iso(normaliser_date($Pile[$SP]['date'])))))!=='' ? ('<dc:date>' . $t1 . '</dc:date>') : '') . ' <dc:format>text/html</dc:format> ' . (($t1 = strval(spip_htmlentities($Pile[$SP]['lang'] ? $Pile[$SP]['lang'] : $GLOBALS['spip_lang'])))!=='' ? ('<dc:language>' . $t1 . '</dc:language>') : '') . ' ' . (($t1 = strval(texte_backend(supprimer_tags(recuperer_fond('modeles/lesauteurs', array('objet'=>'article','id_objet' => $Pile[$SP]['id_article'],'id_article' => $Pile[$SP]['id_article']), array('trim'=>true, 'compil'=>array('plugins/auto/escal/inc-rss-item.html','html_7dc3d8ca64fae563d6848b457e839a3f','_un_article',7,$GLOBALS['spip_lang'])), '')))))!=='' ? ('<dc:creator>' . $t1 . '</dc:creator>') : '') . ' ' . BOUCLE_exlurehtml_7dc3d8ca64fae563d6848b457e839a3f($Cache, $Pile, $doublons, $Numrows, $SP) . ' ' . BOUCLE_mots_rsshtml_7dc3d8ca64fae563d6848b457e839a3f($Cache, $Pile, $doublons, $Numrows, $SP) . ' <description>' . interdire_scripts(texte_backend(generer_objet_introduction((int)$Pile[$SP]['id_article'], 'articles', array('descriptif' => $Pile[$SP]['descriptif'],'texte' => $Pile[$SP]['texte'],'chapo' => $Pile[$SP]['chapo'],), '500', null, null, $connect))) . ' ' . BOUCLE_rubrique_mfhtml_7dc3d8ca64fae563d6848b457e839a3f($Cache, $Pile, $doublons, $Numrows, $SP) . (($t1 = BOUCLE_mots_mfhtml_7dc3d8ca64fae563d6848b457e839a3f($Cache, $Pile, $doublons, $Numrows, $SP))!=='' ? (' / ' . $t1) : '') . ' </description> ' . (($t1 = strval(interdire_scripts((((include_spip('inc/config')?lire_config('syndication_integrale',null,false):'') == 'oui') ? ' ':''))))!=='' ? (' ' . $t1 . ( '<content:encoded>' . (($t2 = strval(texte_backend(filtrer('image_graver', filtrer('image_reduire',quete_html_logo(quete_logo('id_article', 'ON', $Pile[$SP]['id_article'], ''), 'right', ''),'150','150')))))!=='' ? ($t2 . ' ') : '') . (($t2 = strval(interdire_scripts(texte_backend(traiter_doublons_documents($doublons, propre($Pile[$SP]['chapo'], $connect, $Pile[0]))))))!=='' ? ('<div class=\'rss_chapo\'>' . $t2 . '</div> ') : '') . (($t2 = strval(interdire_scripts(texte_backend(filtrer('image_graver', filtrer('image_reduire',traiter_doublons_documents($doublons, propre($Pile[$SP]['texte'], $connect, $Pile[0])),'500','0'))))))!=='' ? ('<div class=\'rss_texte\'>' . $t2 . '</div> ') : '') . (($t2 = strval(calculer_url($Pile[$SP]['url_site'],'','url', $connect)))!=='' ? (( '<div class="hyperlien">' . html2unicode(_T('public|spip|ecrire:voir_en_ligne')) . ' : <a href="') . $t2 . ( '" class="spip_out">' . interdire_scripts(texte_backend(((($a = traiter_doublons_documents($doublons, typo(supprimer_numero(calculer_url($Pile[$SP]['url_site'],$Pile[$SP]['nom_site'], 'titre', $connect, false)), "TYPO", $connect, $Pile[0]))) OR (is_string($a) AND strlen($a))) ? $a : couper(calculer_url($Pile[$SP]['url_site'],'','url', $connect),'80')))) . '</a></div> ')) : '') . (($t2 = strval(interdire_scripts(texte_backend(calculer_notes()))))!=='' ? ('<hr /> <div class=\'rss_notes\'>' . $t2 . '</div> ') : '') . (($t2 = strval(interdire_scripts(texte_backend(traiter_doublons_documents($doublons, propre($Pile[$SP]['ps'], $connect, $Pile[0]))))))!=='' ? ('<div class=\'rss_ps\'>' . $t2 . '</div>') : '') . ' </content:encoded> ')) : '') . ' ' . BOUCLE_documentshtml_7dc3d8ca64fae563d6848b457e839a3f($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_un_article @ plugins/auto/escal/inc-rss-item.html","profiler"._LOG_AVERTISSEMENT); return $t0; } // // Fonction principale du squelette plugins/auto/escal/inc-rss-item.html // Temps de compilation total: 483.438 ms // function html_7dc3d8ca64fae563d6848b457e839a3f($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 = ( BOUCLE_un_articlehtml_7dc3d8ca64fae563d6848b457e839a3f($Cache, $Pile, $doublons, $Numrows, $SP) . ' '); return analyse_resultat_skel('html_7dc3d8ca64fae563d6848b457e839a3f', $Cache, $page, 'plugins/auto/escal/inc-rss-item.html'); }