File "html_4363bbb3991c5dea735d3fa7a28f37ed.php"

Full path: /home/argothem/www/organecyberpresse/tmp/cache/skel/html_4363bbb3991c5dea735d3fa7a28f37ed.php
File size: 11.56 KB
MIME-type: text/x-php
Charset: utf-8

<?php

/*
 * Squelette : squelettes/forum.html
 * Date :      Tue, 28 Jun 2022 09:29:44 GMT
 * Compile :   Fri, 22 Aug 2025 09:23:45 GMT
 * Boucles :   _mots, _principale
 */ 

function BOUCLE_motshtml_4363bbb3991c5dea735d3fa7a28f37ed(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {

	static $command = array();
	static $connect;
	$command['connect'] = $connect = '';
	$in = array();
	if (!(is_array($a = (retablir_echappements_modeles(table_valeur($Pile[0]??[], (string)'ajouter_mot', null))))))
		$in[]= $a;
	else $in = array_merge($in, $a);
	if (!isset($command['table'])) {
		$command['table'] = 'mots';
		$command['id'] = '_mots';
		$command['from'] = array('mots' => 'spip_mots');
		$command['type'] = array();
		$command['groupby'] = array();
		$command['select'] = array("0+mots.type AS num",
		"CASE ( 0+mots.type ) WHEN 0 THEN 1 ELSE 0 END AS sinum",
		"mots.type",
		"0+mots.titre AS num2",
		"CASE ( 0+mots.titre ) WHEN 0 THEN 1 ELSE 0 END AS sinum2",
		"mots.titre");
		$command['orderby'] = array('sinum, num', 'mots.type', 'sinum2, num2', 'mots.titre');
		$command['join'] = array();
		$command['limit'] = '';
		$command['having'] = 
			array();
	}
	$command['where'] = 
			array(sql_in('mots.id_mot', $in));
	if (defined("_BOUCLE_PROFILER")) $timer = time()+(float)microtime();
	$t0 = "";
	// REQUETE
	$iter = Spip\Compilateur\Iterateur\Factory::create(
		"SQL",
		$command,
		array('squelettes/forum.html','html_4363bbb3991c5dea735d3fa7a28f37ed','_mots',33,$GLOBALS['spip_lang'])
	);
	if (!$iter->err()) {
	$SP++;
	// RESULTATS
	while ($Pile[$SP]=$iter->fetch()) {

		$t1 = retablir_echappements_modeles(interdire_scripts(supprimer_numero(typo($Pile[$SP]['titre'], "TYPO", $connect, $Pile[0]))));
		$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 @ squelettes/forum.html","profiler"._LOG_AVERTISSEMENT);
	return $t0;
}


function BOUCLE_principalehtml_4363bbb3991c5dea735d3fa7a28f37ed(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {

	static $command = array();
	static $connect;
	$command['connect'] = $connect = '';
	if (!isset($command['table'])) {
		$command['table'] = 'forum';
		$command['id'] = '_principale';
		$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",
		"forum.url_site",
		"forum.nom_site",
		"forum.id_objet AS id_article",
		"forum.id_objet AS id_breve",
		"forum.id_objet AS id_rubrique",
		"forum.id_objet AS id_syndic");
		$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'] ?? null), '','bigint NOT NULL AUTO_INCREMENT')));
	if (defined("_BOUCLE_PROFILER")) $timer = time()+(float)microtime();
	$t0 = "";
	// REQUETE
	$iter = Spip\Compilateur\Iterateur\Factory::create(
		"SQL",
		$command,
		array('squelettes/forum.html','html_4363bbb3991c5dea735d3fa7a28f37ed','_principale',1,$GLOBALS['spip_lang'])
	);
	if (!$iter->err()) {
	$SP++;
	// RESULTATS
	while ($Pile[$SP]=$iter->fetch()) {

		$t0 .= (
'
<!DOCTYPE html>
<html dir="' .
retablir_echappements_modeles(lang_dir(($Pile[0]['lang'] ?? null), 'ltr','rtl')) .
'" lang="' .
retablir_echappements_modeles(spip_htmlentities(($Pile[0]['lang'] ?? null) ? ($Pile[0]['lang'] ?? null) : $GLOBALS['spip_lang'])) .
'" class="' .
retablir_echappements_modeles(lang_dir(($Pile[0]['lang'] ?? null), 'ltr','rtl')) .
(($t1 = strval(retablir_echappements_modeles(spip_htmlentities(($Pile[0]['lang'] ?? null) ? ($Pile[0]['lang'] ?? null) : $GLOBALS['spip_lang']))))!=='' ?
		(' ' . $t1) :
		'') .
' no-js">
<head>
	<script type=\'text/javascript\'>/*<![CDATA[*/(function(H){H.className=H.className.replace(/\\bno-js\\b/,\'js\')})(document.documentElement);/*]]>*/</script>
	<title>' .
_T('forum:forum') .
' ' .
retablir_echappements_modeles($Pile[$SP]['id_forum']) .
' - ' .
retablir_echappements_modeles(interdire_scripts(textebrut(typo($GLOBALS['meta']['nom_site'], "TYPO", $connect, $Pile[0])))) .
'</title>
	' .

'<'.'?php echo recuperer_fond( ' . argumenter_squelette('inclure/head') . ', array(\'robots\' => ' . argumenter_squelette('none') . ',
	\'lang\' => ' . argumenter_squelette($GLOBALS["spip_lang"]) . '), array("compil"=>array(\'squelettes/forum.html\',\'html_4363bbb3991c5dea735d3fa7a28f37ed\',\'\',7,$GLOBALS[\'spip_lang\'])), _request(\'connect\') ?? \'\');
?'.'>
</head>

<body class="pas_surlignable page_forum">
<div class="page">

	' .

'<'.'?php echo recuperer_fond( ' . argumenter_squelette('inclure/header') . ', array(\'lang\' => ' . argumenter_squelette($GLOBALS["spip_lang"]) . '), array("compil"=>array(\'squelettes/forum.html\',\'html_4363bbb3991c5dea735d3fa7a28f37ed\',\'\',13,$GLOBALS[\'spip_lang\'])), _request(\'connect\') ?? \'\');
?'.'>
	' .

'<'.'?php echo recuperer_fond( ' . argumenter_squelette('inclure/nav') . ', array_merge('.var_export($Pile[0],1).',array(\'lang\' => ' . argumenter_squelette($GLOBALS["spip_lang"]) . ')), array("compil"=>array(\'squelettes/forum.html\',\'html_4363bbb3991c5dea735d3fa7a28f37ed\',\'\',14,$GLOBALS[\'spip_lang\'])), _request(\'connect\') ?? \'\');
?'.'>
	
	<main class="main" role="main">
		' .
(($t1 = strval(retablir_echappements_modeles('')))!=='' ?
		($t1 . ' Contenu principal : message de forum ') :
		'') .
'
		<div class="wrapper">
		<div class="content" id="content">
			<p class="arbo"><a href="' .
retablir_echappements_modeles(spip_htmlspecialchars(sinon($GLOBALS['meta']['adresse_site'],'.'))) .
'/">' .
_T('public|spip|ecrire:accueil_site') .
'</a> &gt; ... &gt; <strong class="on">' .
_T('forum:forum') .
' ' .
retablir_echappements_modeles($Pile[$SP]['id_forum']) .
'</strong></p><!--.arbo-->
	
			<div class="cartouche">
				' .
(($t1 = strval(retablir_echappements_modeles(interdire_scripts(((($a = liens_nofollow(safehtml(typo(interdit_html($Pile[$SP]['titre']), "TYPO", $connect, $Pile[0])))) OR (is_string($a) AND strlen($a))) ? $a : (	_T('forum:forum') .
	' ' .
	($Pile[$SP]['id_forum'])))))))!=='' ?
		('<h1>' . $t1 . '</h1>') :
		'') .
'
			</div>
			<p class="comment-meta">
				<small><abbr class="dtreviewed"' .
(($t1 = strval(retablir_echappements_modeles(interdire_scripts(date_iso(normaliser_date($Pile[$SP]['date']))))))!=='' ?
		(' title="' . $t1 . '"') :
		'') .
'>' .
retablir_echappements_modeles(interdire_scripts(affdate_jourcourt(normaliser_date($Pile[$SP]['date'])))) .
(($t1 = strval(retablir_echappements_modeles(interdire_scripts(heures(normaliser_date($Pile[$SP]['date']))))))!=='' ?
		(', ' . $t1) :
		'') .
(($t1 = strval(retablir_echappements_modeles(interdire_scripts(minutes(normaliser_date($Pile[$SP]['date']))))))!=='' ?
		(':' . $t1) :
		'') .
'</abbr>' .
(($t1 = strval(retablir_echappements_modeles(interdire_scripts(couper(supprimer_numero(typo($Pile[$SP]['nom'], "TYPO", $connect, $Pile[0])),'80')))))!=='' ?
		((	'<span class="sep">, </span>' .
	_T('public|spip|ecrire:par_auteur') .
	' <span class="' .
	retablir_echappements_modeles('') .
	'">') . $t1 . '</span>') :
		'') .
'</small>
			</p>
			<div class="comment-content">
				' .
(($t1 = strval(retablir_echappements_modeles(interdire_scripts(lignes_longues(liens_nofollow(safehtml(propre(interdit_html($Pile[$SP]['texte']), $connect, $Pile[0]))))))))!=='' ?
		((	'<div class="' .
	retablir_echappements_modeles('') .
	'comment-texte">') . $t1 . '</div>') :
		'') .
'
				' .
(($t1 = strval(retablir_echappements_modeles(interdire_scripts(lignes_longues(liens_nofollow(safehtml(propre(interdit_html(calculer_notes()), $connect, $Pile[0]))))))))!=='' ?
		('<div class="comment-notes">' . $t1 . '</div>') :
		'') .
'
				' .
(($t1 = strval(retablir_echappements_modeles(attribut_html(safehtml(vider_url(calculer_url($Pile[$SP]['url_site'],'','url', $connect)))))))!=='' ?
		((	'<p class="' .
	retablir_echappements_modeles('') .
	'hyperlien">' .
	_T('public|spip|ecrire:voir_en_ligne') .
	' : <a href="') . $t1 . (	'" class="spip_out">' .
	retablir_echappements_modeles(interdire_scripts(((($a = liens_nofollow(safehtml(typo(interdit_html(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(safehtml(vider_url(calculer_url($Pile[$SP]['url_site'],'','url', $connect))),'80'))))) .
	'</a></p>')) :
		'') .
'
				' .
(($t1 = strval(retablir_echappements_modeles(interdire_scripts(table_valeur(entites_html(table_valeur($Pile[0]??[], (string)'ajouter_document', null),true),'name')))))!=='' ?
		((	'<div class="comment-doc">' .
	_T('medias:info_document') .
	' : ') . $t1 . '</div>') :
		'') .
'
				' .
(($t1 = BOUCLE_motshtml_4363bbb3991c5dea735d3fa7a28f37ed($Cache, $Pile, $doublons, $Numrows, $SP))!=='' ?
		((	'<p class="comment-mots">' .
		_T('forum:forum_avez_selectionne') .
		' ') . $t1 . '</p>') :
		'') .
'
			</div>
			
			' .
(($t1 = strval(retablir_echappements_modeles(executer_balise_dynamique('FORMULAIRE_FORUM',
	array($Pile[$SP]['id_forum'],$Pile[$SP]['id_forum'],($Pile[0]['ajouter_mot'] ?? null),($Pile[0]['ajouter_groupe'] ?? null),($Pile[0]['forcer_previsu'] ?? null),$Pile[$SP]['id_article'],$Pile[$SP]['id_breve'],$Pile[$SP]['id_rubrique'],$Pile[$SP]['id_syndic']),
	array('squelettes/forum.html','html_4363bbb3991c5dea735d3fa7a28f37ed','_principale',29,$GLOBALS['spip_lang'], 'forum',4)))))!=='' ?
		((	'<h2>' .
	_T('forum:form_pet_message_commentaire') .
	'</h2>
			') . $t1) :
		'') .
'
	
		</div><!--.content-->
		</div><!--.wrapper-->
	
		<aside class="aside" role="complementary">
			' .

'<'.'?php echo recuperer_fond( ' . argumenter_squelette('inclure/navsub') . ', array(\'lang\' => ' . argumenter_squelette($GLOBALS["spip_lang"]) . '), array("compil"=>array(\'squelettes/forum.html\',\'html_4363bbb3991c5dea735d3fa7a28f37ed\',\'\',42,$GLOBALS[\'spip_lang\'])), _request(\'connect\') ?? \'\');
?'.'>
			' .
retablir_echappements_modeles(executer_balise_dynamique('FORMULAIRE_RECHERCHE',
	array(),
	array('squelettes/forum.html','html_4363bbb3991c5dea735d3fa7a28f37ed','_principale',43,$GLOBALS['spip_lang']))) .
'
		</aside><!--.aside-->
	</main><!--.main-->

	' .

'<'.'?php echo recuperer_fond( ' . argumenter_squelette('inclure/footer') . ', array_merge('.var_export($Pile[0],1).',array(\'self\' => ' . argumenter_squelette(retablir_echappements_modeles(self())) . ',
	\'lang\' => ' . argumenter_squelette($GLOBALS["spip_lang"]) . ')), array("compil"=>array(\'squelettes/forum.html\',\'html_4363bbb3991c5dea735d3fa7a28f37ed\',\'\',47,$GLOBALS[\'spip_lang\'])), _request(\'connect\') ?? \'\');
?'.'>

</div><!--.page-->
</body>
</html>
');
	}
	$iter->free();
	}
	if (defined("_BOUCLE_PROFILER")
	AND 1000*($timer = (time()+(float)microtime())-$timer) > _BOUCLE_PROFILER)
		spip_log(intval(1000*$timer)."ms BOUCLE_principale @ squelettes/forum.html","profiler"._LOG_AVERTISSEMENT);
	return $t0;
}

//
// Fonction principale du squelette squelettes/forum.html
// Temps de compilation total: 12.528 ms
//

function html_4363bbb3991c5dea735d3fa7a28f37ed($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_principalehtml_4363bbb3991c5dea735d3fa7a28f37ed($Cache, $Pile, $doublons, $Numrows, $SP);

	return analyse_resultat_skel('html_4363bbb3991c5dea735d3fa7a28f37ed', $Cache, $page, 'squelettes/forum.html');
}