Browse Source

Livraison des fichiers du thème exemple dans une archibe. Dossiers de site vides.

10603
fredtempez 1 year ago
parent
commit
5b5771f973
  1. 4
      CHANGES.md
  2. 2
      README.md
  3. 2
      core/core.php
  4. 40
      core/module/install/install.php
  5. 0
      core/module/install/ressource/favicon.ico
  6. 0
      core/module/install/ressource/faviconDark.ico
  7. BIN
      core/module/install/ressource/file/source/banniere960.jpg
  8. BIN
      core/module/install/ressource/file/thumb/banniere960.jpg
  9. BIN
      core/module/install/ressource/files.tar.gz
  10. BIN
      site/file/source/banniere/zwii_banniere-1170px.jpg
  11. BIN
      site/file/source/banniere/zwii_banniere-750px.jpg
  12. BIN
      site/file/source/banniere/zwii_banniere-960px.jpg
  13. BIN
      site/file/source/banniere/zwii_banniere_norvege-1170px.jpg
  14. BIN
      site/file/source/banniere/zwii_banniere_norvege-750px.jpg
  15. BIN
      site/file/source/banniere/zwii_banniere_norvege-960px.jpg
  16. BIN
      site/file/source/favicon.ico
  17. BIN
      site/file/source/faviconDark.ico
  18. BIN
      site/file/source/galerie/landscape/desert.jpg
  19. BIN
      site/file/source/galerie/landscape/iceberg.jpg
  20. BIN
      site/file/source/galerie/landscape/meadow.jpg
  21. BIN
      site/file/source/galerie/space/cosmos.jpg
  22. BIN
      site/file/source/galerie/space/earth.jpg
  23. BIN
      site/file/source/galerie/space/nebula.jpg
  24. BIN
      site/file/source/icones/home_black.png
  25. BIN
      site/file/source/icones/home_blue.png
  26. BIN
      site/file/source/icones/loupe.png
  27. BIN
      site/file/thumb/banniere/mini_zwii_banniere-1170px.jpg
  28. BIN
      site/file/thumb/banniere/mini_zwii_banniere-750px.jpg
  29. BIN
      site/file/thumb/banniere/mini_zwii_banniere-960px.jpg
  30. BIN
      site/file/thumb/banniere/mini_zwii_banniere_norvege-1170px.jpg
  31. BIN
      site/file/thumb/banniere/mini_zwii_banniere_norvege-750px.jpg
  32. BIN
      site/file/thumb/banniere/mini_zwii_banniere_norvege-960px.jpg
  33. BIN
      site/file/thumb/banniere/zwii_banniere-1170px.jpg
  34. BIN
      site/file/thumb/banniere/zwii_banniere-750px.jpg
  35. BIN
      site/file/thumb/banniere/zwii_banniere-960px.jpg
  36. BIN
      site/file/thumb/banniere/zwii_banniere_norvege-1170px.jpg
  37. BIN
      site/file/thumb/banniere/zwii_banniere_norvege-750px.jpg
  38. BIN
      site/file/thumb/banniere/zwii_banniere_norvege-960px.jpg
  39. BIN
      site/file/thumb/galerie/landscape/desert.jpg
  40. BIN
      site/file/thumb/galerie/landscape/iceberg.jpg
  41. BIN
      site/file/thumb/galerie/landscape/meadow.jpg
  42. BIN
      site/file/thumb/galerie/landscape/mini_desert.jpg
  43. BIN
      site/file/thumb/galerie/landscape/mini_iceberg.jpg
  44. BIN
      site/file/thumb/galerie/landscape/mini_meadow.jpg
  45. BIN
      site/file/thumb/galerie/space/cosmos.jpg
  46. BIN
      site/file/thumb/galerie/space/earth.jpg
  47. BIN
      site/file/thumb/galerie/space/mini_cosmos.jpg
  48. BIN
      site/file/thumb/galerie/space/mini_earth.jpg
  49. BIN
      site/file/thumb/galerie/space/mini_nebula.jpg
  50. BIN
      site/file/thumb/galerie/space/nebula.jpg
  51. BIN
      site/file/thumb/icones/home_black.png
  52. BIN
      site/file/thumb/icones/home_blue.png
  53. BIN
      site/file/thumb/icones/loupe.png

4
CHANGES.md

@ -1,5 +1,9 @@
# Changelog
## version 10.6.03
- Modification :
- Livraison des fichiers de thème lors d'une primo installation avec site de test dans une archive. Désormais, le dossier site ne contiendra que les fichiers de sécurité htaccess. Cette procédure permettra de ne plus différencier les archives d'installation et de mise à jour.
## version 10.6.02
- Correction :
- Débordement lors du téléchargement des fichiers journaux.

2
README.md

@ -1,5 +1,5 @@
# ZwiiCMS 10.6.02
# ZwiiCMS 10.6.03
Zwii est un CMS sans base de données (flat-file) qui permet de créer et gérer facilement un site web sans aucune connaissance en programmation.

2
core/core.php

@ -44,7 +44,7 @@ class common {
const ACCESS_TIMER = 1800;
// Numéro de version
const ZWII_VERSION = '10.6.02';
const ZWII_VERSION = '10.6.03';
const ZWII_UPDATE_CHANNEL = "v10";
public static $actions = [];

40
core/module/install/install.php

@ -81,26 +81,36 @@ class install extends common {
'<strong>Identifiant du compte :</strong> ' . $this->getInput('installId') . '<br>',
null
);
// Créer les dossiers
if (!is_dir(self::FILE_DIR.'source/banniere/')) {
mkdir(self::FILE_DIR.'source/banniere/');}
if (!is_dir(self::FILE_DIR.'thumb/banniere/')) {
mkdir(self::FILE_DIR.'thumb/banniere/');
}
// Copier les fichiers
copy('core/module/install/ressource/file/source/banniere960.jpg',self::FILE_DIR.'source/banniere/banniere960.jpg');
copy('core/module/install/ressource/file/thumb/banniere960.jpg',self::FILE_DIR.'thumb/banniere/banniere960.jpg');
// Copie des icônes
copy('core/module/install/ressource/file/source/favicon.ico',self::FILE_DIR.'source/favicon.ico');
copy('core/module/install/ressource/file/source/faviconDark.ico',self::FILE_DIR.'source/faviconDark.ico');
// Configure certaines données par défaut
// Installation du site de test
if ($this->getInput('installDefaultData',helper::FILTER_BOOLEAN) === FALSE) {
$this->initData('page','fr',true);
$this->initData('module','fr',true);
$this->setData(['module', 'blog', 'posts', 'mon-premier-article', 'userId', $userId]);
$this->setData(['module', 'blog', 'posts', 'mon-deuxieme-article', 'userId', $userId]);
$this->setData(['module', 'blog', 'posts', 'mon-troisieme-article', 'userId', $userId]);
// Décompression et installation
try {
// Décompression dans le dossier de fichier temporaires
if (file_exists(self::TEMP_DIR . 'files.tar.gz')) {
unlink(self::TEMP_DIR . 'files.tar.gz');
}
if (file_exists(self::TEMP_DIR . 'files.tar')) {
unlink(self::TEMP_DIR . 'files.tar');
}
copy('core/module/install/ressource/files.tar.gz', self::TEMP_DIR . 'files.tar.gz');
$pharData = new PharData(self::TEMP_DIR . 'files.tar.gz');
$pharData->decompress();
// Installation
$pharData->extractTo(__DIR__ . '/../../../', null, true);
} catch (Exception $e) {
$success = $e->getMessage();
}
unlink(self::TEMP_DIR . 'files.tar.gz');
unlink(self::TEMP_DIR . 'files.tar');
}
// Copie des favicons
copy('core/module/install/ressource/favicon.ico', self::FILE_DIR . 'source/favicon.ico');
copy('core/module/install/ressource/faviconDark.ico', self::FILE_DIR . 'source/faviconDark.ico');
// Stocker le dossier d'installation
$this->setData(['core', 'baseUrl', helper::baseUrl(false,false) ]);
// Créer sitemap
@ -108,8 +118,8 @@ class install extends common {
// Valeurs en sortie
$this->addOutput([
'redirect' => helper::baseUrl(false),
'notification' => ($sent === true ? 'Installation terminée' : $sent),
'state' => ($sent === true ? true : null)
'notification' => $sent === true ? 'Installation terminée' : $sent,
'state' => ($sent === true && $success === true) ? true : null
]);
}
}

0
core/module/install/ressource/file/source/favicon.ico → core/module/install/ressource/favicon.ico

Before

Width:  |  Height:  |  Size: 5.3 KiB

After

Width:  |  Height:  |  Size: 5.3 KiB

0
core/module/install/ressource/file/source/faviconDark.ico → core/module/install/ressource/faviconDark.ico

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
core/module/install/ressource/file/source/banniere960.jpg

Binary file not shown.

Before

Width:  |  Height:  |  Size: 100 KiB

BIN
core/module/install/ressource/file/thumb/banniere960.jpg

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.3 KiB

BIN
core/module/install/ressource/files.tar.gz

Binary file not shown.

BIN
site/file/source/banniere/zwii_banniere-1170px.jpg

Binary file not shown.

Before

Width:  |  Height:  |  Size: 46 KiB

BIN
site/file/source/banniere/zwii_banniere-750px.jpg

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

BIN
site/file/source/banniere/zwii_banniere-960px.jpg

Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

BIN
site/file/source/banniere/zwii_banniere_norvege-1170px.jpg

Binary file not shown.

Before

Width:  |  Height:  |  Size: 62 KiB

BIN
site/file/source/banniere/zwii_banniere_norvege-750px.jpg

Binary file not shown.

Before

Width:  |  Height:  |  Size: 31 KiB

BIN
site/file/source/banniere/zwii_banniere_norvege-960px.jpg

Binary file not shown.

Before

Width:  |  Height:  |  Size: 45 KiB

BIN
site/file/source/favicon.ico

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.3 KiB

BIN
site/file/source/faviconDark.ico

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

BIN
site/file/source/galerie/landscape/desert.jpg

Binary file not shown.

Before

Width:  |  Height:  |  Size: 114 KiB

BIN
site/file/source/galerie/landscape/iceberg.jpg

Binary file not shown.

Before

Width:  |  Height:  |  Size: 184 KiB

BIN
site/file/source/galerie/landscape/meadow.jpg

Binary file not shown.

Before

Width:  |  Height:  |  Size: 145 KiB

BIN
site/file/source/galerie/space/cosmos.jpg

Binary file not shown.

Before

Width:  |  Height:  |  Size: 146 KiB

BIN
site/file/source/galerie/space/earth.jpg

Binary file not shown.

Before

Width:  |  Height:  |  Size: 144 KiB

BIN
site/file/source/galerie/space/nebula.jpg

Binary file not shown.

Before

Width:  |  Height:  |  Size: 107 KiB

BIN
site/file/source/icones/home_black.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 373 B

BIN
site/file/source/icones/home_blue.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 937 B

BIN
site/file/source/icones/loupe.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.9 KiB

BIN
site/file/thumb/banniere/mini_zwii_banniere-1170px.jpg

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

BIN
site/file/thumb/banniere/mini_zwii_banniere-750px.jpg

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

BIN
site/file/thumb/banniere/mini_zwii_banniere-960px.jpg

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

BIN
site/file/thumb/banniere/mini_zwii_banniere_norvege-1170px.jpg

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 KiB

BIN
site/file/thumb/banniere/mini_zwii_banniere_norvege-750px.jpg

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.5 KiB

BIN
site/file/thumb/banniere/mini_zwii_banniere_norvege-960px.jpg

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.8 KiB

BIN
site/file/thumb/banniere/zwii_banniere-1170px.jpg

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

BIN
site/file/thumb/banniere/zwii_banniere-750px.jpg

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

BIN
site/file/thumb/banniere/zwii_banniere-960px.jpg

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

BIN
site/file/thumb/banniere/zwii_banniere_norvege-1170px.jpg

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 KiB

BIN
site/file/thumb/banniere/zwii_banniere_norvege-750px.jpg

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

BIN
site/file/thumb/banniere/zwii_banniere_norvege-960px.jpg

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 KiB

BIN
site/file/thumb/galerie/landscape/desert.jpg

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.0 KiB

BIN
site/file/thumb/galerie/landscape/iceberg.jpg

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

BIN
site/file/thumb/galerie/landscape/meadow.jpg

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

BIN
site/file/thumb/galerie/landscape/mini_desert.jpg

Binary file not shown.

Before

Width:  |  Height:  |  Size: 27 KiB

BIN
site/file/thumb/galerie/landscape/mini_iceberg.jpg

Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB

BIN
site/file/thumb/galerie/landscape/mini_meadow.jpg

Binary file not shown.

Before

Width:  |  Height:  |  Size: 31 KiB

BIN
site/file/thumb/galerie/space/cosmos.jpg

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

BIN
site/file/thumb/galerie/space/earth.jpg

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

BIN
site/file/thumb/galerie/space/mini_cosmos.jpg

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

BIN
site/file/thumb/galerie/space/mini_earth.jpg

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

BIN
site/file/thumb/galerie/space/mini_nebula.jpg

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

BIN
site/file/thumb/galerie/space/nebula.jpg

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

BIN
site/file/thumb/icones/home_black.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 902 B

BIN
site/file/thumb/icones/home_blue.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

BIN
site/file/thumb/icones/loupe.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.1 KiB

Loading…
Cancel
Save