Ejemplo n.º 1
0
<?php

/**
 * Part of joomla341 project. 
 *
 * @copyright  Copyright (C) 2015 {ORGANIZATION}. All rights reserved.
 * @license    GNU General Public License version 2 or later;
 */
use Ezset\Library\System\ResponseHelper;
defined('_JEXEC') or die;
\Ezset\Library\Auth\Authentication::authenticate();
$backupZipFile = new SplFileInfo(\Ezset\Library\Backup\Backup::getBackupZipFile());
ResponseHelper::download($backupZipFile->getPathname(), true, true);
Ejemplo n.º 2
0
<?php

/**
 * Part of Ezset project.
 *
 * @copyright  Copyright (C) 2015 {ORGANIZATION}. All rights reserved.
 * @license    GNU General Public License version 2 or later;
 */
use Ezset\Library\Auth\Authentication;
use Ezset\Library\Backup\Backup;
use Ezset\Library\Backup\DatabaseExporter;
use Ezset\Library\Backup\OutputBuffer;
use Ezset\Library\System\ResponseHelper;
defined('_JEXEC') or die;
ResponseHelper::simpleUTF8Header();
Authentication::authenticate();
set_time_limit(0);
ini_set('memory_limit', '1G');
$backupZipFile = new SplFileInfo(Backup::getBackupZipFile());
$backupSQLFile = new SplFileInfo(Backup::getBackupSQLFile());
$installFolder = Backup::getInstallationResource();
$installIterator = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($installFolder));
$ob = new OutputBuffer(JFactory::getApplication()->input);
$ob->start();
Backup::prepareFolder($backupZipFile->getPath());
Backup::writeHtaccess($backupZipFile->getPath() . '/.htaccess');
Backup::writeWebConfig($backupZipFile->getPath() . '/web.config');
?>
<style>
	body {
		background-color: #333;