diff options
Diffstat (limited to 'controller/installation.php')
-rw-r--r-- | controller/installation.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/controller/installation.php b/controller/installation.php index 7e3863b..e8b1af8 100644 --- a/controller/installation.php +++ b/controller/installation.php | |||
@@ -68,9 +68,12 @@ function installation() | |||
68 | require('view/backup.php'); | 68 | require('view/backup.php'); |
69 | exit(); | 69 | exit(); |
70 | } | 70 | } |
71 | touch('data/index.html'); | 71 | if(!file_exists('data/index.html')) |
72 | chmod('data/index.html', $droitsFichiers); | 72 | { |
73 | 73 | touch('data/index.html'); | |
74 | chmod('data/index.html', $droitsFichiers); | ||
75 | } | ||
76 | |||
74 | $listePages = array('melaine', 'discographie', 'concerts', 'presse', 'ateliers', 'liens', 'peinture', 'archives'); | 77 | $listePages = array('melaine', 'discographie', 'concerts', 'presse', 'ateliers', 'liens', 'peinture', 'archives'); |
75 | foreach ($listePages as $page) | 78 | foreach ($listePages as $page) |
76 | { | 79 | { |