File "html_8cc08c8b43d374d0e7882ca58c52b6e4.php"
Full path: /home/argothem/www/cache/html_purifier/HTML/html_8cc08c8b43d374d0e7882ca58c52b6e4.php
File size: 4.67 KB
MIME-type: text/x-php
Charset: utf-8
<?php
/*
* Squelette : notifications/article_propose.html
* Date : Fri, 07 Jul 2023 11:03:22 GMT
* Compile : Sun, 25 Feb 2024 13:44:41 GMT
* Boucles : _art
*/
function BOUCLE_arthtml_8cc08c8b43d374d0e7882ca58c52b6e4(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {
static $command = array();
static $connect;
$command['connect'] = $connect = '';
$in = array();
if (!(is_array($a = (($Pile[0]['statut'] ?? null)))))
$in[]= $a;
else $in = array_merge($in, $a);
if (!isset($command['table'])) {
$command['table'] = 'articles';
$command['id'] = '_art';
$command['from'] = array('articles' => 'spip_articles');
$command['type'] = array();
$command['groupby'] = array();
$command['select'] = array("articles.id_article",
"articles.titre",
"articles.date",
"articles.chapo",
"articles.texte",
"articles.lang");
$command['orderby'] = array();
$command['join'] = array();
$command['limit'] = '';
$command['having'] =
array();
}
$command['where'] =
array(
array('=', 'articles.id_article', sql_quote(($Pile[0]['id_article'] ?? null), '','bigint(21) NOT NULL AUTO_INCREMENT')), (!is_whereable(($Pile[0]['statut'] ?? null)) ? '' : ((is_array(($Pile[0]['statut'] ?? null))) ? sql_in('articles.statut', $in) :
array('=', 'articles.statut', sql_quote(($Pile[0]['statut'] ?? null), '','varchar(10) NOT NULL')))));
if (defined("_BOUCLE_PROFILER")) $timer = time()+(float)microtime();
$t0 = "";
// REQUETE
$iter = Spip\Compilateur\Iterateur\Factory::create(
"SQL",
$command,
array('notifications/article_propose.html','html_8cc08c8b43d374d0e7882ca58c52b6e4','_art',8,$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 .= (
'
' .
vide($Pile['vars'][$_zzz=(string)'auteurs'] = recuperer_fond('modeles/lesauteurs', array('objet'=>'article','id_objet' => $Pile[$SP]['id_article'],'id_article' => $Pile[$SP]['id_article']), array('trim'=>true, 'compil'=>array('notifications/article_propose.html','html_8cc08c8b43d374d0e7882ca58c52b6e4','_art',0,$GLOBALS['spip_lang'])), '')) .
filtre_nettoyer_titre_email_dist(_T('info_propose_1',array('nom_site_spip' => interdire_scripts(typo($GLOBALS['meta']['nom_site'], "TYPO", $connect, $Pile[0])), 'titre' => interdire_scripts(supprimer_numero(typo($Pile[$SP]['titre'], "TYPO", $connect, $Pile[0])))))) .
'
' .
_T('public|spip|ecrire:info_propose_2') .
'
' .
_T('info_propose_3',array('titre' => interdire_scripts(supprimer_numero(typo($Pile[$SP]['titre'], "TYPO", $connect, $Pile[0]))))) .
'
' .
_T('public|spip|ecrire:info_propose_4') .
'
' .
_T('public|spip|ecrire:info_propose_5') .
'
' .
generer_objet_url($Pile[$SP]['id_article'],'article','','','0') .
'
' .
(($t1 = strval(interdire_scripts(supprimer_numero(typo($Pile[$SP]['titre'], "TYPO", $connect, $Pile[0])))))!=='' ?
('** ' . $t1 . ' **') :
'') .
((table_valeur($Pile["vars"]??[], (string)'auteurs', null)) ?
(' ' . ( '
' .
_T('info_les_auteurs_1',array('les_auteurs' => table_valeur($Pile["vars"]??[], (string)'auteurs', null))))) :
'') .
(($t1 = strval(_T('date_fmt_nomjour_date',array('nomjour' => interdire_scripts(nom_jour(normaliser_date($Pile[$SP]['date']))), 'date' => interdire_scripts(affdate(normaliser_date($Pile[$SP]['date'])))))))!=='' ?
('
' . $t1) :
'') .
'
' .
interdire_scripts(textebrut(couper(concat(propre($Pile[$SP]['chapo'], $connect, $Pile[0]),interdire_scripts(propre($Pile[$SP]['texte'], $connect, $Pile[0]))),'700'))) .
'
');
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_art @ notifications/article_propose.html","profiler"._LOG_AVERTISSEMENT);
return $t0;
}
//
// Fonction principale du squelette notifications/article_propose.html
// Temps de compilation total: 1.460 ms
//
function html_8cc08c8b43d374d0e7882ca58c52b6e4($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/plain' .
(($t2 = strval(interdire_scripts($GLOBALS['meta']['charset'])))!=='' ?
('; charset=' . $t2) :
''))) . '); ?'.'>
' .
BOUCLE_arthtml_8cc08c8b43d374d0e7882ca58c52b6e4($Cache, $Pile, $doublons, $Numrows, $SP) .
'
' .
'<' . '?php header("X-Spip-Filtre: '.'supprimer_tags|filtrer_entites|trim' . '"); ?'.'>');
return analyse_resultat_skel('html_8cc08c8b43d374d0e7882ca58c52b6e4', $Cache, $page, 'notifications/article_propose.html');
}