summaryrefslogtreecommitdiff
path: root/controller/installation.php
diff options
context:
space:
mode:
Diffstat (limited to 'controller/installation.php')
-rw-r--r--controller/installation.php8
1 files changed, 7 insertions, 1 deletions
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()
48 // - modifier soit-même les droits du dossier data (777), quoique 111 serait pas mal non plus 48 // - modifier soit-même les droits du dossier data (777), quoique 111 serait pas mal non plus
49 // - 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 49 // - 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
50 50
51 $listePages = array('melaine', 'disco', 'concerts', 'presse', 'ateliers', 'liens', 'peinture', 'archives'); 51 $listePages = array('melaine', 'discographie', 'concerts', 'presse', 'ateliers', 'liens', 'peinture', 'archives');
52 foreach ($listePages as $page) 52 foreach ($listePages as $page)
53 { 53 {
54 if(!file_exists('data/' . $page)) 54 if(!file_exists('data/' . $page))
@@ -56,6 +56,12 @@ function installation()
56 mkdir('data/' . $page); 56 mkdir('data/' . $page);
57 chmod('data/' . $page, 0777); 57 chmod('data/' . $page, 0777);
58 } 58 }
59 // un dossier en plus dans discographie
60 if(!file_exists('data/discographie/json'))
61 {
62 mkdir('data/discographie/json');
63 chmod('data/discographie/json', 0777);
64 }
59 if(!file_exists('data/' . $page . '/html')) 65 if(!file_exists('data/' . $page . '/html'))
60 { 66 {
61 mkdir('data/' . $page . '/html'); 67 mkdir('data/' . $page . '/html');