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); ?> -'; - -?> -