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