[9.2.23] fonction backup -> export
This commit is contained in:
parent
bf1de5ae3c
commit
c4e5a257d6
@ -15,7 +15,7 @@
|
||||
class config extends common {
|
||||
|
||||
public static $actions = [
|
||||
'backup' => self::GROUP_ADMIN,
|
||||
'export' => self::GROUP_ADMIN,
|
||||
'configMetaImage' => self::GROUP_ADMIN,
|
||||
'generateFiles' => self::GROUP_ADMIN,
|
||||
'updateRobots' => self::GROUP_ADMIN,
|
||||
@ -206,7 +206,7 @@ class config extends common {
|
||||
/**
|
||||
* Sauvegarde des données
|
||||
*/
|
||||
public function backup() {
|
||||
public function export() {
|
||||
// Creation du ZIP
|
||||
$fileName = str_replace('/','',helper::baseUrl(false,false)) . '-'. date('Y-m-d-h-i-s', time()) . '.zip';
|
||||
$zip = new ZipArchive();
|
||||
|
@ -178,7 +178,7 @@
|
||||
</div>
|
||||
<div class="col4 offset1">
|
||||
<?php echo template::button('configExport', [
|
||||
'href' => helper::baseUrl() . 'config/backup',
|
||||
'href' => helper::baseUrl() . 'config/export',
|
||||
'value' => 'Exporter une copie intégrale du site',
|
||||
]); ?>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user