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/jobs/tmp/cache/skel/ |
<?php /* * Squelette : plugins/auto/escal/sitemap.xml.html * Date : Sat, 11 Nov 2023 17:07:08 GMT * Compile : Sun, 12 Nov 2023 07:11:22 GMT * Boucles : _r, _a, _objets */ function BOUCLE_rhtml_4060cf227d2dfe5878b288025860cb2e(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) { static $command = array(); static $connect; $command['connect'] = $connect = ''; if (!isset($si_init)) { $command['si'] = array(); $si_init = true; } $command['si'][] = interdire_scripts(((entites_html(table_valeur($Pile[0]??[], (string)'annee', null),true)) ?'' :' ')); if (!isset($command['table'])) { $command['table'] = 'rubriques'; $command['id'] = '_r'; $command['from'] = array('rubriques' => 'spip_rubriques'); $command['type'] = array(); $command['groupby'] = array(); $command['select'] = array("rubriques.date", "rubriques.id_rubrique", "rubriques.lang", "rubriques.titre"); $command['orderby'] = array('rubriques.date DESC'); $command['where'] = array( quete_condition_statut('rubriques.statut','!','publie','')); $command['join'] = array(); $command['limit'] = '0,1000'; $command['having'] = array(); } if (defined("_BOUCLE_PROFILER")) $timer = time()+(float)microtime(); $t0 = ""; // REQUETE $iter = Spip\Compilateur\Iterateur\Factory::create( "SQL", $command, array('plugins/auto/escal/sitemap.xml.html','html_4060cf227d2dfe5878b288025860cb2e','_r',32,$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 .= ( ' <url> ' . (($t1 = strval(url_absolue(vider_url(urlencode_1738(generer_objet_url($Pile[$SP]['id_rubrique'], 'rubrique', '', '', true))))))!=='' ? ('<loc>' . $t1 . '</loc>') : '') . ' </url> '); 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_r @ plugins/auto/escal/sitemap.xml.html","profiler"._LOG_AVERTISSEMENT); return $t0; } function BOUCLE_ahtml_4060cf227d2dfe5878b288025860cb2e(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) { static $command = array(); static $connect; $command['connect'] = $connect = ''; $in = array(); if (!(is_array($a = (($Pile[0]['annee'] ?? null))))) $in[]= $a; else $in = array_merge($in, $a); if (!isset($command['table'])) { $command['table'] = 'articles'; $command['id'] = '_a'; $command['from'] = array('articles' => 'spip_articles'); $command['type'] = array(); $command['groupby'] = array(); $command['select'] = array("articles.date_modif", "articles.date", "articles.id_article", "articles.lang", "articles.titre"); $command['orderby'] = array('articles.date_modif DESC', 'articles.date DESC'); $command['join'] = array(); $command['limit'] = '0,2000'; $command['having'] = array(); } $command['where'] = array( quete_condition_statut('articles.statut','publie,prop,prepa/auteur','publie',''), quete_condition_postdates('articles.date',''), (!is_whereable(($Pile[0]['annee'] ?? null)) ? '' : ((is_array(($Pile[0]['annee'] ?? null))) ? sql_in('YEAR(articles.date)', $in) : array('=', 'YEAR(articles.date)', sql_quote(($Pile[0]['annee'] ?? null), '','datetime NOT NULL DEFAULT \'0000-00-00 00:00:00\''))))); if (defined("_BOUCLE_PROFILER")) $timer = time()+(float)microtime(); $t0 = ""; // REQUETE $iter = Spip\Compilateur\Iterateur\Factory::create( "SQL", $command, array('plugins/auto/escal/sitemap.xml.html','html_4060cf227d2dfe5878b288025860cb2e','_a',40,$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 .= ( ' <url> ' . (($t1 = strval(url_absolue(vider_url(urlencode_1738(generer_objet_url($Pile[$SP]['id_article'], 'article', '', '', true))))))!=='' ? ('<loc>' . $t1 . '</loc>') : '') . ' </url> '); 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_a @ plugins/auto/escal/sitemap.xml.html","profiler"._LOG_AVERTISSEMENT); return $t0; } function BOUCLE_objetshtml_4060cf227d2dfe5878b288025860cb2e(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) { static $command = array(); static $connect; $command['connect'] = $connect = ''; $command['sourcemode'] = 'table'; $command['source'] = array(lister_tables_objets_sql('')); if (!isset($si_init)) { $command['si'] = array(); $si_init = true; } $command['si'][] = interdire_scripts(((entites_html(table_valeur($Pile[0]??[], (string)'annee', null),true)) ?'' :' ')); if (!isset($command['table'])) { $command['table'] = ''; $command['id'] = '_objets'; $command['from'] = array(); $command['type'] = array(); $command['groupby'] = array(); $command['select'] = array(".valeur"); $command['orderby'] = array(); $command['where'] = array(); $command['join'] = array(); $command['limit'] = ''; $command['having'] = array(); } if (defined("_BOUCLE_PROFILER")) $timer = time()+(float)microtime(); $t0 = ""; // REQUETE $iter = Spip\Compilateur\Iterateur\Factory::create( "DATA", $command, array('plugins/auto/escal/sitemap.xml.html','html_4060cf227d2dfe5878b288025860cb2e','_objets',47,$GLOBALS['spip_lang']) ); if (!$iter->err()) { $SP++; // RESULTATS while ($Pile[$SP]=$iter->fetch()) { $t0 .= ( ' ' . vide($Pile['vars'][$_zzz=(string)'fond'] = concat('sitemap-',interdire_scripts(safehtml(table_valeur($Pile[$SP]['valeur'], 'table_objet'))))) . ((trouver_fond(table_valeur($Pile["vars"]??[], (string)'fond', null))) ? (' ' . recuperer_fond( table_valeur($Pile["vars"]??[], (string)'fond', null) , array(), array('etoile'=>true,'compil'=>array('plugins/auto/escal/sitemap.xml.html','html_4060cf227d2dfe5878b288025860cb2e','_objets',49,$GLOBALS['spip_lang'])), _request('connect') ?? '')) : '') . ' '); } $iter->free(); } if (defined("_BOUCLE_PROFILER") AND 1000*($timer = (time()+(float)microtime())-$timer) > _BOUCLE_PROFILER) spip_log(intval(1000*$timer)."ms BOUCLE_objets @ plugins/auto/escal/sitemap.xml.html","profiler"._LOG_AVERTISSEMENT); return $t0; } // // Fonction principale du squelette plugins/auto/escal/sitemap.xml.html // Temps de compilation total: 2.407 ms // function html_4060cf227d2dfe5878b288025860cb2e($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 = ( '<'.'?php header(' . _q('Content-Type: text/xml; charset=utf-8') . '); ?'.'><?xml version="1.0" encoding="UTF-8"?> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> <url> <loc>' . spip_htmlspecialchars(sinon($GLOBALS['meta']['adresse_site'],'.')) . '/</loc> <changefreq>hourly</changefreq> </url> ' . BOUCLE_rhtml_4060cf227d2dfe5878b288025860cb2e($Cache, $Pile, $doublons, $Numrows, $SP) . ' ' . vide($Pile['vars'][$_zzz=(string)'recent'] = date('Y-m-d H:i:s',strtotime('-1 day'))) . ' ' . BOUCLE_ahtml_4060cf227d2dfe5878b288025860cb2e($Cache, $Pile, $doublons, $Numrows, $SP) . ' ' . BOUCLE_objetshtml_4060cf227d2dfe5878b288025860cb2e($Cache, $Pile, $doublons, $Numrows, $SP) . ' </urlset>'); return analyse_resultat_skel('html_4060cf227d2dfe5878b288025860cb2e', $Cache, $page, 'plugins/auto/escal/sitemap.xml.html'); }