File "html_619e9aa990f98f2ba0cec787c0763e48.php"
Full path: /home/argothem/www/cache/inc/cache/html_purifier/HTML/html_619e9aa990f98f2ba0cec787c0763e48.php
File size: 7.19 KB
MIME-type: text/x-php
Charset: utf-8
<?php
/*
* Squelette : ../plugins/auto/corbeille/v4.0.2/prive/listes/corbeille_forums_prives.html
* Date : Thu, 11 Jan 2024 18:06:48 GMT
* Compile : Sat, 24 Feb 2024 13:15:29 GMT
* Boucles : _forums_prives
*/
function BOUCLE_forums_priveshtml_619e9aa990f98f2ba0cec787c0763e48(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {
static $command = array();
static $connect;
$command['connect'] = $connect = '';
$command['pagination'] = array((isset($Pile[0]['debut_forums_prives']) ? $Pile[0]['debut_forums_prives'] : null), 5);
// RECHERCHE
if (!strlen((isset($Pile[0]["recherche"])?$Pile[0]["recherche"]:(isset($GLOBALS["recherche"])?$GLOBALS["recherche"]:"")))){
list($rech_select, $rech_where) = array("0 as points","");
} else
{
$prepare_recherche = charger_fonction('prepare_recherche', 'inc');
list($rech_select, $rech_where) = $prepare_recherche((isset($Pile[0]["recherche"])?$Pile[0]["recherche"]:(isset($GLOBALS["recherche"])?$GLOBALS["recherche"]:"")), "forum", "1","",array (
'criteres' =>
array (
'statut' => true,
),
'debut_nom' => '\'_forums_prives\'',
),"id_forum");
}
if (!isset($command['table'])) {
$command['table'] = 'forum';
$command['id'] = '_forums_prives';
$command['from'] = array('forum' => 'spip_forum','resultats' => 'spip_resultats');
$command['type'] = array();
$command['groupby'] = array();
$command['orderby'] = array('forum.date_heure DESC');
$command['join'] = array('resultats' => array('forum','id','id_forum'));
$command['limit'] = '';
$command['having'] =
array();
}
$command['select'] = array("forum.id_forum",
"forum.date_heure",
"$rech_select",
"forum.titre",
"forum.date_heure AS date",
"forum.texte");
$command['where'] =
array(
array('=', 'forum.id_parent', 0),
array('=', 'forum.statut', sql_quote(($Pile[0]['statut'] ?? null), '','varchar(8) NOT NULL')), $rech_where?$rech_where:'');
if (defined("_BOUCLE_PROFILER")) $timer = time()+(float)microtime();
$t0 = "";
// REQUETE
$iter = Spip\Compilateur\Iterateur\Factory::create(
"SQL",
$command,
array('../plugins/auto/corbeille/v4.0.2/prive/listes/corbeille_forums_prives.html','html_619e9aa990f98f2ba0cec787c0763e48','_forums_prives',6,$GLOBALS['spip_lang'])
);
if (!$iter->err()) {
// COMPTEUR
$Numrows['_forums_prives']['compteur_boucle'] = 0;
$Numrows['_forums_prives']['command'] = $command;
$Numrows['_forums_prives']['total'] = @intval($iter->count());
$debut_boucle = isset($Pile[0]['debut_forums_prives']) ? $Pile[0]['debut_forums_prives'] : _request('debut_forums_prives');
if ($debut_boucle && $debut_boucle[0] === '@') {
$debut_boucle = $Pile[0]['debut_forums_prives'] = quete_debut_pagination('id_forum',$Pile[0]['@id_forum'] = substr($debut_boucle,1),5,$iter);
$iter->seek(0);
}
$debut_boucle = intval($debut_boucle);
$debut_boucle = (($tout=($debut_boucle == -1))?0:($debut_boucle));
$debut_boucle = max(0,min($debut_boucle,floor(($Numrows['_forums_prives']['total']-1)/(5))*(5)));
$debut_boucle = intval($debut_boucle);
$fin_boucle = min(($tout ? $Numrows['_forums_prives']['total'] : $debut_boucle + 4), $Numrows['_forums_prives']['total'] - 1);
$Numrows['_forums_prives']['grand_total'] = $Numrows['_forums_prives']['total'];
$Numrows['_forums_prives']["total"] = max(0,$fin_boucle - $debut_boucle + 1);
if ($debut_boucle>0 AND $debut_boucle < $Numrows['_forums_prives']['grand_total'] AND $iter->seek($debut_boucle,'continue'))
$Numrows['_forums_prives']['compteur_boucle'] = $debut_boucle;
$l1 = _T('corbeille:selectionner');
$l2 = _T('public|spip|ecrire:info_sans_titre');
$l3 = _T('corbeille:voir_detail');$SP++;
// RESULTATS
while ($Pile[$SP]=$iter->fetch()) {
$Numrows['_forums_prives']['compteur_boucle']++;
if ($Numrows['_forums_prives']['compteur_boucle'] <= $debut_boucle) continue;
if ($Numrows['_forums_prives']['compteur_boucle']-1 > $fin_boucle) break;
$t0 .= (
'
<li class=\'item\'>
<label for=\'forumpri-' .
$Pile[$SP]['id_forum'] .
'\'>' .
$l1 .
'</label><input type=\'checkbox\' name=\'elements[]\' id="forumpri-' .
$Pile[$SP]['id_forum'] .
'" value=\'' .
$Pile[$SP]['id_forum'] .
'\'' .
((in_any($Pile[$SP]['id_forum'],interdire_scripts(entites_html(table_valeur($Pile[0]??[], (string)'elements', null),true)))) ?
(' ' . ' ' . 'checked=\'checked\'') :
'') .
'/>
<h4>' .
(($t1 = strval(interdire_scripts(((($a = liens_nofollow(safehtml(typo(interdit_html($Pile[$SP]['titre']), "TYPO", $connect, $Pile[0])))) OR (is_string($a) AND strlen($a))) ? $a : $l2))))!=='' ?
(( '#' .
$Pile[$SP]['id_forum'] .
' - ') . $t1) :
'') .
'</h4>
<small>' .
interdire_scripts(affdate(normaliser_date($Pile[$SP]['date']))) .
(($t1 = strval(interdire_scripts(heures(normaliser_date($Pile[$SP]['date'])))))!=='' ?
(' ' . $t1) :
'') .
':' .
interdire_scripts(minutes(normaliser_date($Pile[$SP]['date']))) .
'</small>
- ' .
interdire_scripts(generer_objet_introduction((int)$Pile[$SP]['id_forum'], 'forums', array('texte' => $Pile[$SP]['texte'],), null, null, null, $connect)) .
'
<p class=\'actions\'><a href=\'' .
generer_url_ecrire('controler_forum',( 'debut_forum=@' .
$Pile[$SP]['id_forum'])) .
'\'>' .
$l3 .
'</a></p>
</li>
');
}
$iter->free();
}
if (defined("_BOUCLE_PROFILER")
AND 1000*($timer = (time()+(float)microtime())-$timer) > _BOUCLE_PROFILER)
spip_log(intval(1000*$timer)."ms BOUCLE_forums_prives @ ../plugins/auto/corbeille/v4.0.2/prive/listes/corbeille_forums_prives.html","profiler"._LOG_AVERTISSEMENT);
return $t0;
}
//
// Fonction principale du squelette ../plugins/auto/corbeille/v4.0.2/prive/listes/corbeille_forums_prives.html
// Temps de compilation total: 1.608 ms
//
function html_619e9aa990f98f2ba0cec787c0763e48($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 = (($t1 = BOUCLE_forums_priveshtml_619e9aa990f98f2ba0cec787c0763e48($Cache, $Pile, $doublons, $Numrows, $SP))!=='' ?
(( '
<div class="liste corbeille-forum corbeille-forum-prives">
' .
(($t3 = strval(singulier_ou_pluriel(($Numrows['_forums_prives']['grand_total'] ?? $Numrows['_forums_prives']['total'] ?? 0),'corbeille:forums_prives_corbeille_un','corbeille:forums_prives_corbeille_tous')))!=='' ?
('<h3 class="titrem">' . $t3 . '</h3>') :
'') .
'
' .
(($t3 = strval(filtre_pagination_dist($Numrows["_forums_prives"]["grand_total"],
'_forums_prives',
isset($Pile[0]['debut_forums_prives'])?$Pile[0]['debut_forums_prives']:intval(_request('debut_forums_prives')),
5, true, '', '', array())))!=='' ?
('<nav class=\'pagination\' role=\'navigation\'>' . $t3 . '</nav>') :
'') .
'
<ul class=\'liste-items checkables\'>
') . $t1 . ( '
</ul>
' .
(($t3 = strval(filtre_pagination_dist($Numrows["_forums_prives"]["grand_total"],
'_forums_prives',
isset($Pile[0]['debut_forums_prives'])?$Pile[0]['debut_forums_prives']:intval(_request('debut_forums_prives')),
5, true, '', '', array())))!=='' ?
('<nav class=\'pagination\' role=\'navigation\'>' . $t3 . '</nav>') :
'') .
'
</div>
')) :
'');
return analyse_resultat_skel('html_619e9aa990f98f2ba0cec787c0763e48', $Cache, $page, '../plugins/auto/corbeille/v4.0.2/prive/listes/corbeille_forums_prives.html');
}