Server : Apache System : Linux webd348.cluster026.gra.hosting.ovh.net 5.15.148-ovh-vps-grsec-zfs-classid #1 SMP Thu Feb 8 09:41:04 UTC 2024 x86_64 User : hednacluml ( 122243) PHP Version : 8.3.9 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl Directory : /home/hednacluml/france/tmp/cache/skel/ |
<?php /* * Squelette : squelettes-dist/inclure/forum.html * Date : Thu, 10 Oct 2024 10:20:07 GMT * Compile : Thu, 10 Oct 2024 10:38:43 GMT * Boucles : _doc, _doc2, _comments-fils, _comments */ function BOUCLE_dochtml_60e0c13c9758c53afccafd9e653ec749(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) { static $command = array(); static $connect; $command['connect'] = $connect = ''; if (!isset($command['table'])) { $command['table'] = 'documents'; $command['id'] = '_doc'; $command['from'] = array('documents' => 'spip_documents','L1' => 'spip_documents_liens'); $command['type'] = array(); $command['groupby'] = array(); $command['select'] = array("documents.extension", "documents.id_document"); $command['orderby'] = array(); $command['join'] = array('L1' => array('documents','id_document')); $command['limit'] = ''; $command['having'] = array(); } $command['where'] = array( quete_condition_statut('documents.statut','publie,prop,prepa','publie',''), array('IN', 'documents.mode', '(\'image\',\'document\')'), array('(documents.taille > 0 OR documents.distant=\'oui\')'), array('=', 'L1.id_objet', sql_quote($Pile[$SP]['id_forum'], '','bigint NOT NULL DEFAULT \'0\'')), array('=', 'L1.objet', sql_quote('forum'))); if (defined("_BOUCLE_PROFILER")) $timer = time()+(float)microtime(); $t0 = ""; // REQUETE $iter = Spip\Compilateur\Iterateur\Factory::create( "SQL", $command, array('squelettes-dist/inclure/forum.html','html_60e0c13c9758c53afccafd9e653ec749','_doc',25,$GLOBALS['spip_lang']) ); if (!$iter->err()) { $SP++; // RESULTATS while ($Pile[$SP]=$iter->fetch()) { $t0 .= ( ' ' . interdire_scripts((filtre_match_dist($Pile[$SP]['extension'],'^(gif|jpg|png)$') ? ( filtrer('image_graver',filtrer('image_reduire', ((($recurs=(isset($Pile[0]['recurs'])?$Pile[0]['recurs']:0))>=5)? '' : recuperer_fond('modeles/emb', array('lang' => $GLOBALS["spip_lang"] , 'id_document'=>$Pile[$SP]['id_document'], 'id'=>$Pile[$SP]['id_document'], 'recurs'=>(++$recurs)), array('compil'=>array('squelettes-dist/inclure/forum.html','html_60e0c13c9758c53afccafd9e653ec749','_doc',27,$GLOBALS['spip_lang']), 'trim'=>true), '')) ,'672','*')) . ' '):quete_logo_document(quete_document($Pile[$SP]['id_document'], ''), vider_url(urlencode_1738(generer_objet_url($Pile[$SP]['id_document'], 'document', '', '', true))), '', '', 0, 0, ''))) . ' '); } $iter->free(); } if (defined("_BOUCLE_PROFILER") AND 1000*($timer = (time()+(float)microtime())-$timer) > _BOUCLE_PROFILER) spip_log(intval(1000*$timer)."ms BOUCLE_doc @ squelettes-dist/inclure/forum.html","profiler"._LOG_AVERTISSEMENT); return $t0; } function BOUCLE_doc2html_60e0c13c9758c53afccafd9e653ec749(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) { static $command = array(); static $connect; $command['connect'] = $connect = ''; if (!isset($command['table'])) { $command['table'] = 'documents'; $command['id'] = '_doc2'; $command['from'] = array('documents' => 'spip_documents','L1' => 'spip_documents_liens'); $command['type'] = array(); $command['groupby'] = array(); $command['select'] = array("documents.extension", "documents.id_document"); $command['orderby'] = array(); $command['join'] = array('L1' => array('documents','id_document')); $command['limit'] = ''; $command['having'] = array(); } $command['where'] = array( quete_condition_statut('documents.statut','publie,prop,prepa','publie',''), array('IN', 'documents.mode', '(\'image\',\'document\')'), array('(documents.taille > 0 OR documents.distant=\'oui\')'), array('=', 'L1.id_objet', sql_quote($Pile[$SP]['id_forum'], '','bigint NOT NULL DEFAULT \'0\'')), array('=', 'L1.objet', sql_quote('forum'))); if (defined("_BOUCLE_PROFILER")) $timer = time()+(float)microtime(); $t0 = ""; // REQUETE $iter = Spip\Compilateur\Iterateur\Factory::create( "SQL", $command, array('squelettes-dist/inclure/forum.html','html_60e0c13c9758c53afccafd9e653ec749','_doc2',50,$GLOBALS['spip_lang']) ); if (!$iter->err()) { $SP++; // RESULTATS while ($Pile[$SP]=$iter->fetch()) { $t0 .= ( ' ' . interdire_scripts((filtre_match_dist($Pile[$SP]['extension'],'^(gif|jpg|png)$') ? ( filtrer('image_graver',filtrer('image_reduire', ((($recurs=(isset($Pile[0]['recurs'])?$Pile[0]['recurs']:0))>=5)? '' : recuperer_fond('modeles/emb', array('lang' => $GLOBALS["spip_lang"] , 'id_document'=>$Pile[$SP]['id_document'], 'id'=>$Pile[$SP]['id_document'], 'recurs'=>(++$recurs)), array('compil'=>array('squelettes-dist/inclure/forum.html','html_60e0c13c9758c53afccafd9e653ec749','_doc2',52,$GLOBALS['spip_lang']), 'trim'=>true), '')) ,'672','*')) . ' '):quete_logo_document(quete_document($Pile[$SP]['id_document'], ''), vider_url(urlencode_1738(generer_objet_url($Pile[$SP]['id_document'], 'document', '', '', true))), '', '', 0, 0, ''))) . ' '); } $iter->free(); } if (defined("_BOUCLE_PROFILER") AND 1000*($timer = (time()+(float)microtime())-$timer) > _BOUCLE_PROFILER) spip_log(intval(1000*$timer)."ms BOUCLE_doc2 @ squelettes-dist/inclure/forum.html","profiler"._LOG_AVERTISSEMENT); return $t0; } function BOUCLE_comments_filshtml_60e0c13c9758c53afccafd9e653ec749(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) { static $command = array(); static $connect; $command['connect'] = $connect = ''; if (!isset($command['table'])) { $command['table'] = 'forum'; $command['id'] = '_comments-fils'; $command['from'] = array('forum' => 'spip_forum'); $command['type'] = array(); $command['groupby'] = array(); $command['select'] = array("forum.id_forum", "forum.date_heure", "forum.titre", "forum.date_heure AS date", "forum.auteur AS nom", "forum.texte", "forum.url_site", "forum.nom_site"); $command['orderby'] = array('forum.date_heure'); $command['join'] = array(); $command['limit'] = ''; $command['having'] = array(); } $command['where'] = array( quete_condition_statut('forum.statut','publie,prop','publie',''), array('=', 'forum.id_thread', sql_quote($Pile[$SP]['id_thread'], '','bigint NOT NULL DEFAULT \'0\'')), array('NOT', array('=', 'forum.id_forum', sql_quote($Pile[$SP]['id_forum'], '', '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-dist/inclure/forum.html','html_60e0c13c9758c53afccafd9e653ec749','_comments-fils',36,$GLOBALS['spip_lang']) ); if (!$iter->err()) { // COMPTEUR $Numrows['_comments-fils']['compteur_boucle'] = 0; $Numrows['_comments-fils']['command'] = $command; $Numrows['_comments-fils']['total'] = @intval($iter->count()); $l1 = _T('forum:forum_permalink'); $l2 = _T('public|spip|ecrire:par_auteur'); $l3 = _T('public|spip|ecrire:voir_en_ligne');$SP++; // RESULTATS while ($Pile[$SP]=$iter->fetch()) { $Numrows['_comments-fils']['compteur_boucle']++; $t0 .= ( ' <li class="comment-item comment-fil' . (((($Numrows['_comments-fils']['compteur_boucle'] ?? 0) == '1')) ? (' ' . ' ' . 'first') : '') . (((($Numrows['_comments-fils']['compteur_boucle'] ?? 0) == ($Numrows['_comments-fils']['total'] ?? 0))) ? (' ' . ' ' . 'last') : '') . '"> <div class="comment hreview"> <a href="#comment' . $Pile[$SP]['id_forum'] . '" name="comment' . $Pile[$SP]['id_forum'] . '" id="comment' . $Pile[$SP]['id_forum'] . '"></a> <a href="#forum' . $Pile[$SP]['id_forum'] . '" name="forum' . $Pile[$SP]['id_forum'] . '" id="forum' . $Pile[$SP]['id_forum'] . '"></a> <p class="comment-meta"> <a rel="self bookmark" href="#forum' . $Pile[$SP]['id_forum'] . '" title="' . $l1 . ' ' . $Pile[$SP]['id_forum'] . '" class="permalink">' . (($t1 = strval(interdire_scripts(((((include_spip('inc/config')?lire_config('forums_titre',null,false):'') != 'non')) ?' ' :''))))!=='' ? ($t1 . ( '<span class="permalink">' . ($Numrows['_comments-fils']['compteur_boucle'] ?? 0) . '.</span> <strong class="comment-titre">' . (($t2 = strval(interdire_scripts(liens_nofollow(safehtml(typo(interdit_html($Pile[$SP]['titre']), "TYPO", $connect, $Pile[0]))))))!=='' ? ($t2 . ', ') : '') . '</strong>')) : '') . ' <small><abbr class="dtreviewed"' . (($t1 = strval(interdire_scripts(date_iso(normaliser_date($Pile[$SP]['date'])))))!=='' ? (' title="' . $t1 . '"') : '') . '>' . interdire_scripts(affdate_jourcourt(normaliser_date($Pile[$SP]['date']))) . (($t1 = strval(interdire_scripts(heures(normaliser_date($Pile[$SP]['date'])))))!=='' ? (', ' . $t1) : '') . (($t1 = strval(interdire_scripts(minutes(normaliser_date($Pile[$SP]['date'])))))!=='' ? (':' . $t1) : '') . '</abbr>' . (($t1 = strval(interdire_scripts(couper(supprimer_numero(typo($Pile[$SP]['nom'], "TYPO", $connect, $Pile[0])),'80'))))!=='' ? (( '<span class="sep">, </span>' . $l2 . ' <span class="">') . $t1 . '</span>') : '') . '</small></a> </p> <div class="comment-content description"> ' . interdire_scripts(liens_nofollow(safehtml(propre(interdit_html($Pile[$SP]['texte']), $connect, $Pile[0])))) . ' ' . (($t1 = strval(interdire_scripts(safehtml(liens_nofollow(safehtml(propre(interdit_html(calculer_notes()), $connect, $Pile[0])))))))!=='' ? ('<div class="comment-notes">' . $t1 . '</div>') : '') . ' ' . (($t1 = strval(safehtml(vider_url(calculer_url($Pile[$SP]['url_site'],'','url', $connect)))))!=='' ? (( '<p class="hyperlien">' . $l3 . ' : <a href="') . $t1 . ( '" class="spip_out">' . 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 = BOUCLE_doc2html_60e0c13c9758c53afccafd9e653ec749($Cache, $Pile, $doublons, $Numrows, $SP))!=='' ? ('<div class="comment-doc">' . $t1 . '</div>') : '') . ' </div> </div> </li> '); } $iter->free(); } if (defined("_BOUCLE_PROFILER") AND 1000*($timer = (time()+(float)microtime())-$timer) > _BOUCLE_PROFILER) spip_log(intval(1000*$timer)."ms BOUCLE_comments-fils @ squelettes-dist/inclure/forum.html","profiler"._LOG_AVERTISSEMENT); return $t0; } function BOUCLE_commentshtml_60e0c13c9758c53afccafd9e653ec749(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) { static $command = array(); static $connect; $command['connect'] = $connect = ''; $in = array(); if (!(is_array($a = (($Pile[0]['id_rubrique'] ?? null))))) $in[]= $a; else $in = array_merge($in, $a); $in1 = array(); if (!(is_array($a = (($Pile[0]['id_article'] ?? null))))) $in1[]= $a; else $in1 = array_merge($in1, $a); $in2 = array(); if (!(is_array($a = (($Pile[0]['id_breve'] ?? null))))) $in2[]= $a; else $in2 = array_merge($in2, $a); $in3 = array(); if (!(is_array($a = (($Pile[0]['id_syndic'] ?? null))))) $in3[]= $a; else $in3 = array_merge($in3, $a); if (!isset($command['table'])) { $command['table'] = 'forum'; $command['id'] = '_comments'; $command['from'] = array('forum' => 'spip_forum'); $command['type'] = array(); $command['groupby'] = array(); $command['select'] = array("forum.id_forum", "forum.id_thread", "forum.date_heure", "forum.titre", "forum.date_heure AS date", "forum.auteur AS nom", "forum.texte", "forum.url_site", "forum.nom_site"); $command['orderby'] = array('forum.date_heure'); $command['join'] = array(); $command['limit'] = ''; $command['having'] = array(); } $command['where'] = array( quete_condition_statut('forum.statut','publie,prop','publie',''), array('=', 'forum.id_parent', 0), (!is_whereable(($Pile[0]['id_rubrique'] ?? null)) ? '' : ((is_array(($Pile[0]['id_rubrique'] ?? null))) ? sql_in('forum.id_objet', $in) : array('=', 'forum.id_objet', sql_quote(($Pile[0]['id_rubrique'] ?? null), '','bigint NOT NULL DEFAULT \'0\'')))), (!is_whereable(($Pile[0]['id_rubrique'] ?? null)) ? '' : array('=', 'forum.objet', sql_quote('rubrique'))), (!is_whereable(($Pile[0]['id_article'] ?? null)) ? '' : ((is_array(($Pile[0]['id_article'] ?? null))) ? sql_in('forum.id_objet', $in1) : array('=', 'forum.id_objet', sql_quote(($Pile[0]['id_article'] ?? null), '','bigint NOT NULL DEFAULT \'0\'')))), (!is_whereable(($Pile[0]['id_article'] ?? null)) ? '' : array('=', 'forum.objet', sql_quote('article'))), (!is_whereable(($Pile[0]['id_breve'] ?? null)) ? '' : ((is_array(($Pile[0]['id_breve'] ?? null))) ? sql_in('forum.id_objet', $in2) : array('=', 'forum.id_objet', sql_quote(($Pile[0]['id_breve'] ?? null), '','bigint NOT NULL DEFAULT \'0\'')))), (!is_whereable(($Pile[0]['id_breve'] ?? null)) ? '' : array('=', 'forum.objet', sql_quote('breve'))), (!is_whereable(($Pile[0]['id_syndic'] ?? null)) ? '' : ((is_array(($Pile[0]['id_syndic'] ?? null))) ? sql_in('forum.id_objet', $in3) : array('=', 'forum.id_objet', sql_quote(($Pile[0]['id_syndic'] ?? null), '','bigint NOT NULL DEFAULT \'0\'')))), (!is_whereable(($Pile[0]['id_syndic'] ?? null)) ? '' : array('=', 'forum.objet', sql_quote('site')))); if (defined("_BOUCLE_PROFILER")) $timer = time()+(float)microtime(); $t0 = ""; // REQUETE $iter = Spip\Compilateur\Iterateur\Factory::create( "SQL", $command, array('squelettes-dist/inclure/forum.html','html_60e0c13c9758c53afccafd9e653ec749','_comments',11,$GLOBALS['spip_lang']) ); if (!$iter->err()) { // COMPTEUR $Numrows['_comments']['compteur_boucle'] = 0; $Numrows['_comments']['command'] = $command; $Numrows['_comments']['total'] = @intval($iter->count()); $l1 = _T('forum:forum_permalink'); $l2 = _T('public|spip|ecrire:par_auteur'); $l3 = _T('public|spip|ecrire:voir_en_ligne');$SP++; // RESULTATS while ($Pile[$SP]=$iter->fetch()) { $Numrows['_comments']['compteur_boucle']++; $t0 .= ( ' <li class="comment-item comment-fil' . (($t1 = strval(alterner(($Numrows['_comments']['compteur_boucle'] ?? 0),'odd','even')))!=='' ? (' ' . $t1) : '') . (((($Numrows['_comments']['compteur_boucle'] ?? 0) == '1')) ? (' ' . ' ' . 'first') : '') . (((($Numrows['_comments']['compteur_boucle'] ?? 0) == ($Numrows['_comments']['total'] ?? 0))) ? (' ' . ' ' . 'last') : '') . (calcul_exposer($Pile[$SP]['id_forum'], 'id_forum', $Pile[0], 0, 'id_forum', '') ? (' ' . 'on') : '') . '"> <div class="comment hreview"> <a href="#comment' . $Pile[$SP]['id_forum'] . '" name="comment' . $Pile[$SP]['id_forum'] . '" id="comment' . $Pile[$SP]['id_forum'] . '"></a> <a href="#forum' . $Pile[$SP]['id_forum'] . '" name="forum' . $Pile[$SP]['id_forum'] . '" id="forum' . $Pile[$SP]['id_forum'] . '"></a> <p class="comment-meta"> <a rel="self bookmark" href="#forum' . $Pile[$SP]['id_forum'] . '" title="' . $l1 . ' ' . $Pile[$SP]['id_forum'] . '" class="permalink">' . (($t1 = strval(interdire_scripts(((((include_spip('inc/config')?lire_config('forums_titre',null,false):'') != 'non')) ?' ' :''))))!=='' ? ($t1 . ( '<span class="permalink">' . ($Numrows['_comments']['compteur_boucle'] ?? 0) . '.</span> <strong class="comment-titre">' . (($t2 = strval(interdire_scripts(liens_nofollow(safehtml(typo(interdit_html($Pile[$SP]['titre']), "TYPO", $connect, $Pile[0]))))))!=='' ? ($t2 . ', ') : '') . '</strong>')) : '') . ' <small><abbr class="dtreviewed"' . (($t1 = strval(interdire_scripts(date_iso(normaliser_date($Pile[$SP]['date'])))))!=='' ? (' title="' . $t1 . '"') : '') . '>' . interdire_scripts(affdate_jourcourt(normaliser_date($Pile[$SP]['date']))) . (($t1 = strval(interdire_scripts(heures(normaliser_date($Pile[$SP]['date'])))))!=='' ? (', ' . $t1) : '') . (($t1 = strval(interdire_scripts(minutes(normaliser_date($Pile[$SP]['date'])))))!=='' ? (':' . $t1) : '') . '</abbr>' . (($t1 = strval(interdire_scripts(couper(supprimer_numero(typo($Pile[$SP]['nom'], "TYPO", $connect, $Pile[0])),'80'))))!=='' ? (( '<span class="sep">, </span>' . $l2 . ' <span class="">') . $t1 . '</span>') : '') . '</small></a> </p> <div class="comment-content description"> ' . interdire_scripts(liens_nofollow(safehtml(propre(interdit_html($Pile[$SP]['texte']), $connect, $Pile[0])))) . ' ' . (($t1 = strval(interdire_scripts(safehtml(liens_nofollow(safehtml(propre(interdit_html(calculer_notes()), $connect, $Pile[0])))))))!=='' ? ('<div class="comment-notes">' . $t1 . '</div>') : '') . ' ' . (($t1 = strval(safehtml(vider_url(calculer_url($Pile[$SP]['url_site'],'','url', $connect)))))!=='' ? (( '<p class="hyperlien">' . $l3 . ' : <a href="') . $t1 . ( '" class="spip_out">' . 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 = BOUCLE_dochtml_60e0c13c9758c53afccafd9e653ec749($Cache, $Pile, $doublons, $Numrows, $SP))!=='' ? ('<div class="comment-doc">' . $t1 . '</div>') : '') . ' </div> </div> ' . (($t1 = BOUCLE_comments_filshtml_60e0c13c9758c53afccafd9e653ec749($Cache, $Pile, $doublons, $Numrows, $SP))!=='' ? (' <ul class="comments-items"> ' . $t1 . ' </ul> ') : '') . ' </li> '); } $iter->free(); } if (defined("_BOUCLE_PROFILER") AND 1000*($timer = (time()+(float)microtime())-$timer) > _BOUCLE_PROFILER) spip_log(intval(1000*$timer)."ms BOUCLE_comments @ squelettes-dist/inclure/forum.html","profiler"._LOG_AVERTISSEMENT); return $t0; } // // Fonction principale du squelette squelettes-dist/inclure/forum.html // Temps de compilation total: 58.901 ms // function html_60e0c13c9758c53afccafd9e653ec749($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 = ( ' ' . (spip_htmlspecialchars( // refus des forums ? (quete_accepter_forum(($Pile[0]['id_article'] ?? null))=="non" OR ($GLOBALS["meta"]["forums_publics"] == "non" AND quete_accepter_forum(($Pile[0]['id_article'] ?? null)) == "")) ? "" : // sinon: (calcul_parametres_forum($Pile[0],null,null,null). (($lien = (_request("retour") ? _request("retour") : str_replace("&", "&", ''))) ? "&retour=".rawurlencode($lien) : ""))) ? '':'') . ' <a href="#forum" name="forum" id="forum"></a> ' . (($t1 = BOUCLE_commentshtml_60e0c13c9758c53afccafd9e653ec749($Cache, $Pile, $doublons, $Numrows, $SP))!=='' ? (( ' <div class="comments comments-thread comments-thread-1"> <h2>' . _T('public|spip|ecrire:messages_forum') . '</h2> <ul class="comments-items"> ') . $t1 . ' </ul> </div> ') : '') . ' '); return analyse_resultat_skel('html_60e0c13c9758c53afccafd9e653ec749', $Cache, $page, 'squelettes-dist/inclure/forum.html'); }