┌────────────────────────────────┐ │ ░░░ ░░▓ ░▓▓ ███ ▓▓░ ▓░░ │ │ ~ M O O N ~ │ └────────────────────────────────┘
webm008.cluster103.gra.hosting.ovh.net
LOCATION:
/home/paxmediccp/www/plugins/auto/centre_image/v2.1.6/action
☗ ROOT
↻ REFRESH
✎ EDIT FILE
EDITING: centre_image_forcer.php
<?php if (!defined("_ECRIRE_INC_VERSION")) return; function action_centre_image_forcer() { $fichier = $_GET["url"]; // Gérer le plugin mutualisation si on n'est pas dans le prive if (defined('_DIR_SITE') and (false === strpos('../'.$fichier, _DIR_SITE))){ $fichier = _DIR_SITE.$fichier; } include_spip('centre_image_fonctions'); $fichier = centre_image_preparer_fichier($fichier); // pas de ../ $fichier = str_replace('../', '', $fichier); // image uniquement présente dans _DIR_IMG if (strpos(_DIR_RACINE . $fichier, _DIR_IMG) === 0) { if (file_exists(_DIR_RACINE . $fichier)) { $md5 = md5($fichier); $forcer = sous_repertoire(_DIR_IMG, "cache-centre-image"); $fichier_json = "$forcer$md5.json"; $res = array("x" => $_GET["x"], "y" => $_GET["y"]); @touch(_DIR_RACINE . $fichier); file_put_contents($fichier_json, json_encode($res)); include_spip('inc/invalideur'); suivre_invalideur('centre_image'); } } }
CANCEL
Name
Type
Size
Modified
Actions
↩ ..
DIR
—
—
📄 centre_image_forcer.php
PHP
958 B
2023-02-24 10:27
EDIT