From 0d2fd7a0a53c527d3f6f112a149960a52c1082e1 Mon Sep 17 00:00:00 2001 From: polo Date: Tue, 10 Aug 2021 02:11:20 +0200 Subject: disco --- controller/installation.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'controller/installation.php') diff --git a/controller/installation.php b/controller/installation.php index 4d5791a..b15dce1 100644 --- a/controller/installation.php +++ b/controller/installation.php @@ -48,7 +48,7 @@ function installation() // - modifier soit-même les droits du dossier data (777), quoique 111 serait pas mal non plus // - modifier ceux du dossier parent (nom du site) avec son client FTP à la mise en ligne chez l'hébergeur et ensuite remettre tout comme avant - $listePages = array('melaine', 'disco', 'concerts', 'presse', 'ateliers', 'liens', 'peinture', 'archives'); + $listePages = array('melaine', 'discographie', 'concerts', 'presse', 'ateliers', 'liens', 'peinture', 'archives'); foreach ($listePages as $page) { if(!file_exists('data/' . $page)) @@ -56,6 +56,12 @@ function installation() mkdir('data/' . $page); chmod('data/' . $page, 0777); } + // un dossier en plus dans discographie + if(!file_exists('data/discographie/json')) + { + mkdir('data/discographie/json'); + chmod('data/discographie/json', 0777); + } if(!file_exists('data/' . $page . '/html')) { mkdir('data/' . $page . '/html'); -- cgit v1.2.3