Server : Apache System : Linux ks5.tuic.fr 6.1.0-18-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.76-1 (2024-02-01) x86_64 User : pragmatice ( 1003) PHP Version : 8.2.24 Disable Function : NONE Directory : /home/pragmatice/public_html/lesite/tmp/cache/skel/ |
<?php /* * Squelette : squelettes/inclure/inc-nb_art_gpe.html * Date : Sun, 01 Jan 2023 17:24:44 GMT * Compile : Wed, 13 Mar 2024 20:16:52 GMT * Boucles : _nbmots, _nb */ function BOUCLE_nbmotshtml_839e2be2cc8696413968574a7caddff3(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) { static $command = array(); static $connect; $command['connect'] = $connect = '';if (!defined('_DIR_PLUGIN_ACCESRESTREINT')) { $link_empty = generer_url_ecrire('admin_vider'); $link_plugin = generer_url_ecrire('admin_plugin'); $message_fr = 'La restriction d\'accès a ete desactivée. <a href="'.$link_plugin.'">Corriger le problème</a> ou <a href="'.$link_empty.'">vider le cache</a> pour supprimer les restrictions.'; $message_en = 'Acces Restriction is now unusable. <a href="'.$link_plugin.'">Correct this trouble</a> or <a href="'.generer_url_ecrire('admin_vider').'">empty the cache</a> to finish restriction removal.'; die($message_fr.'<br />'.$message_en); } if (!isset($command['table'])) { $command['table'] = 'articles'; $command['id'] = '_nbmots'; $command['from'] = array('articles' => 'spip_articles','L1' => 'spip_mots_liens','L2' => 'spip_mots'); $command['type'] = array(); $command['groupby'] = array("articles.id_article"); $command['select'] = array("articles.id_rubrique", "articles.id_article"); $command['orderby'] = array(); $command['join'] = array('L1' => array('articles','id_objet','id_article','L1.objet='.sql_quote('article')), 'L2' => array('L1','id_mot')); $command['limit'] = ''; $command['having'] = array(); } $command['where'] = array( quete_condition_statut('articles.statut','publie,prop,prepa/auteur','publie',''), 'JOIN-L1' => array('=', 'L1.objet', sql_quote('article')), array('=', 'L2.id_groupe', sql_quote($Pile[$SP]['id_groupe'], '','bigint(21) NOT NULL DEFAULT 0')), sql_in('articles.id_article', accesrestreint_liste_objets_exclus('articles', !test_espace_prive()), 'NOT'), sql_in('articles.id_rubrique', accesrestreint_liste_rubriques_exclues(!test_espace_prive()), 'NOT')); if (defined("_BOUCLE_PROFILER")) $timer = time()+(float)microtime(); $t0 = ""; // REQUETE $iter = IterFactory::create( "SQL", $command, array('squelettes/inclure/inc-nb_art_gpe.html','html_839e2be2cc8696413968574a7caddff3','_nbmots',2,$GLOBALS['spip_lang']) ); if (!$iter->err()) { $Numrows['_nbmots']['command'] = $command; $Numrows['_nbmots']['total'] = @intval($iter->count()); $SP++; // RESULTATS $t0 = str_repeat(' ', $Numrows['_nbmots']['total']); $iter->free(); } if (defined("_BOUCLE_PROFILER") AND 1000*($timer = (time()+(float)microtime())-$timer) > _BOUCLE_PROFILER) spip_log(intval(1000*$timer)."ms BOUCLE_nbmots @ squelettes/inclure/inc-nb_art_gpe.html","profiler"._LOG_AVERTISSEMENT); return $t0; } function BOUCLE_nbhtml_839e2be2cc8696413968574a7caddff3(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) { static $command = array(); static $connect; $command['connect'] = $connect = ''; if (!isset($command['table'])) { $command['table'] = 'mots'; $command['id'] = '_nb'; $command['from'] = array('mots' => 'spip_mots'); $command['type'] = array(); $command['groupby'] = array(); $command['select'] = array("mots.id_groupe"); $command['orderby'] = array(); $command['join'] = array(); $command['limit'] = '0,1'; $command['having'] = array(); } $command['where'] = array( array('=', 'mots.id_groupe', sql_quote(($Pile[0]['id_groupe'] ?? null), '','bigint(21) NOT NULL DEFAULT 0'))); if (defined("_BOUCLE_PROFILER")) $timer = time()+(float)microtime(); $t0 = ""; // REQUETE $iter = IterFactory::create( "SQL", $command, array('squelettes/inclure/inc-nb_art_gpe.html','html_839e2be2cc8696413968574a7caddff3','_nb',1,$GLOBALS['spip_lang']) ); if (!$iter->err()) { $SP++; // RESULTATS while ($Pile[$SP]=$iter->fetch()) { $t0 .= ( ' ' . (($t1 = BOUCLE_nbmotshtml_839e2be2cc8696413968574a7caddff3($Cache, $Pile, $doublons, $Numrows, $SP))!=='' ? ($t1 . ( '<span class="info2">(' . ($Numrows['_nbmots']['total'] ?? 0) . ')</span>')) : '') . ' '); } $iter->free(); } if (defined("_BOUCLE_PROFILER") AND 1000*($timer = (time()+(float)microtime())-$timer) > _BOUCLE_PROFILER) spip_log(intval(1000*$timer)."ms BOUCLE_nb @ squelettes/inclure/inc-nb_art_gpe.html","profiler"._LOG_AVERTISSEMENT); return $t0; } // // Fonction principale du squelette squelettes/inclure/inc-nb_art_gpe.html // Temps de compilation total: 0.271 ms // function html_839e2be2cc8696413968574a7caddff3($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_nbhtml_839e2be2cc8696413968574a7caddff3($Cache, $Pile, $doublons, $Numrows, $SP) . ' '); return analyse_resultat_skel('html_839e2be2cc8696413968574a7caddff3', $Cache, $page, 'squelettes/inclure/inc-nb_art_gpe.html'); } ?>