Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by deZender.Net
- * @ deZender (PHP5 Decoder for ionCube Encoder)
- *
- * @ Version : 1.1.6.0
- * @ Author : DeZender
- * @ Release on : 02.06.2013
- * @ Official site : http://DeZender.Net
- *
- */
- if (!( defined( 'Orivon' ))) {
- exit( 'Access Denied' );
- (bool)true;
- }
- require_once( 'database_backup.class.php' );
- require_once( 'database_restore.class.php' );
- class BackupRestore extends Systembase {
- private $zip_msg = '<span style="color:green">
- 备份时生成zip文件,可以加快文件的下载速度。但是需要开启php.ini文件中的php_zip扩展。建议您打开该扩展。<br />
- 打开扩展的方法: 打开php.ini文件,查找到 extension=php_zip ,将本段内容所在行的行首分号(;)去掉即可。<br /></span>';
- public function __construct() {
- }
- public function databaseBackup() {
- $conf = $this->enable_Config( );
- $tpl_path = $conf['admin_templates'] . '/admin/data/backup';
- $tpl = $this->enable_Template( $tpl_path );
- $tpl->caching = 0;
- $zip_message = '';
- if (PHP_VERSION < 5.20000000000000017763568) {
- $zip_message = '<span class="notice">备份时生成zip文件,可以加快文件的下载速度。但是需要php 5.2.0或更高版本的支持。建议您升级php版本。</span>';
- } else {
- $bool = class_exists( 'ZipArchive' );
- if (!$bool) {
- $zip_message = $this->zip_msg;
- } else {
- $zip_message = '备份文件将以zip格式存储。';
- }
- }
- $tpl->assign( '_zip_message', $zip_message );
- $tpl->assign( '_root', _ROOT );
- $tpl->assign( '_templates', $conf['admin_templates'] );
- $tpl->display( 'database_backup.tpl.php' );
- }
- ............................................................
- ....................................
- .....................
Advertisement
Add Comment
Please, Sign In to add comment