2022-01-31 09:10:49 +01:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Mises à jour suivant les versions de DeltaCMS
|
|
|
|
*/
|
|
|
|
|
2022-02-15 15:46:04 +01:00
|
|
|
if ($this->getData(['core', 'dataVersion']) < 3202) {
|
|
|
|
//Forcer une mise à jour de admin.css
|
|
|
|
$this->setData(['admin', 'maj', true]);
|
|
|
|
//Forcer une mise à jour de theme.css
|
|
|
|
if (file_exists(self::DATA_DIR . '/theme.css')) unlink (self::DATA_DIR . '/theme.css');
|
|
|
|
$this->setData(['core', 'dataVersion', 3202]);
|
2022-01-31 09:10:49 +01:00
|
|
|
}
|
2022-03-06 13:35:21 +01:00
|
|
|
if ($this->getData(['core', 'dataVersion']) < 3206) {
|
2022-02-17 08:00:09 +01:00
|
|
|
// Mise à jour
|
2022-03-06 13:35:21 +01:00
|
|
|
$this->setData(['core', 'dataVersion', 3206]);
|
|
|
|
}
|
|
|
|
if ($this->getData(['core', 'dataVersion']) < 4001) {
|
|
|
|
$this->setData(['config', 'i18n', 'langAdmin', 'fr']);
|
|
|
|
$this->setData(['config', 'i18n', 'langBase', 'fr']);
|
|
|
|
// Copie le contenu de site/data/fr vers site/data/base puis supprime site/data/fr
|
|
|
|
if( is_dir('./site/data/fr/') ){
|
|
|
|
$this->copyDir('./site/data/fr/', './site/data/base/');
|
|
|
|
$this->removeDir('./site/data/fr/');
|
|
|
|
}
|
|
|
|
// Mise à jour
|
|
|
|
$this->setData(['core', 'dataVersion', 4001]);
|
2022-02-17 08:00:09 +01:00
|
|
|
}
|
2022-03-18 07:50:13 +01:00
|
|
|
if ($this->getData(['core', 'dataVersion']) < 4002) {
|
|
|
|
// Validation des statistiques
|
|
|
|
$this->setData(['config', 'statistlite', 'enable', false]);
|
|
|
|
// Mise à jour
|
|
|
|
$this->setData(['core', 'dataVersion', 4002]);
|
|
|
|
}
|
2022-03-21 08:32:27 +01:00
|
|
|
|
|
|
|
if ($this->getData(['core', 'dataVersion']) < 4101) {
|
|
|
|
$this->setData(['config', 'i18n', 'da', 'none']);
|
|
|
|
$this->setData(['config', 'i18n', 'el', 'none']);
|
|
|
|
$this->setData(['config', 'i18n', 'fi', 'none']);
|
|
|
|
$this->setData(['config', 'i18n', 'ga', 'none']);
|
|
|
|
$this->setData(['config', 'i18n', 'sv', 'none']);
|
|
|
|
$this->setData(['config', 'i18n', 'otherLangBase', '']);
|
|
|
|
// Mise à jour
|
|
|
|
$this->setData(['core', 'dataVersion', 4101]);
|
|
|
|
}
|
2022-03-22 08:19:03 +01:00
|
|
|
|
2022-04-20 09:25:59 +02:00
|
|
|
if ($this->getData(['core', 'dataVersion']) < 4104) {
|
|
|
|
$this->setData(['config', 'i18n', 'br', 'none']);
|
|
|
|
$this->setData(['config', 'i18n', 'ca', 'none']);
|
|
|
|
$this->setData(['config', 'i18n', 'co', 'none']);
|
|
|
|
$this->setData(['config', 'i18n', 'eu', 'none']);
|
2022-03-22 08:19:03 +01:00
|
|
|
|
|
|
|
// Mise à jour
|
2022-04-20 09:25:59 +02:00
|
|
|
$this->setData(['core', 'dataVersion', 4104]);
|
2022-03-22 08:19:03 +01:00
|
|
|
}
|
|
|
|
|
2022-05-18 07:43:01 +02:00
|
|
|
if ($this->getData(['core', 'dataVersion']) < 4202) {
|
|
|
|
$this->setData(['theme', 'menu', 'burgerTextColor', '#DDD']);
|
|
|
|
$this->setData(['theme', 'menu', 'burgerFontSize', '1.5em']);
|
2022-05-01 11:45:17 +02:00
|
|
|
// Mise à jour
|
2022-05-18 07:43:01 +02:00
|
|
|
$this->setData(['core', 'dataVersion', 4202]);
|
2022-05-01 11:45:17 +02:00
|
|
|
}
|
2022-05-30 09:05:11 +02:00
|
|
|
|
2022-10-10 09:10:39 +02:00
|
|
|
if ($this->getData(['core', 'dataVersion']) < 4307) {
|
|
|
|
$this->setData(['theme', 'header', 'homePageOnly', false]);
|
|
|
|
$this->setData(['theme', 'header', 'heightSelect', $this->getData(['theme', 'header', 'height']) ]);
|
2022-05-30 09:05:11 +02:00
|
|
|
// Mise à jour
|
2022-10-10 09:10:39 +02:00
|
|
|
$this->setData(['core', 'dataVersion', 4307]);
|
2022-05-30 09:05:11 +02:00
|
|
|
}
|
2022-11-05 09:31:32 +01:00
|
|
|
|
|
|
|
if ($this->getData(['core', 'dataVersion']) < 4308) {
|
|
|
|
$this->setData(['config', 'connect', 'captchaBot', false]);
|
|
|
|
$this->setData(['locale', 'captchaSimpleText', 'Je ne suis pas un robot' ]);
|
|
|
|
$this->setData(['locale', 'captchaSimpleHelp', 'Cochez cette case pour prouver que vous n\'êtes pas un robot' ]);
|
|
|
|
$this->deleteData([ 'config', 'connect', 'captchaStrong' ]);
|
|
|
|
$this->deleteData([ 'config', 'connect', 'captchaType' ]);
|
|
|
|
// Mise à jour
|
|
|
|
$this->setData(['core', 'dataVersion', 4308]);
|
|
|
|
}
|
2022-01-31 09:10:49 +01:00
|
|
|
?>
|