Samx Here
n1udSecurity


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/univers/tmp/cache/skel/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/hednacluml/univers/tmp/cache/skel/html_38d46c5710d70a08f5e3e80e683e3ef9.php
<?php

/*
 * Squelette : ../plugins-dist/urls_etendues/prive/objets/liste/urls.html
 * Date :      Sat, 29 Jun 2024 13:05:35 GMT
 * Compile :   Tue, 13 Aug 2024 14:54:25 GMT
 * Boucles :   _liste_urls
 */ 

function BOUCLE_liste_urlshtml_38d46c5710d70a08f5e3e80e683e3ef9(&$Cache, &$Pile, &$doublons, &$Numrows, $SP) {

	static $command = array();
	static $connect;
	$command['connect'] = $connect = '';
	$in = array();
	if (!(is_array($a = (($Pile[0]['id_objet'] ?? null)))))
		$in[]= $a;
	else $in = array_merge($in, $a);
	$in1 = array();
	if (!(is_array($a = (($Pile[0]['type'] ?? null)))))
		$in1[]= $a;
	else $in1 = array_merge($in1, $a);
	$senstri = '';
	$tri = (($t=(isset($Pile[0]['tri'.'_liste_urls']))?$Pile[0]['tri'.'_liste_urls']:((strncmp('_liste_urls','session',7)==0 AND session_get('tri'.'_liste_urls'))?session_get('tri'.'_liste_urls'):interdire_scripts(entites_html(sinon(table_valeur($Pile[0]??[], (string)'par', null), 'perma'),true))))?tri_protege_champ($t):'');
	if ($tri){
		$senstri = ((intval($t=(isset($Pile[0]['sens'.'_liste_urls']))?$Pile[0]['sens'.'_liste_urls']:((strncmp('_liste_urls','session',7)==0 AND session_get('sens'.'_liste_urls'))?session_get('sens'.'_liste_urls'):(is_array($s=table_valeur($Pile["vars"]??[], (string)'defaut_tri', null))?(isset($s[$st=(($t=(isset($Pile[0]['tri'.'_liste_urls']))?$Pile[0]['tri'.'_liste_urls']:((strncmp('_liste_urls','session',7)==0 AND session_get('tri'.'_liste_urls'))?session_get('tri'.'_liste_urls'):interdire_scripts(entites_html(sinon(table_valeur($Pile[0]??[], (string)'par', null), 'perma'),true))))?tri_protege_champ($t):'')])?$s[$st]:reset($s)):$s)))==-1 OR $t=='inverse')?-1:1);
		$senstri = ($senstri<0)?' DESC':'';
	};
	
	$command['pagination'] = array((isset($Pile[0]['debut_liste_urls']) ? $Pile[0]['debut_liste_urls'] : null), (($a = intval(interdire_scripts(entites_html(sinon(table_valeur($Pile[0]??[], (string)'nb', null), '10'),true)))) ? $a : 10));
	if (!isset($command['table'])) {
		$command['table'] = 'urls';
		$command['id'] = '_liste_urls';
		$command['from'] = array('urls' => 'spip_urls');
		$command['type'] = array();
		$command['groupby'] = array();
		$command['join'] = array();
		$command['limit'] = '';
		$command['having'] = 
			array();
	}
	$command['select'] = array("".tri_champ_select($tri)."",
		"urls.date",
		"urls.perma",
		"urls.url",
		"urls.id_objet",
		"urls.type",
		"urls.id_parent",
		"urls.langue");
	$command['orderby'] = array(tri_champ_order($tri,$command['from'],$senstri), 'urls.date DESC');
	$command['where'] = 
			array((!is_whereable(($Pile[0]['id_objet'] ?? null)) ? '' : ((is_array(($Pile[0]['id_objet'] ?? null))) ? sql_in('urls.id_objet', $in) : 
			array('=', 'urls.id_objet', sql_quote(($Pile[0]['id_objet'] ?? null), '','bigint(21) NOT NULL')))), (!is_whereable(($Pile[0]['type'] ?? null)) ? '' : ((is_array(($Pile[0]['type'] ?? null))) ? sql_in('urls.type', $in1) : 
			array('=', 'urls.type', sql_quote(($Pile[0]['type'] ?? null), '','varchar(25) NOT NULL DEFAULT \'article\'')))), (($zzw = spip_sanitize_from_request(@$Pile[0]["where"],"where","vide")) ? $zzw : ''), 
			array('like', 'urls.url', sql_quote(interdire_scripts(entites_html(sinon(table_valeur($Pile[0]??[], (string)'recherche', null), '%'),true)), '', 'char')));
	if (defined("_BOUCLE_PROFILER")) $timer = time()+(float)microtime();
	$t0 = "";
	// REQUETE
	$iter = Spip\Compilateur\Iterateur\Factory::create(
		"SQL",
		$command,
		array('../plugins-dist/urls_etendues/prive/objets/liste/urls.html','html_38d46c5710d70a08f5e3e80e683e3ef9','_liste_urls',37,$GLOBALS['spip_lang'])
	);
	if (!$iter->err()) {
	
	// COMPTEUR
	$Numrows['_liste_urls']['compteur_boucle'] = 0;
	$Numrows['_liste_urls']['command'] = $command;
	$Numrows['_liste_urls']['total'] = @intval($iter->count());
	$debut_boucle = isset($Pile[0]['debut_liste_urls']) ? $Pile[0]['debut_liste_urls'] : _request('debut_liste_urls');
	if ($debut_boucle && $debut_boucle[0] === '@') {
		$debut_boucle = $Pile[0]['debut_liste_urls'] = quete_debut_pagination('id_parent,url',$Pile[0]['@id_parent,url'] = substr($debut_boucle,1),(($a = intval(interdire_scripts(entites_html(sinon(table_valeur($Pile[0]??[], (string)'nb', null), '10'),true)))) ? $a : 10),$iter);
		$iter->seek(0);
	}
	$debut_boucle = intval($debut_boucle);
	$debut_boucle = (($tout=($debut_boucle == -1))?0:($debut_boucle));
	$debut_boucle = max(0,min($debut_boucle,floor(($Numrows['_liste_urls']['total']-1)/((($a = intval(interdire_scripts(entites_html(sinon(table_valeur($Pile[0]??[], (string)'nb', null), '10'),true)))) ? $a : 10)))*((($a = intval(interdire_scripts(entites_html(sinon(table_valeur($Pile[0]??[], (string)'nb', null), '10'),true)))) ? $a : 10))));
	$debut_boucle = intval($debut_boucle);
	$fin_boucle = min(($tout ? $Numrows['_liste_urls']['total'] : $debut_boucle+(($a = intval(interdire_scripts(entites_html(sinon(table_valeur($Pile[0]??[], (string)'nb', null), '10'),true)))) ? $a : 10) - 1), $Numrows['_liste_urls']['total'] - 1);
	$Numrows['_liste_urls']['grand_total'] = $Numrows['_liste_urls']['total'];
	$Numrows['_liste_urls']["total"] = max(0,$fin_boucle - $debut_boucle + 1);
	if ($debut_boucle>0 AND $debut_boucle < $Numrows['_liste_urls']['grand_total'] AND $iter->seek($debut_boucle,'continue'))
		$Numrows['_liste_urls']['compteur_boucle'] = $debut_boucle;
	
	
	$l1 = _T('urls:bouton_supprimer_url');$SP++;
	// RESULTATS
	while ($Pile[$SP]=$iter->fetch()) {

		$Numrows['_liste_urls']['compteur_boucle']++;
		if ($Numrows['_liste_urls']['compteur_boucle'] <= $debut_boucle) continue;
		if ($Numrows['_liste_urls']['compteur_boucle']-1 > $fin_boucle) break;
		$t0 .= (
'
		<tr class="' .
alterner(($Numrows['_liste_urls']['compteur_boucle'] ?? 0),'row_odd','row_even') .
'">
			<td class=\'perma\'>' .
interdire_scripts(($Pile[$SP]['perma'] ? filtre_balise_img_dist(chemin_image((string)'cadenas-16.png')):'')) .
'</td>
			<td class=\'url principale\'>' .
interdire_scripts($Pile[$SP]['url']) .
'</td>
			<td class=\'objet\'><a href="' .
generer_objet_url($Pile[$SP]['id_objet'],interdire_scripts(typo($Pile[$SP]['type'], "TYPO", $connect, $Pile[0]))) .
'">' .
interdire_scripts(_T(objet_info(typo($Pile[$SP]['type'], "TYPO", $connect, $Pile[0]),'texte_objet'))) .
'&nbsp;' .
$Pile[$SP]['id_objet'] .
'</a></td>
			<td class=\'parent\'>' .
($Pile[$SP]['id_parent'] ? $Pile[$SP]['id_parent']:'') .
'</td>
			<td class=\'langue secondaire\'>' .
interdire_scripts($Pile[$SP]['langue']) .
'</td>
			<td class=\'date secondaire\'>' .
interdire_scripts(affdate_jourcourt(normaliser_date($Pile[$SP]['date']))) .
'</td>
			<td class=\'action\'>' .
(($t1 = strval(invalideur_session($Cache, ((function_exists("autoriser")||include_spip("inc/autoriser"))&&autoriser('modifierurl', interdire_scripts(invalideur_session($Cache, typo($Pile[$SP]['type'], "TYPO", $connect, $Pile[0]))), invalideur_session($Cache, $Pile[$SP]['id_objet']))?" ":""))))!=='' ?
		($t1 . bouton_action(filtre_balise_img_dist(chemin_image((string)'supprimer-16.png'),$l1),invalideur_session($Cache, generer_action_auteur('supprimer_url',(($t4 = strval(invalideur_session($Cache, $Pile[$SP]['id_parent'])))!=='' ?
					($t4 . (	'-' .
				interdire_scripts(invalideur_session($Cache, $Pile[$SP]['url'])))) :
					''),invalideur_session($Cache, self()))),'ajax btn btn_danger')) :
		'') .
'</td>
		</tr>
	');
	}
	$iter->free();
	}
	if (defined("_BOUCLE_PROFILER")
	AND 1000*($timer = (time()+(float)microtime())-$timer) > _BOUCLE_PROFILER)
		spip_log(intval(1000*$timer)."ms BOUCLE_liste_urls @ ../plugins-dist/urls_etendues/prive/objets/liste/urls.html","profiler"._LOG_AVERTISSEMENT);
	return $t0;
}

//
// Fonction principale du squelette ../plugins-dist/urls_etendues/prive/objets/liste/urls.html
// Temps de compilation total: 14.627 ms
//

function html_38d46c5710d70a08f5e3e80e683e3ef9($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 = strval(vide($Pile['vars'][$_zzz=(string)'defaut_tri'] = array('date' => interdire_scripts(entites_html(sinon(table_valeur($Pile[0]??[], (string)'date_sens', null), '-1'),true)), 'url' => '1', 'id_objet' => '1', 'type' => '1
'))))!=='' ?
		($t1 . '
') :
		'') .
'

' .
(((((((defined('_AJAX')?constant('_AJAX'):'')) AND (interdire_scripts(typo(($Pile[0]['type'] ?? null), "TYPO", $connect, $Pile[0])))) ?' ' :'')) AND (($Pile[0]['id_objet'] ?? null)))  ?
		(' ' . (	'
<script type="text/javascript">if (window.jQuery) jQuery(function(){
' .
	(($t2 = strval(interdire_scripts(((urls_is_url_editable(typo(($Pile[0]['type'] ?? null), "TYPO", $connect, $Pile[0]),($Pile[0]['id_objet'] ?? null))) ?' ' :''))))!=='' ?
			($t2 . (	'
	jQuery(\'#url-' .
		interdire_scripts(typo(($Pile[0]['type'] ?? null), "TYPO", $connect, $Pile[0])) .
		'-' .
		($Pile[0]['id_objet'] ?? null) .
		'\').html(\'' .
		texte_script(url_absolue(generer_objet_url(($Pile[0]['id_objet'] ?? null),interdire_scripts(typo(($Pile[0]['type'] ?? null), "TYPO", $connect, $Pile[0])),'','',interdire_scripts(eval('return '.'true'.';'))))) .
		'\');
	jQuery(\'.formulaire_editer_url_objet .reponse_formulaire_ok\').remove();
')) :
			'') .
	(($t2 = strval(interdire_scripts(((urls_is_url_editable(typo(($Pile[0]['type'] ?? null), "TYPO", $connect, $Pile[0]),($Pile[0]['id_objet'] ?? null))) ?'' :' '))))!=='' ?
			($t2 . (	'
	jQuery(\'#url-' .
		interdire_scripts(typo(($Pile[0]['type'] ?? null), "TYPO", $connect, $Pile[0])) .
		'-' .
		($Pile[0]['id_objet'] ?? null) .
		'\').ajaxReload();
')) :
			'') .
	'
})
</script>
')) :
		'') .
'
' .
(($t1 = BOUCLE_liste_urlshtml_38d46c5710d70a08f5e3e80e683e3ef9($Cache, $Pile, $doublons, $Numrows, $SP))!=='' ?
		((	'
' .
		filtre_pagination_dist($Numrows["_liste_urls"]["grand_total"],
 		'_liste_urls',
		isset($Pile[0]['debut_liste_urls'])?$Pile[0]['debut_liste_urls']:intval(_request('debut_liste_urls')),
		(($a = intval(interdire_scripts(entites_html(sinon(table_valeur($Pile[0]??[], (string)'nb', null), '10'),true)))) ? $a : 10), false, '', '', array()) .
		'
<div class="liste-objets urls">
<table class=\'spip liste\'>
' .
		(($t3 = strval(interdire_scripts(sinon(table_valeur($Pile[0]??[], (string)'titre', null), singulier_ou_pluriel(($Numrows['_liste_urls']['grand_total'] ?? $Numrows['_liste_urls']['total'] ?? 0),'urls:info_1_url','urls:info_nb_urls')))))!=='' ?
				('<caption><strong class="caption">' . $t3 . '</strong></caption>') :
				'') .
		'
	<thead>
		<tr class=\'first_row\'>
			<th class=\'perma\' scope=\'col\'>' .
		calculer_balise_tri('perma', inserer_attribut(filtre_balise_img_dist(chemin_image((string)'cadenas-16.png')),'title',_T('urls:label_tri_perma')), 'ajax', '_liste_urls', (($t=(isset($Pile[0]['tri'.'_liste_urls']))?$Pile[0]['tri'.'_liste_urls']:((strncmp('_liste_urls','session',7)==0 AND session_get('tri'.'_liste_urls'))?session_get('tri'.'_liste_urls'):interdire_scripts(entites_html(sinon(table_valeur($Pile[0]??[], (string)'par', null), 'perma'),true))))?tri_protege_champ($t):''), ((intval($t=(isset($Pile[0]['sens'.'_liste_urls']))?$Pile[0]['sens'.'_liste_urls']:((strncmp('_liste_urls','session',7)==0 AND session_get('sens'.'_liste_urls'))?session_get('sens'.'_liste_urls'):(is_array($s=table_valeur($Pile["vars"]??[], (string)'defaut_tri', null))?(isset($s[$st=(($t=(isset($Pile[0]['tri'.'_liste_urls']))?$Pile[0]['tri'.'_liste_urls']:((strncmp('_liste_urls','session',7)==0 AND session_get('tri'.'_liste_urls'))?session_get('tri'.'_liste_urls'):interdire_scripts(entites_html(sinon(table_valeur($Pile[0]??[], (string)'par', null), 'perma'),true))))?tri_protege_champ($t):'')])?$s[$st]:reset($s)):$s)))==-1 OR $t=='inverse')?-1:1), table_valeur($Pile["vars"]??[], (string)'defaut_tri', null), '_liste_urls') .
		'</th>
			<th class=\'url principale\' scope=\'col\'>' .
		calculer_balise_tri('url', _T('urls:label_tri_url'), 'ajax', '_liste_urls', (($t=(isset($Pile[0]['tri'.'_liste_urls']))?$Pile[0]['tri'.'_liste_urls']:((strncmp('_liste_urls','session',7)==0 AND session_get('tri'.'_liste_urls'))?session_get('tri'.'_liste_urls'):interdire_scripts(entites_html(sinon(table_valeur($Pile[0]??[], (string)'par', null), 'perma'),true))))?tri_protege_champ($t):''), ((intval($t=(isset($Pile[0]['sens'.'_liste_urls']))?$Pile[0]['sens'.'_liste_urls']:((strncmp('_liste_urls','session',7)==0 AND session_get('sens'.'_liste_urls'))?session_get('sens'.'_liste_urls'):(is_array($s=table_valeur($Pile["vars"]??[], (string)'defaut_tri', null))?(isset($s[$st=(($t=(isset($Pile[0]['tri'.'_liste_urls']))?$Pile[0]['tri'.'_liste_urls']:((strncmp('_liste_urls','session',7)==0 AND session_get('tri'.'_liste_urls'))?session_get('tri'.'_liste_urls'):interdire_scripts(entites_html(sinon(table_valeur($Pile[0]??[], (string)'par', null), 'perma'),true))))?tri_protege_champ($t):'')])?$s[$st]:reset($s)):$s)))==-1 OR $t=='inverse')?-1:1), table_valeur($Pile["vars"]??[], (string)'defaut_tri', null), '_liste_urls') .
		'</th>
			<th class=\'objet\' scope=\'col\'>' .
		calculer_balise_tri('type', (	_T('urls:info_objet') .
			' ' .
			_T('public|spip|ecrire:info_numero_abbreviation')), 'ajax', '_liste_urls', (($t=(isset($Pile[0]['tri'.'_liste_urls']))?$Pile[0]['tri'.'_liste_urls']:((strncmp('_liste_urls','session',7)==0 AND session_get('tri'.'_liste_urls'))?session_get('tri'.'_liste_urls'):interdire_scripts(entites_html(sinon(table_valeur($Pile[0]??[], (string)'par', null), 'perma'),true))))?tri_protege_champ($t):''), ((intval($t=(isset($Pile[0]['sens'.'_liste_urls']))?$Pile[0]['sens'.'_liste_urls']:((strncmp('_liste_urls','session',7)==0 AND session_get('sens'.'_liste_urls'))?session_get('sens'.'_liste_urls'):(is_array($s=table_valeur($Pile["vars"]??[], (string)'defaut_tri', null))?(isset($s[$st=(($t=(isset($Pile[0]['tri'.'_liste_urls']))?$Pile[0]['tri'.'_liste_urls']:((strncmp('_liste_urls','session',7)==0 AND session_get('tri'.'_liste_urls'))?session_get('tri'.'_liste_urls'):interdire_scripts(entites_html(sinon(table_valeur($Pile[0]??[], (string)'par', null), 'perma'),true))))?tri_protege_champ($t):'')])?$s[$st]:reset($s)):$s)))==-1 OR $t=='inverse')?-1:1), table_valeur($Pile["vars"]??[], (string)'defaut_tri', null), '_liste_urls') .
		'</th>
			<th class=\'parent\' scope=\'col\'>' .
		_T('urls:info_id_parent') .
		'</th>
			<th class=\'langue secondaire\' scope=\'col\'></th>
			<th class=\'date secondaire\' scope=\'col\'>' .
		calculer_balise_tri('date', _T('public|spip|ecrire:date'), 'ajax', '_liste_urls', (($t=(isset($Pile[0]['tri'.'_liste_urls']))?$Pile[0]['tri'.'_liste_urls']:((strncmp('_liste_urls','session',7)==0 AND session_get('tri'.'_liste_urls'))?session_get('tri'.'_liste_urls'):interdire_scripts(entites_html(sinon(table_valeur($Pile[0]??[], (string)'par', null), 'perma'),true))))?tri_protege_champ($t):''), ((intval($t=(isset($Pile[0]['sens'.'_liste_urls']))?$Pile[0]['sens'.'_liste_urls']:((strncmp('_liste_urls','session',7)==0 AND session_get('sens'.'_liste_urls'))?session_get('sens'.'_liste_urls'):(is_array($s=table_valeur($Pile["vars"]??[], (string)'defaut_tri', null))?(isset($s[$st=(($t=(isset($Pile[0]['tri'.'_liste_urls']))?$Pile[0]['tri'.'_liste_urls']:((strncmp('_liste_urls','session',7)==0 AND session_get('tri'.'_liste_urls'))?session_get('tri'.'_liste_urls'):interdire_scripts(entites_html(sinon(table_valeur($Pile[0]??[], (string)'par', null), 'perma'),true))))?tri_protege_champ($t):'')])?$s[$st]:reset($s)):$s)))==-1 OR $t=='inverse')?-1:1), table_valeur($Pile["vars"]??[], (string)'defaut_tri', null), '_liste_urls') .
		'</th>
			<th class="action"></th>
		</tr>
	</thead>
	<tbody>
	') . $t1 . (	'
	</tbody>
</table>
' .
		(($t3 = strval(filtre_pagination_dist($Numrows["_liste_urls"]["grand_total"],
 		'_liste_urls',
		isset($Pile[0]['debut_liste_urls'])?$Pile[0]['debut_liste_urls']:intval(_request('debut_liste_urls')),
		(($a = intval(interdire_scripts(entites_html(sinon(table_valeur($Pile[0]??[], (string)'nb', null), '10'),true)))) ? $a : 10), true, 'prive', '', array())))!=='' ?
				('<nav class=\'pagination\'>' . $t3 . '</nav>') :
				'') .
		'
</div>
')) :
		((($t2 = strval(interdire_scripts(sinon(table_valeur($Pile[0]??[], (string)'sinon', null), ''))))!=='' ?
			('
<div class="liste-objets urls caption-wrap"><strong class="caption">' . $t2 . '</strong></div>
') :
			''))) .
'
');

	return analyse_resultat_skel('html_38d46c5710d70a08f5e3e80e683e3ef9', $Cache, $page, '../plugins-dist/urls_etendues/prive/objets/liste/urls.html');
}

SAMX