-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:loadedcommerce/loaded7
- Loading branch information
Showing
148 changed files
with
7,212 additions
and
4,397 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,78 +1,78 @@ | ||
<?php | ||
/** | ||
@package catalog::admin::applications | ||
@author Loaded Commerce | ||
@copyright Copyright 2003-2014 Loaded Commerce, LLC | ||
@copyright Portions Copyright 2003 osCommerce | ||
@copyright Template built on Developr theme by DisplayInline http://themeforest.net/user/displayinline under Extended license | ||
@license https://github.com/loadedcommerce/loaded7/blob/master/LICENSE.txt | ||
@version $Id: backup.php v1.0 2013-08-08 datazen $ | ||
@package catalog::admin::applications | ||
@author Loaded Commerce | ||
@copyright Copyright 2003-2014 Loaded Commerce, LLC | ||
@copyright Portions Copyright 2003 osCommerce | ||
@copyright Template built on Developr theme by DisplayInline http://themeforest.net/user/displayinline under Extended license | ||
@license https://github.com/loadedcommerce/loaded7/blob/master/LICENSE.txt | ||
@version $Id: backup.php v1.0 2013-08-08 datazen $ | ||
*/ | ||
global $lC_Vqmod; | ||
global $lC_Vqmod; | ||
|
||
require_once($lC_Vqmod->modCheck('includes/applications/backup/classes/backup.php')); | ||
require_once($lC_Vqmod->modCheck('includes/applications/backup/classes/backup.php')); | ||
|
||
class lC_Application_Backup extends lC_Template_Admin { | ||
/* | ||
* Protected variables | ||
*/ | ||
protected $_module = 'backup', | ||
$_page_title, | ||
$_page_contents = 'main.php'; | ||
/* | ||
* Class constructor | ||
*/ | ||
function __construct() { | ||
global $lC_Language; | ||
class lC_Application_Backup extends lC_Template_Admin { | ||
/* | ||
* Protected variables | ||
*/ | ||
protected $_module = 'backup', | ||
$_page_title, | ||
$_page_contents = 'main.php'; | ||
/* | ||
* Class constructor | ||
*/ | ||
function __construct() { | ||
global $lC_Language; | ||
|
||
$this->_page_title = $lC_Language->get('heading_title'); | ||
$this->_page_title = $lC_Language->get('heading_title'); | ||
|
||
if ( !isset($_GET['action']) ) { | ||
$_GET['action'] = ''; | ||
} | ||
if ( !isset($_GET['action']) ) { | ||
$_GET['action'] = ''; | ||
} | ||
|
||
if ( !empty($_GET['action']) ) { | ||
switch ( $_GET['action'] ) { | ||
if ( !empty($_GET['action']) ) { | ||
switch ( $_GET['action'] ) { | ||
|
||
case 'backup': | ||
if (lC_Backup_Admin::backup($_GET['compression'], (isset($_GET['download_only']) && ($_GET['download_only'] == 'yes') ? true : false))) { | ||
return true; | ||
} else { | ||
return false; | ||
} | ||
break; | ||
case 'backup': | ||
if (lC_Backup_Admin::backup($_GET['compression'], (isset($_GET['download_only']) && ($_GET['download_only'] == 'yes') ? true : false))) { | ||
return true; | ||
} else { | ||
return false; | ||
} | ||
break; | ||
|
||
case 'download': | ||
$filename = basename($_GET['file']); | ||
$extension = substr($filename, -3); | ||
case 'download': | ||
$filename = basename($_GET['file']); | ||
$extension = substr($filename, -3); | ||
|
||
if ( ( $extension == 'zip' ) || ( $extension == '.gz' ) || ( $extension == 'sql' ) ) { | ||
if ( file_exists(DIR_FS_BACKUP . $filename) ) { | ||
if ( $fp = fopen(DIR_FS_BACKUP . $filename, 'rb') ) { | ||
$buffer = fread($fp, filesize(DIR_FS_BACKUP . $filename)); | ||
fclose($fp); | ||
if ( ( $extension == 'zip' ) || ( $extension == '.gz' ) || ( $extension == 'sql' ) ) { | ||
if ( file_exists(DIR_FS_BACKUP . $filename) ) { | ||
if ( $fp = fopen(DIR_FS_BACKUP . $filename, 'rb') ) { | ||
$buffer = fread($fp, filesize(DIR_FS_BACKUP . $filename)); | ||
fclose($fp); | ||
|
||
header('Content-type: application/x-octet-stream'); | ||
header('Content-disposition: attachment; filename=' . $filename); | ||
header('Content-type: application/x-octet-stream'); | ||
header('Content-disposition: attachment; filename=' . $filename); | ||
|
||
echo $buffer; | ||
echo $buffer; | ||
|
||
exit; | ||
exit; | ||
} | ||
} | ||
} | ||
} | ||
break; | ||
break; | ||
|
||
case 'restoreLocal': | ||
if (lC_Backup_Admin::restore()) { | ||
$_SESSION['restoreLocal'] = true; | ||
return true; | ||
} else { | ||
return false; | ||
} | ||
break; | ||
case 'restoreLocal': | ||
if (lC_Backup_Admin::restore()) { | ||
$_SESSION['restoreLocal'] = true; | ||
return true; | ||
} else { | ||
return false; | ||
} | ||
break; | ||
} | ||
} | ||
} | ||
} | ||
} | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -243,7 +243,7 @@ public static function drawMenu() { | |
} | ||
|
||
return $menu; | ||
} | ||
} | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.