File "html_3032ce4c8cbe140fe4024c9a040b6e58.php"
Full Path: /home/spiraleeea/www/spirale/tmp/cache/skel/html_3032ce4c8cbe140fe4024c9a040b6e58.php
File size: 3.24 KB
MIME-type: text/x-php
Charset: utf-8
<?php
/*
* Squelette : plugins-dist/medias/modeles/file_emb.html
* Date : Thu, 20 Aug 2026 13:47:02 GMT
* Compile : Thu, 27 Aug 2026 06:34:28 GMT
* Boucles : _ext
*/
function BOUCLE_exthtml_3032ce4c8cbe140fe4024c9a040b6e58(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {
static $command = array();
static $connect;
$command['connect'] = $connect = '';
if (!isset($command['table'])) {
$command['table'] = 'documents';
$command['id'] = '_ext';
$command['from'] = array('documents' => 'spip_documents','L1' => 'spip_types_documents');
$command['type'] = array();
$command['groupby'] = array();
$command['select'] = array("documents.id_document",
"documents.extension",
"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.id_document', sql_quote(retablir_echappements_modeles(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')));
if (defined("_BOUCLE_PROFILER")) $timer = time()+(float)microtime();
$t0 = "";
// REQUETE
$iter = Spip\Compilateur\Iterateur\Factory::create(
"SQL",
$command,
array('plugins-dist/medias/modeles/file_emb.html','html_3032ce4c8cbe140fe4024c9a040b6e58','_ext',1,$GLOBALS['spip_lang'])
);
if (!$iter->err()) {
$SP++;
// RESULTATS
while ($Pile[$SP]=$iter->fetch()) {
$t0 .= (
'
' .
'<'.'?php echo recuperer_fond( ' . argumenter_squelette(( 'modeles/' .
retablir_echappements_modeles(interdire_scripts(medias_trouver_modele_emb($Pile[$SP]['extension'],(interdire_scripts(medias_mime_type_document($Pile[$SP]['id_document'], $Pile[$SP]['extension']))),'file'))))) . ', array_merge('.safe_export_env($Pile[0]).',[\'id\' => ' . argumenter_squelette(retablir_echappements_modeles($Pile[$SP]['id_document'])) . ',
\'emb\' => ' . argumenter_squelette(' ') . ',
\'lang\' => ' . argumenter_squelette($GLOBALS["spip_lang"]) . ']), array("compil"=>array(\'plugins-dist/medias/modeles/file_emb.html\',\'html_3032ce4c8cbe140fe4024c9a040b6e58\',\'\',2,$GLOBALS[\'spip_lang\'])), _request(\'connect\') ?? \'\');
?'.'>
');
}
$iter->free();
}
if (defined("_BOUCLE_PROFILER")
AND 1000*($timer = (time()+(float)microtime())-$timer) > _BOUCLE_PROFILER)
spip_log(intval(1000*$timer)."ms BOUCLE_ext @ plugins-dist/medias/modeles/file_emb.html","profiler"._LOG_AVERTISSEMENT);
return $t0;
}
//
// Fonction principale du squelette plugins-dist/medias/modeles/file_emb.html
// Temps de compilation total: 3.183 ms
//
function html_3032ce4c8cbe140fe4024c9a040b6e58($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_exthtml_3032ce4c8cbe140fe4024c9a040b6e58($Cache, $Pile, $doublons, $Numrows, $SP) .
'
');
return analyse_resultat_skel('html_3032ce4c8cbe140fe4024c9a040b6e58', $Cache, $page, 'plugins-dist/medias/modeles/file_emb.html');
}