![]() 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 : plugins-dist/medias/modeles/image.html * Date : Thu, 10 Oct 2024 10:20:27 GMT * Compile : Thu, 10 Oct 2024 14:55:39 GMT * Boucles : _image */ function BOUCLE_imagehtml_7acecfff067c3c19aac9415f296d85c5(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) { static $command = array(); static $connect; $command['connect'] = $connect = ''; $in = array(); if (!(is_array($a = (($Pile[0]['mode'] ?? null))))) $in[]= $a; else $in = array_merge($in, $a); if (!isset($command['table'])) { $command['table'] = 'documents'; $command['id'] = '_image'; $command['from'] = array('documents' => 'spip_documents','L1' => 'spip_types_documents'); $command['type'] = array(); $command['groupby'] = array(); $command['select'] = array("documents.media", "documents.extension", "documents.largeur", "documents.hauteur", "documents.id_document", "documents.fichier", "documents.alt", "L1.mime_type"); $command['orderby'] = array(); $command['join'] = array('L1' => array('documents','extension')); $command['limit'] = ''; $command['having'] = array(); } $command['where'] = array( array('(documents.taille > 0 OR documents.distant=\'oui\')'), array('=', 'documents.media', "'image'"), array('=', 'documents.id_document', sql_quote(interdire_scripts(entites_html(sinon(table_valeur($Pile[0]??[], (string)'id', null), interdire_scripts(entites_html(table_valeur($Pile[0]??[], (string)'id_document', null),true))),true)), '', 'bigint NOT NULL AUTO_INCREMENT')), array('=', 'L1.inclus', "'image'"), (!is_whereable(($Pile[0]['mode'] ?? null)) ? '' : ((is_array(($Pile[0]['mode'] ?? null))) ? sql_in('documents.mode', $in) : array('=', 'documents.mode', sql_quote(($Pile[0]['mode'] ?? null), '','varchar(10) NOT NULL DEFAULT \'document\''))))); if (defined("_BOUCLE_PROFILER")) $timer = time()+(float)microtime(); $t0 = ""; // REQUETE $iter = Spip\Compilateur\Iterateur\Factory::create( "SQL", $command, array('plugins-dist/medias/modeles/image.html','html_7acecfff067c3c19aac9415f296d85c5','_image',6,$GLOBALS['spip_lang']) ); if (!$iter->err()) { $SP++; // RESULTATS while ($Pile[$SP]=$iter->fetch()) { $t0 .= ( ' ' . vide($Pile['vars'][$_zzz=(string)'autolien'] = interdire_scripts(((media_determine_autolien($Pile[$SP]['media'],interdire_scripts($Pile[$SP]['extension']),interdire_scripts($Pile[$SP]['largeur']),interdire_scripts($Pile[$SP]['hauteur']),$Pile[$SP]['id_document'])) ?' ' :''))) . ' ' . vide($Pile['vars'][$_zzz=(string)'image'] = interdire_scripts(((((entites_html(table_valeur($Pile[0]??[], (string)'largeur', null),true)) OR (interdire_scripts(entites_html(table_valeur($Pile[0]??[], (string)'hauteur', null),true)))) ?' ' :'') ? interdire_scripts(filtrer('image_graver',filtrer('image_reduire',get_spip_doc($Pile[$SP]['fichier']),interdire_scripts(entites_html(sinon(table_valeur($Pile[0]??[], (string)'largeur', null), '10000'),true)),interdire_scripts(entites_html(sinon(table_valeur($Pile[0]??[], (string)'hauteur', null), '10000'),true))))):(($t3 = strval(attribut_url(vider_url(urlencode_1738(generer_objet_url($Pile[$SP]['id_document'], 'document', '', '', true))))))!=='' ? ('<img src=\'' . $t3 . ( '\'' . (($t4 = strval(interdire_scripts(attribut_html($Pile[$SP]['largeur']))))!=='' ? (' width="' . $t4 . '"') : '') . (($t4 = strval(interdire_scripts(attribut_html($Pile[$SP]['hauteur']))))!=='' ? (' height="' . $t4 . '"') : '') . '/>')) : '')))) . ' ' . vide($Pile['vars'][$_zzz=(string)'image'] = inserer_attribut(table_valeur($Pile["vars"]??[], (string)'image', null),'alt',interdire_scripts(((($a = entites_html(sinon(table_valeur($Pile[0]??[], (string)'alt', null), interdire_scripts($Pile[$SP]['alt'])),true)) OR (is_string($a) AND strlen($a))) ? $a : '')))) . ' ' . vide($Pile['vars'][$_zzz=(string)'legende'] = trim(recuperer_fond( 'modeles/document_legende' , array_merge($Pile[0],array()), array('compil'=>array('plugins-dist/medias/modeles/image.html','html_7acecfff067c3c19aac9415f296d85c5','_image',0,$GLOBALS['spip_lang'])), _request('connect') ?? ''))) . ' <div class="' . (($t1 = strval(filtre_medias_modele_document_standard_classes_dist($Pile,$Pile[$SP]['id_document'],'image')))!=='' ? ($t1 . ' ') : '') . 'spip_lien_ok"' . (($t1 = strval(filtre_medias_modele_document_standard_attributs_dist($Pile,$Pile[$SP]['id_document'],'image')))!=='' ? (' ' . $t1 . ' ') : '') . '> <figure class="spip_doc_inner"> ' . (($t1 = strval(interdire_scripts(attribut_url(entites_html(table_valeur($Pile[0]??[], (string)'lien', null),true)))))!=='' ? ('<a href="' . $t1 . ( '"' . (($t2 = strval(interdire_scripts(attribut_html(trim(concat(entites_html(table_valeur($Pile[0]??[], (string)'lien_class', null),true),' spip_doc_lien'))))))!=='' ? (' class="' . $t2 . '"') : '') . '>')) : '') . ' ' . (($t1 = strval(interdire_scripts((((((entites_html(table_valeur($Pile[0]??[], (string)'lien', null),true)) ?'' :' ')) AND (table_valeur($Pile["vars"]??[], (string)'autolien', null))) ?' ' :''))))!=='' ? ($t1 . ( '<a href="' . attribut_url(vider_url(urlencode_1738(generer_objet_url($Pile[$SP]['id_document'], 'document', '', '', true)))) . '" class="spip_doc_lien mediabox" type="' . interdire_scripts($Pile[$SP]['mime_type']) . '">')) : '') . ' ' . table_valeur($Pile["vars"]??[], (string)'image', null) . interdire_scripts(((((entites_html(table_valeur($Pile[0]??[], (string)'lien', null),true)) OR (table_valeur($Pile["vars"]??[], (string)'autolien', null))) ?' ' :'') ? '</a>':'')) . ' ' . table_valeur($Pile["vars"]??[], (string)'legende', null) . '</figure> </div> '); } $iter->free(); } if (defined("_BOUCLE_PROFILER") AND 1000*($timer = (time()+(float)microtime())-$timer) > _BOUCLE_PROFILER) spip_log(intval(1000*$timer)."ms BOUCLE_image @ plugins-dist/medias/modeles/image.html","profiler"._LOG_AVERTISSEMENT); return $t0; } // // Fonction principale du squelette plugins-dist/medias/modeles/image.html // Temps de compilation total: 16.803 ms // function html_7acecfff067c3c19aac9415f296d85c5($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_imagehtml_7acecfff067c3c19aac9415f296d85c5($Cache, $Pile, $doublons, $Numrows, $SP))!=='' ? $t1 : (( ' ' . '<'.'?php echo recuperer_fond( ' . argumenter_squelette('modeles/file') . ', array_merge('.var_export($Pile[0],1).',array(\'lang\' => ' . argumenter_squelette($GLOBALS["spip_lang"]) . ')), array("compil"=>array(\'plugins-dist/medias/modeles/image.html\',\'html_7acecfff067c3c19aac9415f296d85c5\',\'\',26,$GLOBALS[\'spip_lang\'])), _request(\'connect\') ?? \'\'); ?'.'> '))) . ' '); return analyse_resultat_skel('html_7acecfff067c3c19aac9415f296d85c5', $Cache, $page, 'plugins-dist/medias/modeles/image.html'); }