| Current Path : /home/etiennec/www/tmp/cache/skel/ |
| Current File : /home/etiennec/www/tmp/cache/skel/html_086e77f402253352d04987f3d6f1183e.php |
<?php
/*
* Squelette : plugins/auto/zpip/contenu/page-forum.html
* Date : Sun, 27 Sep 2015 12:46:03 GMT
* Compile : Mon, 21 Dec 2015 04:01:11 GMT
* Boucles : _ariane_site, _contexte_site, _ariane_rubrique, _contexte_rubrique, _ariane_breve, _contexte_breve, _ariane_article, _contexte_article, _contexte_forum, _article, _breve, _rubrique, _syndic, _forum_parent
*/
function BOUCLE_ariane_sitehtml_086e77f402253352d04987f3d6f1183e(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {
static $command = array();
static $connect;
$command['connect'] = $connect = '';
if (!($id_rubrique = intval($Pile[$SP]['id_rubrique'])))
return '';
include_spip('inc/rubriques');
$hierarchie = calcul_hierarchie_in($id_rubrique,false);
if (!$hierarchie) return "";
if (!isset($command['table'])) {
$command['table'] = 'rubriques';
$command['id'] = '_ariane_site';
$command['from'] = array('rubriques' => 'spip_rubriques');
$command['type'] = array();
$command['groupby'] = array();
$command['select'] = array("rubriques.id_rubrique",
"rubriques.titre",
"rubriques.lang");
$command['join'] = array();
$command['limit'] = '';
$command['having'] =
array();
}
$command['orderby'] = array("FIELD(rubriques.id_rubrique, $hierarchie)");
$command['where'] =
array(
quete_condition_statut('rubriques.statut','!','publie',''),
array('IN', 'rubriques.id_rubrique', "($hierarchie)"));
if (defined("_BOUCLE_PROFILER")) $timer = time()+microtime();
$t0 = "";
// REQUETE
$iter = IterFactory::create(
"SQL",
$command,
array('plugins/auto/zpip/contenu/page-forum.html','html_086e77f402253352d04987f3d6f1183e','_ariane_site',27,$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 .= (
'
> <a href="' .
vider_url(urlencode_1738(generer_url_entite($Pile[$SP]['id_rubrique'], 'rubrique', '', '', true))) .
'">' .
interdire_scripts(couper(typo(supprimer_numero($Pile[$SP]['titre']), "TYPO", $connect, $Pile[0]),'80')) .
'</a>
');
}
lang_select();
$iter->free();
}
if (defined("_BOUCLE_PROFILER")
AND 1000*($timer = (time()+microtime())-$timer) > _BOUCLE_PROFILER)
spip_log(intval(1000*$timer)."ms BOUCLE_ariane_site @ plugins/auto/zpip/contenu/page-forum.html","profiler"._LOG_AVERTISSEMENT);
return $t0;
}
function BOUCLE_contexte_sitehtml_086e77f402253352d04987f3d6f1183e(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {
static $command = array();
static $connect;
$command['connect'] = $connect = '';
if (!isset($command['table'])) {
$command['table'] = 'syndic';
$command['id'] = '_contexte_site';
$command['from'] = array('syndic' => 'spip_syndic');
$command['type'] = array();
$command['groupby'] = array();
$command['select'] = array("syndic.id_syndic",
"syndic.id_rubrique");
$command['orderby'] = array();
$command['join'] = array();
$command['limit'] = '';
$command['having'] =
array();
}
$command['where'] =
array(
quete_condition_statut('syndic.statut','publie,prop','publie',''),
array('=', 'syndic.id_syndic', sql_quote(@$Pile[0]['id_syndic'],'','bigint(21) NOT NULL AUTO_INCREMENT')));
if (defined("_BOUCLE_PROFILER")) $timer = time()+microtime();
$t0 = "";
// REQUETE
$iter = IterFactory::create(
"SQL",
$command,
array('plugins/auto/zpip/contenu/page-forum.html','html_086e77f402253352d04987f3d6f1183e','_contexte_site',26,$GLOBALS['spip_lang'])
);
if (!$iter->err()) {
$SP++;
// RESULTATS
while ($Pile[$SP]=$iter->fetch()) {
$t0 .= (
'
' .
BOUCLE_ariane_sitehtml_086e77f402253352d04987f3d6f1183e($Cache, $Pile, $doublons, $Numrows, $SP) .
'
> <a href="' .
generer_url_entite($Pile[$SP]['id_syndic'],'site') .
'">' .
interdire_scripts(couper(typo(supprimer_numero(@$Pile[0]['titre']), "TYPO", $connect, $Pile[0]),'80')) .
'</a>
');
}
$iter->free();
}
if (defined("_BOUCLE_PROFILER")
AND 1000*($timer = (time()+microtime())-$timer) > _BOUCLE_PROFILER)
spip_log(intval(1000*$timer)."ms BOUCLE_contexte_site @ plugins/auto/zpip/contenu/page-forum.html","profiler"._LOG_AVERTISSEMENT);
return $t0;
}
function BOUCLE_ariane_rubriquehtml_086e77f402253352d04987f3d6f1183e(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {
static $command = array();
static $connect;
$command['connect'] = $connect = '';
if (!($id_rubrique = intval($Pile[$SP]['id_rubrique'])))
return '';
include_spip('inc/rubriques');
$hierarchie = calcul_hierarchie_in($id_rubrique,false);
if (!$hierarchie) return "";
if (!isset($command['table'])) {
$command['table'] = 'rubriques';
$command['id'] = '_ariane_rubrique';
$command['from'] = array('rubriques' => 'spip_rubriques');
$command['type'] = array();
$command['groupby'] = array();
$command['select'] = array("rubriques.id_rubrique",
"rubriques.titre",
"rubriques.lang");
$command['join'] = array();
$command['limit'] = '';
$command['having'] =
array();
}
$command['orderby'] = array("FIELD(rubriques.id_rubrique, $hierarchie)");
$command['where'] =
array(
quete_condition_statut('rubriques.statut','!','publie',''),
array('IN', 'rubriques.id_rubrique', "($hierarchie)"));
if (defined("_BOUCLE_PROFILER")) $timer = time()+microtime();
$t0 = "";
// REQUETE
$iter = IterFactory::create(
"SQL",
$command,
array('plugins/auto/zpip/contenu/page-forum.html','html_086e77f402253352d04987f3d6f1183e','_ariane_rubrique',20,$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 .= (
'
> <a href="' .
vider_url(urlencode_1738(generer_url_entite($Pile[$SP]['id_rubrique'], 'rubrique', '', '', true))) .
'">' .
interdire_scripts(couper(typo(supprimer_numero($Pile[$SP]['titre']), "TYPO", $connect, $Pile[0]),'80')) .
'</a>
');
}
lang_select();
$iter->free();
}
if (defined("_BOUCLE_PROFILER")
AND 1000*($timer = (time()+microtime())-$timer) > _BOUCLE_PROFILER)
spip_log(intval(1000*$timer)."ms BOUCLE_ariane_rubrique @ plugins/auto/zpip/contenu/page-forum.html","profiler"._LOG_AVERTISSEMENT);
return $t0;
}
function BOUCLE_contexte_rubriquehtml_086e77f402253352d04987f3d6f1183e(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {
static $command = array();
static $connect;
$command['connect'] = $connect = '';
if (!isset($command['table'])) {
$command['table'] = 'rubriques';
$command['id'] = '_contexte_rubrique';
$command['from'] = array('rubriques' => 'spip_rubriques');
$command['type'] = array();
$command['groupby'] = array();
$command['select'] = array("rubriques.id_rubrique",
"rubriques.titre",
"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[0]['id_rubrique'],'','bigint(21) NOT NULL AUTO_INCREMENT')));
if (defined("_BOUCLE_PROFILER")) $timer = time()+microtime();
$t0 = "";
// REQUETE
$iter = IterFactory::create(
"SQL",
$command,
array('plugins/auto/zpip/contenu/page-forum.html','html_086e77f402253352d04987f3d6f1183e','_contexte_rubrique',19,$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 .= (
'
' .
BOUCLE_ariane_rubriquehtml_086e77f402253352d04987f3d6f1183e($Cache, $Pile, $doublons, $Numrows, $SP) .
'
> <a href="' .
vider_url(urlencode_1738(generer_url_entite($Pile[$SP]['id_rubrique'], 'rubrique', '', '', true))) .
'">' .
interdire_scripts(couper(typo(supprimer_numero($Pile[$SP]['titre']), "TYPO", $connect, $Pile[0]),'80')) .
'</a>
');
}
lang_select();
$iter->free();
}
if (defined("_BOUCLE_PROFILER")
AND 1000*($timer = (time()+microtime())-$timer) > _BOUCLE_PROFILER)
spip_log(intval(1000*$timer)."ms BOUCLE_contexte_rubrique @ plugins/auto/zpip/contenu/page-forum.html","profiler"._LOG_AVERTISSEMENT);
return $t0;
}
function BOUCLE_ariane_brevehtml_086e77f402253352d04987f3d6f1183e(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {
static $command = array();
static $connect;
$command['connect'] = $connect = '';
if (!isset($command['table'])) {
$command['table'] = 'rubriques';
$command['id'] = '_ariane_breve';
$command['from'] = array('rubriques' => 'spip_rubriques');
$command['type'] = array();
$command['groupby'] = array();
$command['select'] = array("rubriques.id_rubrique",
"rubriques.titre",
"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()+microtime();
$t0 = "";
// REQUETE
$iter = IterFactory::create(
"SQL",
$command,
array('plugins/auto/zpip/contenu/page-forum.html','html_086e77f402253352d04987f3d6f1183e','_ariane_breve',13,$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 .= (
'
> <a href="' .
vider_url(urlencode_1738(generer_url_entite($Pile[$SP]['id_rubrique'], 'rubrique', '', '', true))) .
'">' .
interdire_scripts(couper(typo(supprimer_numero($Pile[$SP]['titre']), "TYPO", $connect, $Pile[0]),'80')) .
'</a>
');
}
lang_select();
$iter->free();
}
if (defined("_BOUCLE_PROFILER")
AND 1000*($timer = (time()+microtime())-$timer) > _BOUCLE_PROFILER)
spip_log(intval(1000*$timer)."ms BOUCLE_ariane_breve @ plugins/auto/zpip/contenu/page-forum.html","profiler"._LOG_AVERTISSEMENT);
return $t0;
}
function BOUCLE_contexte_brevehtml_086e77f402253352d04987f3d6f1183e(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {
static $command = array();
static $connect;
$command['connect'] = $connect = '';
if (!isset($command['table'])) {
$command['table'] = 'breves';
$command['id'] = '_contexte_breve';
$command['from'] = array('breves' => 'spip_breves');
$command['type'] = array();
$command['groupby'] = array();
$command['select'] = array("breves.id_rubrique",
"breves.id_breve",
"breves.titre",
"breves.lang");
$command['orderby'] = array();
$command['join'] = array();
$command['limit'] = '';
$command['having'] =
array();
}
$command['where'] =
array(
quete_condition_statut('breves.statut','publie,prop','publie',''),
array('=', 'breves.id_breve', sql_quote(@$Pile[0]['id_breve'],'','bigint(21) NOT NULL AUTO_INCREMENT')));
if (defined("_BOUCLE_PROFILER")) $timer = time()+microtime();
$t0 = "";
// REQUETE
$iter = IterFactory::create(
"SQL",
$command,
array('plugins/auto/zpip/contenu/page-forum.html','html_086e77f402253352d04987f3d6f1183e','_contexte_breve',12,$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 .= (
'
' .
BOUCLE_ariane_brevehtml_086e77f402253352d04987f3d6f1183e($Cache, $Pile, $doublons, $Numrows, $SP) .
'
> <a href="' .
vider_url(urlencode_1738(generer_url_entite($Pile[$SP]['id_breve'], 'breve', '', '', true))) .
'">' .
interdire_scripts(couper(typo(supprimer_numero($Pile[$SP]['titre']), "TYPO", $connect, $Pile[0]),'80')) .
'</a>
');
}
lang_select();
$iter->free();
}
if (defined("_BOUCLE_PROFILER")
AND 1000*($timer = (time()+microtime())-$timer) > _BOUCLE_PROFILER)
spip_log(intval(1000*$timer)."ms BOUCLE_contexte_breve @ plugins/auto/zpip/contenu/page-forum.html","profiler"._LOG_AVERTISSEMENT);
return $t0;
}
function BOUCLE_ariane_articlehtml_086e77f402253352d04987f3d6f1183e(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {
static $command = array();
static $connect;
$command['connect'] = $connect = '';
if (!($id_rubrique = intval($Pile[$SP]['id_rubrique'])))
return '';
include_spip('inc/rubriques');
$hierarchie = calcul_hierarchie_in($id_rubrique,true);
if (!$hierarchie) return "";
if (!isset($command['table'])) {
$command['table'] = 'rubriques';
$command['id'] = '_ariane_article';
$command['from'] = array('rubriques' => 'spip_rubriques');
$command['type'] = array();
$command['groupby'] = array();
$command['select'] = array("rubriques.id_rubrique",
"rubriques.titre",
"rubriques.lang");
$command['join'] = array();
$command['limit'] = '';
$command['having'] =
array();
}
$command['orderby'] = array("FIELD(rubriques.id_rubrique, $hierarchie)");
$command['where'] =
array(
array('IN', 'rubriques.id_rubrique', "($hierarchie)"));
if (defined("_BOUCLE_PROFILER")) $timer = time()+microtime();
$t0 = "";
// REQUETE
$iter = IterFactory::create(
"SQL",
$command,
array('plugins/auto/zpip/contenu/page-forum.html','html_086e77f402253352d04987f3d6f1183e','_ariane_article',5,$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 .= (
'
> <a href="' .
vider_url(urlencode_1738(generer_url_entite($Pile[$SP]['id_rubrique'], 'rubrique', '', '', true))) .
'">' .
interdire_scripts(couper(typo(supprimer_numero($Pile[$SP]['titre']), "TYPO", $connect, $Pile[0]),'80')) .
'</a>
');
}
lang_select();
$iter->free();
}
if (defined("_BOUCLE_PROFILER")
AND 1000*($timer = (time()+microtime())-$timer) > _BOUCLE_PROFILER)
spip_log(intval(1000*$timer)."ms BOUCLE_ariane_article @ plugins/auto/zpip/contenu/page-forum.html","profiler"._LOG_AVERTISSEMENT);
return $t0;
}
function BOUCLE_contexte_articlehtml_086e77f402253352d04987f3d6f1183e(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {
static $command = array();
static $connect;
$command['connect'] = $connect = '';
if (!isset($command['table'])) {
$command['table'] = 'articles';
$command['id'] = '_contexte_article';
$command['from'] = array('articles' => 'spip_articles');
$command['type'] = array();
$command['groupby'] = array();
$command['select'] = array("articles.id_article",
"articles.titre",
"articles.id_rubrique",
"articles.lang");
$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'],'','bigint(21) NOT NULL AUTO_INCREMENT')));
if (defined("_BOUCLE_PROFILER")) $timer = time()+microtime();
$t0 = "";
// REQUETE
$iter = IterFactory::create(
"SQL",
$command,
array('plugins/auto/zpip/contenu/page-forum.html','html_086e77f402253352d04987f3d6f1183e','_contexte_article',4,$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 .= (
'
' .
BOUCLE_ariane_articlehtml_086e77f402253352d04987f3d6f1183e($Cache, $Pile, $doublons, $Numrows, $SP) .
'
> <a href="' .
vider_url(urlencode_1738(generer_url_entite($Pile[$SP]['id_article'], 'article', '', '', true))) .
'">' .
interdire_scripts(couper(typo(supprimer_numero($Pile[$SP]['titre']), "TYPO", $connect, $Pile[0]),'80')) .
'</a>
');
}
lang_select();
$iter->free();
}
if (defined("_BOUCLE_PROFILER")
AND 1000*($timer = (time()+microtime())-$timer) > _BOUCLE_PROFILER)
spip_log(intval(1000*$timer)."ms BOUCLE_contexte_article @ plugins/auto/zpip/contenu/page-forum.html","profiler"._LOG_AVERTISSEMENT);
return $t0;
}
function BOUCLE_contexte_forumhtml_086e77f402253352d04987f3d6f1183e(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {
static $command = array();
static $connect;
$command['connect'] = $connect = '';
if (!isset($command['table'])) {
$command['table'] = 'forum';
$command['id'] = '_contexte_forum';
$command['from'] = array('forum' => 'spip_forum');
$command['type'] = array();
$command['groupby'] = array();
$command['select'] = array("forum.id_forum",
"forum.titre");
$command['orderby'] = array();
$command['join'] = array();
$command['limit'] = '';
$command['having'] =
array();
}
$command['where'] =
array(
quete_condition_statut('forum.statut','publie,prop','publie',''),
array('=', 'forum.id_forum', sql_quote(@$Pile[0]['id_forum'],'','bigint(21) NOT NULL AUTO_INCREMENT')));
if (defined("_BOUCLE_PROFILER")) $timer = time()+microtime();
$t0 = "";
// REQUETE
$iter = IterFactory::create(
"SQL",
$command,
array('plugins/auto/zpip/contenu/page-forum.html','html_086e77f402253352d04987f3d6f1183e','_contexte_forum',38,$GLOBALS['spip_lang'])
);
if (!$iter->err()) {
$SP++;
// RESULTATS
while ($Pile[$SP]=$iter->fetch()) {
$t0 .= (
'
> <a href="' .
vider_url(urlencode_1738(generer_url_entite($Pile[$SP]['id_forum'], 'forum', '', '', true))) .
'">' .
interdire_scripts(couper(liens_nofollow(safehtml(typo(interdit_html($Pile[$SP]['titre']), "TYPO", $connect, $Pile[0]))),'80')) .
'</a>
');
}
$iter->free();
}
if (defined("_BOUCLE_PROFILER")
AND 1000*($timer = (time()+microtime())-$timer) > _BOUCLE_PROFILER)
spip_log(intval(1000*$timer)."ms BOUCLE_contexte_forum @ plugins/auto/zpip/contenu/page-forum.html","profiler"._LOG_AVERTISSEMENT);
return $t0;
}
function BOUCLE_articlehtml_086e77f402253352d04987f3d6f1183e(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {
static $command = array();
static $connect;
$command['connect'] = $connect = '';
if (!isset($command['table'])) {
$command['table'] = 'articles';
$command['id'] = '_article';
$command['from'] = array('articles' => 'spip_articles');
$command['type'] = array();
$command['groupby'] = array();
$command['select'] = array("articles.id_article",
"articles.lang",
"articles.titre");
$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'],'','bigint(21) NOT NULL AUTO_INCREMENT')));
if (defined("_BOUCLE_PROFILER")) $timer = time()+microtime();
$t0 = "";
// REQUETE
$iter = IterFactory::create(
"SQL",
$command,
array('plugins/auto/zpip/contenu/page-forum.html','html_086e77f402253352d04987f3d6f1183e','_article',61,$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 .= (
'
<ul class="liste-items">
' .
recuperer_fond( 'inclure/article-resume' , array('id_article' => $Pile[$SP]['id_article'] ), array('compil'=>array('plugins/auto/zpip/contenu/page-forum.html','html_086e77f402253352d04987f3d6f1183e','_article',63,$GLOBALS['spip_lang'])), '') .
'</ul>
');
}
lang_select();
$iter->free();
}
if (defined("_BOUCLE_PROFILER")
AND 1000*($timer = (time()+microtime())-$timer) > _BOUCLE_PROFILER)
spip_log(intval(1000*$timer)."ms BOUCLE_article @ plugins/auto/zpip/contenu/page-forum.html","profiler"._LOG_AVERTISSEMENT);
return $t0;
}
function BOUCLE_brevehtml_086e77f402253352d04987f3d6f1183e(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {
static $command = array();
static $connect;
$command['connect'] = $connect = '';
if (!isset($command['table'])) {
$command['table'] = 'breves';
$command['id'] = '_breve';
$command['from'] = array('breves' => 'spip_breves');
$command['type'] = array();
$command['groupby'] = array();
$command['select'] = array("breves.id_breve",
"breves.titre",
"breves.date_heure AS date",
"breves.texte",
"breves.lang");
$command['orderby'] = array();
$command['join'] = array();
$command['limit'] = '';
$command['having'] =
array();
}
$command['where'] =
array(
quete_condition_statut('breves.statut','publie,prop','publie',''),
array('=', 'breves.id_breve', sql_quote(@$Pile[0]['id_breve'],'','bigint(21) NOT NULL AUTO_INCREMENT')));
if (defined("_BOUCLE_PROFILER")) $timer = time()+microtime();
$t0 = "";
// REQUETE
$iter = IterFactory::create(
"SQL",
$command,
array('plugins/auto/zpip/contenu/page-forum.html','html_086e77f402253352d04987f3d6f1183e','_breve',67,$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 .= (
'
' .
filtrer('image_graver',filtrer('image_reduire',
((!is_array($l = quete_logo('id_breve', 'ON', $Pile[$SP]['id_breve'],'', 0))) ? '':
("<img class=\"spip_logos\" alt=\"\" src=\"$l[0]\"" . $l[2] . ($l[1] ? " onmouseover=\"this.src='$l[1]'\" onmouseout=\"this.src='$l[0]'\"" : "") . ' />')),'150','100')) .
'
<h3 class="h3"><a href="' .
vider_url(urlencode_1738(generer_url_entite($Pile[$SP]['id_breve'], 'breve', '', '', true))) .
'">' .
interdire_scripts(typo(supprimer_numero($Pile[$SP]['titre']), "TYPO", $connect, $Pile[0])) .
'</a></h3>
<div class="info-publi">' .
(($t1 = strval(interdire_scripts(affdate_jourcourt(normaliser_date($Pile[$SP]['date'])))))!=='' ?
(( '<abbr class="published" title="' .
interdire_scripts(date_iso(normaliser_date($Pile[$SP]['date']))) .
'">') . $t1 . '</abbr>') :
'') .
'</div>
' .
(($t1 = strval(interdire_scripts(filtre_introduction('', $Pile[$SP]['texte'], 300, $connect))))!=='' ?
('<div class="introduction">' . $t1 . '</div>') :
'') .
'
');
}
lang_select();
$iter->free();
}
if (defined("_BOUCLE_PROFILER")
AND 1000*($timer = (time()+microtime())-$timer) > _BOUCLE_PROFILER)
spip_log(intval(1000*$timer)."ms BOUCLE_breve @ plugins/auto/zpip/contenu/page-forum.html","profiler"._LOG_AVERTISSEMENT);
return $t0;
}
function BOUCLE_rubriquehtml_086e77f402253352d04987f3d6f1183e(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {
static $command = array();
static $connect;
$command['connect'] = $connect = '';
if (!isset($command['table'])) {
$command['table'] = 'rubriques';
$command['id'] = '_rubrique';
$command['from'] = array('rubriques' => 'spip_rubriques');
$command['type'] = array();
$command['groupby'] = array();
$command['select'] = array("rubriques.id_rubrique",
"rubriques.titre",
"rubriques.texte",
"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[0]['id_rubrique'],'','bigint(21) NOT NULL AUTO_INCREMENT')));
if (defined("_BOUCLE_PROFILER")) $timer = time()+microtime();
$t0 = "";
// REQUETE
$iter = IterFactory::create(
"SQL",
$command,
array('plugins/auto/zpip/contenu/page-forum.html','html_086e77f402253352d04987f3d6f1183e','_rubrique',74,$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 .= (
'
<h3 class="h3"><a href="' .
vider_url(urlencode_1738(generer_url_entite($Pile[$SP]['id_rubrique'], 'rubrique', '', '', true))) .
'">' .
interdire_scripts(typo(supprimer_numero($Pile[$SP]['titre']), "TYPO", $connect, $Pile[0])) .
'</a></h3>
' .
(($t1 = strval(interdire_scripts(propre($Pile[$SP]['texte'], $connect, $Pile[0]))))!=='' ?
('<div class="texte">' . $t1 . '</div>') :
'') .
'
');
}
lang_select();
$iter->free();
}
if (defined("_BOUCLE_PROFILER")
AND 1000*($timer = (time()+microtime())-$timer) > _BOUCLE_PROFILER)
spip_log(intval(1000*$timer)."ms BOUCLE_rubrique @ plugins/auto/zpip/contenu/page-forum.html","profiler"._LOG_AVERTISSEMENT);
return $t0;
}
function BOUCLE_syndichtml_086e77f402253352d04987f3d6f1183e(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {
static $command = array();
static $connect;
$command['connect'] = $connect = '';
if (!isset($command['table'])) {
$command['table'] = 'syndic';
$command['id'] = '_syndic';
$command['from'] = array('syndic' => 'spip_syndic');
$command['type'] = array();
$command['groupby'] = array();
$command['select'] = array("syndic.id_syndic",
"syndic.url_site",
"syndic.nom_site",
"syndic.descriptif");
$command['orderby'] = array();
$command['join'] = array();
$command['limit'] = '';
$command['having'] =
array();
}
$command['where'] =
array(
quete_condition_statut('syndic.statut','publie,prop','publie',''),
array('=', 'syndic.id_syndic', sql_quote(@$Pile[0]['id_syndic'],'','bigint(21) NOT NULL AUTO_INCREMENT')));
if (defined("_BOUCLE_PROFILER")) $timer = time()+microtime();
$t0 = "";
// REQUETE
$iter = IterFactory::create(
"SQL",
$command,
array('plugins/auto/zpip/contenu/page-forum.html','html_086e77f402253352d04987f3d6f1183e','_syndic',79,$GLOBALS['spip_lang'])
);
if (!$iter->err()) {
$SP++;
// RESULTATS
while ($Pile[$SP]=$iter->fetch()) {
$t0 .= (
'
<h3 class="h3"><a href="' .
generer_url_entite($Pile[$SP]['id_syndic'],'site') .
'">' .
interdire_scripts(typo(supprimer_numero(calculer_url($Pile[$SP]['url_site'],$Pile[$SP]['nom_site'], 'titre', $connect, false)), "TYPO", $connect, $Pile[0])) .
'</a></h3>
' .
(($t1 = strval(interdire_scripts(propre($Pile[$SP]['descriptif'], $connect, $Pile[0]))))!=='' ?
('<div class="texte">' . $t1 . '</div>') :
'') .
'
');
}
$iter->free();
}
if (defined("_BOUCLE_PROFILER")
AND 1000*($timer = (time()+microtime())-$timer) > _BOUCLE_PROFILER)
spip_log(intval(1000*$timer)."ms BOUCLE_syndic @ plugins/auto/zpip/contenu/page-forum.html","profiler"._LOG_AVERTISSEMENT);
return $t0;
}
function BOUCLE_forum_parenthtml_086e77f402253352d04987f3d6f1183e(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {
static $command = array();
static $connect;
$command['connect'] = $connect = '';
if (!isset($command['table'])) {
$command['table'] = 'forum';
$command['id'] = '_forum_parent';
$command['from'] = array('forum' => 'spip_forum');
$command['type'] = array();
$command['groupby'] = array();
$command['select'] = array("forum.id_forum",
"forum.titre",
"forum.date_heure AS date",
"forum.auteur AS nom",
"forum.texte");
$command['orderby'] = array();
$command['join'] = array();
$command['limit'] = '';
$command['having'] =
array();
}
$command['where'] =
array(
quete_condition_statut('forum.statut','publie,prop','publie',''),
array('=', 'forum.id_forum', sql_quote(@$Pile[0]['id_forum'],'','bigint(21) NOT NULL AUTO_INCREMENT')));
if (defined("_BOUCLE_PROFILER")) $timer = time()+microtime();
$t0 = "";
// REQUETE
$iter = IterFactory::create(
"SQL",
$command,
array('plugins/auto/zpip/contenu/page-forum.html','html_086e77f402253352d04987f3d6f1183e','_forum_parent',55,$GLOBALS['spip_lang'])
);
if (!$iter->err()) {
$l1 = _T('public|spip|ecrire:par_auteur');$SP++;
// RESULTATS
while ($Pile[$SP]=$iter->fetch()) {
$t0 .= (
'
<h3 class="h3"><a href="' .
vider_url(urlencode_1738(generer_url_entite($Pile[$SP]['id_forum'], 'forum', '', '', true))) .
'">' .
interdire_scripts(liens_nofollow(safehtml(typo(interdit_html($Pile[$SP]['titre']), "TYPO", $connect, $Pile[0])))) .
'</a></h3>
<div class="info-publi">' .
(($t1 = strval(interdire_scripts(affdate_jourcourt(normaliser_date($Pile[$SP]['date'])))))!=='' ?
(( '<abbr class="published" title="' .
interdire_scripts(date_iso(normaliser_date($Pile[$SP]['date']))) .
'">') . $t1 . ( (($t2 = strval(interdire_scripts(heures(normaliser_date($Pile[$SP]['date'])))))!=='' ?
(' ' . $t2) :
'') .
(($t2 = strval(interdire_scripts(minutes(normaliser_date($Pile[$SP]['date'])))))!=='' ?
(':' . $t2) :
'') .
'</abbr>')) :
'') .
(($t1 = strval(interdire_scripts(typo(supprimer_numero($Pile[$SP]['nom']), "TYPO", $connect, $Pile[0]))))!=='' ?
(( '<span class="sep">, </span><span class="auteurs">' .
$l1 .
' ') . $t1 . '</span>') :
'') .
'</div>
' .
(($t1 = strval(interdire_scripts(lignes_longues(filtre_introduction('', $Pile[$SP]['texte'], 600, $connect)))))!=='' ?
('<div class="introduction">' . $t1 . '</div>') :
'') .
'
');
}
$iter->free();
}
if (defined("_BOUCLE_PROFILER")
AND 1000*($timer = (time()+microtime())-$timer) > _BOUCLE_PROFILER)
spip_log(intval(1000*$timer)."ms BOUCLE_forum_parent @ plugins/auto/zpip/contenu/page-forum.html","profiler"._LOG_AVERTISSEMENT);
return $t0;
}
//
// Fonction principale du squelette plugins/auto/zpip/contenu/page-forum.html
// Temps de compilation total: 231.562 ms
//
function html_086e77f402253352d04987f3d6f1183e($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 = (
'
<p id="hierarchie"><a href="' .
spip_htmlspecialchars(sinon($GLOBALS['meta']['adresse_site'],'.')) .
'/">' .
_T('public|spip|ecrire:accueil_site') .
'</a>
' .
(($t1 = BOUCLE_contexte_articlehtml_086e77f402253352d04987f3d6f1183e($Cache, $Pile, $doublons, $Numrows, $SP))!=='' ?
($t1 . '
') :
(( '
' .
(($t2 = BOUCLE_contexte_brevehtml_086e77f402253352d04987f3d6f1183e($Cache, $Pile, $doublons, $Numrows, $SP))!=='' ?
$t2 :
(( '
' .
(($t3 = BOUCLE_contexte_rubriquehtml_086e77f402253352d04987f3d6f1183e($Cache, $Pile, $doublons, $Numrows, $SP))!=='' ?
$t3 :
(( '
' .
(($t4 = BOUCLE_contexte_sitehtml_086e77f402253352d04987f3d6f1183e($Cache, $Pile, $doublons, $Numrows, $SP))!=='' ?
$t4 :
('
')) .
'
'))) .
'
'))) .
'
'))) .
'
' .
BOUCLE_contexte_forumhtml_086e77f402253352d04987f3d6f1183e($Cache, $Pile, $doublons, $Numrows, $SP) .
'
> <strong class="on">' .
_T('public|spip|ecrire:poster_message') .
'</strong>
</p><!--#hierarchie-->
<div class="contenu-principal">
<div class="cartouche">
<h1 class="h1">' .
_T('public|spip|ecrire:poster_message') .
'</h1>
</div>
<div class="resume articles">
<h2 class="h2">' .
_T('public|spip|ecrire:en_reponse') .
'</h2>
' .
(($t1 = BOUCLE_forum_parenthtml_086e77f402253352d04987f3d6f1183e($Cache, $Pile, $doublons, $Numrows, $SP))!=='' ?
$t1 :
(( '
' .
BOUCLE_articlehtml_086e77f402253352d04987f3d6f1183e($Cache, $Pile, $doublons, $Numrows, $SP) .
'
' .
BOUCLE_brevehtml_086e77f402253352d04987f3d6f1183e($Cache, $Pile, $doublons, $Numrows, $SP) .
'
' .
BOUCLE_rubriquehtml_086e77f402253352d04987f3d6f1183e($Cache, $Pile, $doublons, $Numrows, $SP) .
'
' .
BOUCLE_syndichtml_086e77f402253352d04987f3d6f1183e($Cache, $Pile, $doublons, $Numrows, $SP) .
'
'))) .
'
</div>
' .
executer_balise_dynamique('FORMULAIRE_FORUM',
array(@$Pile[0][''],@$Pile[0]['id_forum'],@$Pile[0]['ajouter_mot'],@$Pile[0]['ajouter_groupe'],@$Pile[0]['afficher_texte'],@$Pile[0]['id_article'],@$Pile[0]['id_breve'],@$Pile[0]['id_rubrique'],@$Pile[0]['id_syndic']),
array('plugins/auto/zpip/contenu/page-forum.html','html_086e77f402253352d04987f3d6f1183e','',88,$GLOBALS['spip_lang'], '',4)) .
'
</div>');
return analyse_resultat_skel('html_086e77f402253352d04987f3d6f1183e', $Cache, $page, 'plugins/auto/zpip/contenu/page-forum.html');
}
?>