diff --git a/arbre.php b/arbre.php index 6414ef1..92346bc 100644 --- a/arbre.php +++ b/arbre.php @@ -41,7 +41,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { break; case 'delete_folder': - if ($path && isSecurePath($path)) { + if ($path && isSecurePath($path) && $path !== './liste_albums') { // Empêcher la suppression du dossier racine function rrmdir($dir) { if (is_dir($dir)) { $objects = scandir($dir); @@ -76,167 +76,185 @@ if (!isSecurePath($currentPath)) { } function generateTree($path, $currentPath) { - if (!is_dir($path)) return ''; - - $output = ''; - return $output; + if (!is_dir($path)) return ''; + + $output = ''; + return $output; } ?> - - - Arborescence - ICO - - - + + + Arborescence - ICO + + + -
-

Gestion de l'arborescence

-
- - Retour -
-
+
+

Gestion de l'arborescence

+
+ + Retour +
+
-
- -
- - +
+ +
+ + - -
- - + +
+ + -
- -
-
+
+ +
+
- - + + - - + + - - + + - + window.onclick = function(event) { + if (event.target.classList.contains('modal')) { + closeModal(); + } + } + \ No newline at end of file diff --git a/styles-admin.css b/styles-admin.css index ad4386a..4d2a151 100644 --- a/styles-admin.css +++ b/styles-admin.css @@ -278,6 +278,7 @@ body { } .tree-item-content { + position: relative; display: flex; align-items: center; justify-content: space-between; @@ -298,6 +299,24 @@ body { gap: 0.5rem; } +/* Style spécifique pour le dossier racine */ +.root-folder > .tree-item-content { + background: rgba(33, 150, 243, 0.2); + border-left: 4px solid #2196f3; + margin-bottom: 1rem; + padding: 1rem; +} + +.root-folder > .tree-item-content .folder-icon { + font-size: 1.4rem; +} + +.root-folder > .tree-item-content .tree-link { + font-size: 1.2rem; + font-weight: 500; + color: #ffffff; +} + .folder-icon { font-size: 1.2rem; }