| Current Path : /home/etiennec/www/tmp/cache/skel/ |
| Current File : /home/etiennec/www/tmp/cache/skel/html_6a62dc4d281aabd6fac1a0afc7cae5d2.php |
<?php
/*
* Squelette : squelettes-dist/sitemap.xml.html
* Date : Sun, 13 Sep 2015 19:42:55 GMT
* Compile : Mon, 12 Oct 2015 00:10:06 GMT
* Boucles : _r, _a, _b
*/
function BOUCLE_rhtml_6a62dc4d281aabd6fac1a0afc7cae5d2(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {
static $command = array();
static $connect;
$command['connect'] = $connect = '';
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()+microtime();
$t0 = "";
// REQUETE
$iter = IterFactory::create(
"SQL",
$command,
array('squelettes-dist/sitemap.xml.html','html_6a62dc4d281aabd6fac1a0afc7cae5d2','_r',29,$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(url_absolue(vider_url(urlencode_1738(generer_url_entite($Pile[$SP]['id_rubrique'], 'rubrique', '', '', true))))))!=='' ?
('
<url><loc>' . $t1 . '</loc></url>') :
'');
}
lang_select();
$iter->free();
}
if (defined("_BOUCLE_PROFILER")
AND 1000*($timer = (time()+microtime())-$timer) > _BOUCLE_PROFILER)
spip_log(intval(1000*$timer)."ms BOUCLE_r @ squelettes-dist/sitemap.xml.html","profiler"._LOG_AVERTISSEMENT);
return $t0;
}
function BOUCLE_ahtml_6a62dc4d281aabd6fac1a0afc7cae5d2(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {
static $command = array();
static $connect;
$command['connect'] = $connect = '';
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['where'] =
array(
quete_condition_statut('articles.statut','publie,prop,prepa/auteur','publie',''),
quete_condition_postdates('articles.date',''));
$command['join'] = array();
$command['limit'] = '0,2000';
$command['having'] =
array();
}
if (defined("_BOUCLE_PROFILER")) $timer = time()+microtime();
$t0 = "";
// REQUETE
$iter = IterFactory::create(
"SQL",
$command,
array('squelettes-dist/sitemap.xml.html','html_6a62dc4d281aabd6fac1a0afc7cae5d2','_a',34,$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(url_absolue(vider_url(urlencode_1738(generer_url_entite($Pile[$SP]['id_article'], 'article', '', '', true))))))!=='' ?
('
<url><loc>' . $t1 . ( '</loc>' .
(($Pile[$SP]['date_modif'] > table_valeur($Pile["vars"], (string)'recent', null)) ? (($t3 = strval(date_iso($Pile[$SP]['date_modif'])))!=='' ?
('<lastmod>' . $t3 . '</lastmod>') :
''):'') .
'</url>')) :
'');
}
lang_select();
$iter->free();
}
if (defined("_BOUCLE_PROFILER")
AND 1000*($timer = (time()+microtime())-$timer) > _BOUCLE_PROFILER)
spip_log(intval(1000*$timer)."ms BOUCLE_a @ squelettes-dist/sitemap.xml.html","profiler"._LOG_AVERTISSEMENT);
return $t0;
}
function BOUCLE_bhtml_6a62dc4d281aabd6fac1a0afc7cae5d2(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {
static $command = array();
static $connect;
$command['connect'] = $connect = '';
if (!isset($command['table'])) {
$command['table'] = 'breves';
$command['id'] = '_b';
$command['from'] = array('breves' => 'spip_breves');
$command['type'] = array();
$command['groupby'] = array();
$command['select'] = array("breves.date_heure",
"breves.id_breve",
"breves.lang",
"breves.titre");
$command['orderby'] = array('breves.date_heure DESC');
$command['where'] =
array(
quete_condition_statut('breves.statut','publie,prop','publie',''));
$command['join'] = array();
$command['limit'] = '0,1000';
$command['having'] =
array();
}
if (defined("_BOUCLE_PROFILER")) $timer = time()+microtime();
$t0 = "";
// REQUETE
$iter = IterFactory::create(
"SQL",
$command,
array('squelettes-dist/sitemap.xml.html','html_6a62dc4d281aabd6fac1a0afc7cae5d2','_b',39,$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(url_absolue(vider_url(urlencode_1738(generer_url_entite($Pile[$SP]['id_breve'], 'breve', '', '', true))))))!=='' ?
('
<url><loc>' . $t1 . '</loc></url>') :
'');
}
lang_select();
$iter->free();
}
if (defined("_BOUCLE_PROFILER")
AND 1000*($timer = (time()+microtime())-$timer) > _BOUCLE_PROFILER)
spip_log(intval(1000*$timer)."ms BOUCLE_b @ squelettes-dist/sitemap.xml.html","profiler"._LOG_AVERTISSEMENT);
return $t0;
}
//
// Fonction principale du squelette squelettes-dist/sitemap.xml.html
// Temps de compilation total: 12.319 ms
//
function html_6a62dc4d281aabd6fac1a0afc7cae5d2($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("X-Spip-Cache: 0"); ?>'.'<?php header("Cache-Control: no-cache, must-revalidate"); ?><?php header("Pragma: no-cache"); ?>' .
'<'.'?php header("' . '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_6a62dc4d281aabd6fac1a0afc7cae5d2($Cache, $Pile, $doublons, $Numrows, $SP) .
'
' .
vide($Pile['vars'][$_zzz=(string)'recent'] = date('Y-m-d H:i:s',strtotime('-1 day'))) .
'
' .
BOUCLE_ahtml_6a62dc4d281aabd6fac1a0afc7cae5d2($Cache, $Pile, $doublons, $Numrows, $SP) .
'
' .
BOUCLE_bhtml_6a62dc4d281aabd6fac1a0afc7cae5d2($Cache, $Pile, $doublons, $Numrows, $SP) .
'
</urlset>
');
return analyse_resultat_skel('html_6a62dc4d281aabd6fac1a0afc7cae5d2', $Cache, $page, 'squelettes-dist/sitemap.xml.html');
}
?>