backup date filename
This commit is contained in:
parent
6a27eb440b
commit
1199a67ed6
@ -108,7 +108,7 @@ class helper {
|
|||||||
// Creation du ZIP
|
// Creation du ZIP
|
||||||
$baseName = str_replace('/','',helper::baseUrl(false,false));
|
$baseName = str_replace('/','',helper::baseUrl(false,false));
|
||||||
$baseName = empty($baseName) ? 'ZwiiCMS' : $baseName;
|
$baseName = empty($baseName) ? 'ZwiiCMS' : $baseName;
|
||||||
$fileName = $baseName . '-backup-' . date('Y-m-d-h-i-s', time()) . '.zip';
|
$fileName = $baseName . '-backup-' . date('Y-m-d-H-i-s', time()) . '.zip';
|
||||||
$zip = new ZipArchive();
|
$zip = new ZipArchive();
|
||||||
$zip->open($folder . $fileName, ZipArchive::CREATE | ZipArchive::OVERWRITE);
|
$zip->open($folder . $fileName, ZipArchive::CREATE | ZipArchive::OVERWRITE);
|
||||||
$directory = 'site/';
|
$directory = 'site/';
|
||||||
|
@ -774,7 +774,7 @@ class theme extends common {
|
|||||||
*/
|
*/
|
||||||
private function zipTheme($modele) {
|
private function zipTheme($modele) {
|
||||||
// Creation du dossier
|
// Creation du dossier
|
||||||
$zipFilename = $modele . ' ' .date('d m Y').' '.date('H i s ').'.zip';
|
$zipFilename = $modele . date('Y-m-d-H-i-s', time()) . '.zip';
|
||||||
$zip = new ZipArchive();
|
$zip = new ZipArchive();
|
||||||
if ($zip->open(self::TEMP_DIR . $zipFilename, ZipArchive::CREATE | ZipArchive::OVERWRITE ) === TRUE) {
|
if ($zip->open(self::TEMP_DIR . $zipFilename, ZipArchive::CREATE | ZipArchive::OVERWRITE ) === TRUE) {
|
||||||
switch ($modele) {
|
switch ($modele) {
|
||||||
|
Loading…
Reference in New Issue
Block a user