From 54022fae6ddb824d173e8c6e7e37d48b5775db94 Mon Sep 17 00:00:00 2001 From: Daniel Intrieri <119604034+Twindrillss@users.noreply.github.com> Date: Mon, 29 Jan 2024 10:57:30 +0100 Subject: [PATCH] Update listafile.php aggiustato url dinamico --- listafile.php | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/listafile.php b/listafile.php index 75fd7af..cb23c83 100644 --- a/listafile.php +++ b/listafile.php @@ -53,7 +53,11 @@ display:none; global $wpdb; //impostazione variabile per tutte le operazioni di lettura/scrittura su directory -$target_dir = $_SERVER['DOCUMENT_ROOT']."/wp-content/plugins/ieimenupdf/menu/"; + +$cartelle = dirname(__FILE__); +$ultimacartella = basename($cartelle); + +$target_dir = $_SERVER['DOCUMENT_ROOT']."/wp-content/plugins/".$ultimacartella."/menu/"; ?> @@ -157,12 +161,6 @@ $results = $wpdb->get_results($query); ?> -'; - -?> -