diff --git a/.gitattributes b/.gitattributes index 2f3827b89681c9e91c2d77037b5d343a89de3e2f..0e5e8d3d9add982572aec3a7fae7b402d8f33a22 100644 --- a/.gitattributes +++ b/.gitattributes @@ -737,7 +737,6 @@ prive/spip_pass.html -text prive/spip_style.css -text prive/squelettes/body.html -text prive/squelettes/contenu/page-admin_vider.html -text -prive/squelettes/contenu/page-admin_vider_fonctions.php -text prive/squelettes/contenu/page-breves.html -text prive/squelettes/contenu/page-charte.html -text prive/squelettes/contenu/page-configurer.html -text @@ -751,6 +750,10 @@ prive/squelettes/hierarchie/page-configurer_identite.html -text prive/squelettes/hierarchie/page-configurer_langage.html -text prive/squelettes/hierarchie/page-configurer_preferences.html -text prive/squelettes/hierarchie/page-typo.html -text +prive/squelettes/inclure/admin_vider_cache.html -text +prive/squelettes/inclure/admin_vider_cache_fonctions.php -text +prive/squelettes/inclure/admin_vider_images.html -text +prive/squelettes/inclure/admin_vider_images_fonctions.php -text prive/squelettes/inclure/barre-nav.html -text prive/squelettes/inclure/head.html -text prive/squelettes/inclure/pied.html -text diff --git a/prive/squelettes/contenu/page-admin_vider.html b/prive/squelettes/contenu/page-admin_vider.html index 0abe39344c09f3e58fea8e560f64cfb0cd16f98f..ab3695fea754a02e6e59148909b983ae2ccf84ac 100644 --- a/prive/squelettes/contenu/page-admin_vider.html +++ b/prive/squelettes/contenu/page-admin_vider.html @@ -5,48 +5,6 @@ <p><:texte_suppression_fichiers:></p> <p><:texte_recalcul_page:></p> +<INCLURE{fond=prive/squelettes/inclure/admin_vider_cache,ajax,env}> -#BOITE_OUVRIR{#CHEMIN_IMAGE{cache-24.png}|balise_img{'',cadre-icone}|concat{#VAL{taille_repertoire_cache}|_T}|wrap{'<h3>'},'simple','titrem'} -#SET{taille,#REM|taille_du_cache} - -<p><b> - [(#GET{taille}|intval|>{250000}|non) <:taille_cache_vide:>] - [(#GET{taille}|intval|>{250000}|oui) - #SET{taille,#GET{taille}|taille_en_octets} - <:taille_cache_octets{octets=#GET{taille}}:> - ] -</b></p> - -#SET{quota,#EVAL{$GLOBALS}|table_valeur{quota_cache}} -<p> - [(#GET{quota}|non) <:taille_cache_infinie:>] - [(#GET{quota}|oui) - #SET{quota,#GET{quota}|mult{1024}|mult{1024}|taille_en_octets} - <:taille_cache_maxi{octets=#GET{quota}}:> - ] - (<:cache_modifiable_webmestre:>) -</p> - -#SET{cache_inhib,#CONFIG{cache_inhib}|sinon{0}|>{#REM|time}|oui} - -[(#GET{cache_inhib}|oui) -<div><strong>Le cache est temporairement desactivé.</strong> [(#BOUTON_ACTION{Reactiver le cache,#URL_ACTION_AUTEUR{purger,reactive_cache,#SELF},ajax link})] -</div> -] -[(#GET{cache_inhib}|non) -<div>[(#BOUTON_ACTION{Desactiver temporairement le cache,#URL_ACTION_AUTEUR{purger,inhibe_cache,#SELF},ajax link})] -</div> -] - -#BOITE_PIED - [(#BOUTON_ACTION{<:bouton_vider_cache:>,#URL_ACTION_AUTEUR{purger,cache,#SELF},ajax})] -#BOITE_FERMER - - -#BOITE_OUVRIR{#CHEMIN_IMAGE{image-24.png}|balise_img{'',cadre-icone}|concat{#VAL{info_images_auto}|_T}|wrap{'<h3>'},'simple','titrem'} - -[<p>(#REM|afficher_taille_cache_vignettes{})</p>] - -#BOITE_PIED - [(#BOUTON_ACTION{<:bouton_vider_cache:>,#URL_ACTION_AUTEUR{purger,vignettes,#SELF},ajax})] -#BOITE_FERMER +<INCLURE{fond=prive/squelettes/inclure/admin_vider_images,ajax,env}> diff --git a/prive/squelettes/inclure/admin_vider_cache.html b/prive/squelettes/inclure/admin_vider_cache.html new file mode 100644 index 0000000000000000000000000000000000000000..6ccf9459236b597c8b82ba767970202d93bdaaf5 --- /dev/null +++ b/prive/squelettes/inclure/admin_vider_cache.html @@ -0,0 +1,35 @@ +#BOITE_OUVRIR{#CHEMIN_IMAGE{cache-24.png}|balise_img{'',cadre-icone}|concat{#VAL{taille_repertoire_cache}|_T}|wrap{'<h3>'},'simple','titrem'} +#SET{taille,#REM|taille_du_cache} + +<p><b> + [(#GET{taille}|intval|>{250000}|non) <:taille_cache_vide:>] + [(#GET{taille}|intval|>{250000}|oui) + #SET{taille,#GET{taille}|taille_en_octets} + <:taille_cache_octets{octets=#GET{taille}}:> + ] +</b></p> + +#SET{quota,#EVAL{$GLOBALS}|table_valeur{quota_cache}} +<p> + [(#GET{quota}|non) <:taille_cache_infinie:>] + [(#GET{quota}|oui) + #SET{quota,#GET{quota}|mult{1024}|mult{1024}|taille_en_octets} + <:taille_cache_maxi{octets=#GET{quota}}:> + ] + (<:cache_modifiable_webmestre:>) +</p> + +#SET{cache_inhib,#CONFIG{cache_inhib}|sinon{0}|>{#REM|time}|oui} + +[(#GET{cache_inhib}|oui) +<div><strong>Le cache est temporairement desactivé.</strong> [(#BOUTON_ACTION{Reactiver le cache,#URL_ACTION_AUTEUR{purger,reactive_cache,#SELF},ajax link})] +</div> +] +[(#GET{cache_inhib}|non) +<div>[(#BOUTON_ACTION{Desactiver temporairement le cache,#URL_ACTION_AUTEUR{purger,inhibe_cache,#SELF},ajax link})] +</div> +] + +#BOITE_PIED + [(#BOUTON_ACTION{<:bouton_vider_cache:>,#URL_ACTION_AUTEUR{purger,cache,#SELF},ajax})] +#BOITE_FERMER diff --git a/prive/squelettes/inclure/admin_vider_cache_fonctions.php b/prive/squelettes/inclure/admin_vider_cache_fonctions.php new file mode 100644 index 0000000000000000000000000000000000000000..d2f442214f28647b7b99b557129790fe56b8d71d --- /dev/null +++ b/prive/squelettes/inclure/admin_vider_cache_fonctions.php @@ -0,0 +1,17 @@ +<?php + +/***************************************************************************\ + * SPIP, Systeme de publication pour l'internet * + * * + * Copyright (c) 2001-2009 * + * Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James * + * * + * Ce programme est un logiciel libre distribue sous licence GNU/GPL. * + * Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne. * +\***************************************************************************/ + +if (!defined("_ECRIRE_INC_VERSION")) return; + +include_spip('inc/invalideur'); + +?> \ No newline at end of file diff --git a/prive/squelettes/inclure/admin_vider_images.html b/prive/squelettes/inclure/admin_vider_images.html new file mode 100644 index 0000000000000000000000000000000000000000..cecb497e09e4d745244090c66b3c3314b8dae85d --- /dev/null +++ b/prive/squelettes/inclure/admin_vider_images.html @@ -0,0 +1,7 @@ +#BOITE_OUVRIR{#CHEMIN_IMAGE{image-24.png}|balise_img{'',cadre-icone}|concat{#VAL{info_images_auto}|_T}|wrap{'<h3>'},'simple','titrem'} + +[<p>(#REM|afficher_taille_cache_vignettes{})</p>] + +#BOITE_PIED + [(#BOUTON_ACTION{<:bouton_vider_cache:>,#URL_ACTION_AUTEUR{purger,vignettes,#SELF},ajax})] +#BOITE_FERMER diff --git a/prive/squelettes/contenu/page-admin_vider_fonctions.php b/prive/squelettes/inclure/admin_vider_images_fonctions.php similarity index 97% rename from prive/squelettes/contenu/page-admin_vider_fonctions.php rename to prive/squelettes/inclure/admin_vider_images_fonctions.php index cd06f3ccd52f217f25feaf07910e8c42f18061dc..3fe421134fe7fd485b43214d2144406afa8cbd41 100644 --- a/prive/squelettes/contenu/page-admin_vider_fonctions.php +++ b/prive/squelettes/inclure/admin_vider_images_fonctions.php @@ -12,8 +12,6 @@ if (!defined("_ECRIRE_INC_VERSION")) return; -include_spip('inc/invalideur'); - // http://doc.spip.org/@calculer_taille_dossier function calculer_taille_dossier ($dir) { $handle = @opendir($dir);