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 : ../plugins/acces_restreint/prive/squelettes/inclure/acces_rubrique.html * Date : Sun, 01 Jan 2023 17:07:27 GMT * Compile : Fri, 15 Mar 2024 08:45:34 GMT * Boucles : _restreint */ function BOUCLE_restreinthtml_a5a9bfdd5d4fffc7862eac22a09b3503(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) { static $command = array(); static $connect; $command['connect'] = $connect = ''; $in = array(); if (!(is_array($a = (interdire_scripts(accesrestreint_zones_rubrique_et_hierarchie(entites_html(table_valeur($Pile[0]??[], (string)'id_rubrique', null),true))))))) $in[]= $a; else $in = array_merge($in, $a); if (!isset($command['table'])) { $command['table'] = 'zones'; $command['id'] = '_restreint'; $command['from'] = array('zones' => 'spip_zones'); $command['type'] = array(); $command['groupby'] = array(); $command['select'] = array("zones.id_zone", "zones.titre"); $command['join'] = array(); $command['limit'] = ''; $command['having'] = array(); } $command['orderby'] = array(((!$zqv=sql_quote($in) OR $zqv==="''") ? 0 : ('FIELD(zones.id_zone,' . $zqv . ')'))); $command['where'] = array(sql_in('zones.id_zone', $in)); if (defined("_BOUCLE_PROFILER")) $timer = time()+(float)microtime(); $t0 = ""; // REQUETE $iter = IterFactory::create( "SQL", $command, array('../plugins/acces_restreint/prive/squelettes/inclure/acces_rubrique.html','html_a5a9bfdd5d4fffc7862eac22a09b3503','_restreint',11,$GLOBALS['spip_lang']) ); if (!$iter->err()) { $Numrows['_restreint']['command'] = $command; $Numrows['_restreint']['total'] = @intval($iter->count()); $l1 = _T('accesrestreint:info_retirer_zone'); $l2 = _T('accesrestreint:confirmer_retirer_rubrique_zone');$SP++; // RESULTATS while ($Pile[$SP]=$iter->fetch()) { $t0 .= ( ' <li class="item"> <a href="' . parametre_url(generer_url_ecrire('zone_edit',( 'id_zone=' . $Pile[$SP]['id_zone'])),'redirect',self()) . '"> n° ' . $Pile[$SP]['id_zone'] . ' : ' . interdire_scripts(supprimer_numero(typo($Pile[$SP]['titre'], "TYPO", $connect, $Pile[0]))) . ' </a> ' . bouton_action(filtre_balise_img_dist(chemin_image((string)'supprimer-12.png'),$l1),invalideur_session($Cache, generer_action_auteur('retirer_zone',(($t3 = strval(invalideur_session($Cache, $Pile[$SP]['id_zone'])))!=='' ? ($t3 . ( '-rubrique-' . invalideur_session($Cache, ($Pile[0]['id_rubrique'] ?? null)))) : ''),invalideur_session($Cache, self()))),'ajax',$l2) . ' </li> '); } $iter->free(); } if (defined("_BOUCLE_PROFILER") AND 1000*($timer = (time()+(float)microtime())-$timer) > _BOUCLE_PROFILER) spip_log(intval(1000*$timer)."ms BOUCLE_restreint @ ../plugins/acces_restreint/prive/squelettes/inclure/acces_rubrique.html","profiler"._LOG_AVERTISSEMENT); return $t0; } // // Fonction principale du squelette ../plugins/acces_restreint/prive/squelettes/inclure/acces_rubrique.html // Temps de compilation total: 1.572 ms // function html_a5a9bfdd5d4fffc7862eac22a09b3503($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_restreinthtml_a5a9bfdd5d4fffc7862eac22a09b3503($Cache, $Pile, $doublons, $Numrows, $SP))!=='' ? (( ' ' . boite_ouvrir((($t4 = strval(filtre_balise_img_dist(chemin_image((string)'zone-24.png'),'','cadre-icone')))!=='' ? (_T('accesrestreint:titre_boite_protegee_oui') . $t4) : ''), 'simple') . ' ' . (($t3 = strval(singulier_ou_pluriel(($Numrows['_restreint']['grand_total'] ?? $Numrows['_restreint']['total'] ?? 0),'accesrestreint:info_rubrique_dans_zone','accesrestreint:info_rubrique_dans_zones')))!=='' ? ('<p>' . $t3 . '</p>') : '') . ' <ul class="liste-items"> ') . $t1 . ( ' </ul> ' . boite_fermer() . ' ')) : (( ' ' . boite_ouvrir((($t3 = strval(filtre_balise_img_dist(chemin_image((string)'cadenasouvert-24.png'),'','cadre-icone')))!=='' ? (_T('accesrestreint:titre_boite_protegee_non') . $t3) : ''), 'simple') . ' <p> <a href="' . parametre_url(parametre_url(generer_url_ecrire('zone_edit','new=oui'),'rubriques',interdire_scripts(entites_html(table_valeur($Pile[0]??[], (string)'id_rubrique', null),true))),'redirect',self()) . '"> ' . _T('accesrestreint:info_lien_action_proteger') . ' </a> </p> ' . boite_fermer() . ' '))) . ' '); return analyse_resultat_skel('html_a5a9bfdd5d4fffc7862eac22a09b3503', $Cache, $page, '../plugins/acces_restreint/prive/squelettes/inclure/acces_rubrique.html'); } ?>