diff options
| author | polo <ordipolo@gmx.fr> | 2022-03-28 03:45:38 +0200 |
|---|---|---|
| committer | polo <ordipolo@gmx.fr> | 2022-03-28 03:45:38 +0200 |
| commit | 4873117ec6aeb86ef169cbf8750123ca24041cdf (patch) | |
| tree | 7f8ec95171e74d03d9cd9a6edc12108ecbd59785 /controller/installation.php | |
| parent | 92a4565f303f5b9f273a8d1eb74d52ac541e89bc (diff) | |
| download | melaine-4873117ec6aeb86ef169cbf8750123ca24041cdf.tar.gz melaine-4873117ec6aeb86ef169cbf8750123ca24041cdf.tar.bz2 melaine-4873117ec6aeb86ef169cbf8750123ca24041cdf.zip | |
upload gros zip AJAX
Diffstat (limited to 'controller/installation.php')
| -rw-r--r-- | controller/installation.php | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/controller/installation.php b/controller/installation.php index 4966611..3b940c8 100644 --- a/controller/installation.php +++ b/controller/installation.php | |||
| @@ -138,13 +138,23 @@ function installation() | |||
| 138 | { | 138 | { |
| 139 | createIndexPHP('data/discographie/images-mini/index.php', $droitsFichiers); | 139 | createIndexPHP('data/discographie/images-mini/index.php', $droitsFichiers); |
| 140 | } | 140 | } |
| 141 | // fichiers temporaires pour upload des grosses archives | ||
| 142 | if(!file_exists('data/tmp')) | ||
| 143 | { | ||
| 144 | mkdir('data/tmp'); | ||
| 145 | chmod('data/tmp', $droitsDossiers); | ||
| 146 | } | ||
| 147 | if(!file_exists('data/tmp/index.php')) | ||
| 148 | { | ||
| 149 | createIndexPHP('data/tmp/index.php', $droitsFichiers); | ||
| 150 | } | ||
| 141 | // le modèle donnera les droits 0666 (octal) aux nouveaux fichiers à l'intérieur des dossiers | 151 | // le modèle donnera les droits 0666 (octal) aux nouveaux fichiers à l'intérieur des dossiers |
| 142 | 152 | ||
| 143 | // créer le melainePHP.zip | 153 | // créer le melainePHP.zip |
| 144 | if(!file_exists("data/melainePHP.zip")) | 154 | if(!file_exists("data/melainePHP.zip")) |
| 145 | { | 155 | { |
| 146 | require('controller/backup.php'); | 156 | require('controller/backup.php'); |
| 147 | creerMelainePHP(); | 157 | createZipMelainePHP(); |
| 148 | } | 158 | } |
| 149 | 159 | ||
| 150 | // création d'un mot de passe si password.txt est vide | 160 | // création d'un mot de passe si password.txt est vide |
