Guest User

Untitled

a guest
Oct 15th, 2013
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.82 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by deZender.Net
  5. * @ deZender (PHP5 Decoder for ionCube Encoder)
  6. *
  7. * @ Version : 1.1.6.0
  8. * @ Author : DeZender
  9. * @ Release on : 02.06.2013
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. if (!( defined( 'Orivon' ))) {
  15. exit( 'Access Denied' );
  16. (bool)true;
  17. }
  18.  
  19. require_once( 'database_backup.class.php' );
  20. require_once( 'database_restore.class.php' );
  21. class BackupRestore extends Systembase {
  22. private $zip_msg = '<span style="color:green">
  23. 备份时生成zip文件,可以加快文件的下载速度。但是需要开启php.ini文件中的php_zip扩展。建议您打开该扩展。<br />
  24. 打开扩展的方法: 打开php.ini文件,查找到 extension=php_zip ,将本段内容所在行的行首分号(;)去掉即可。<br /></span>';
  25.  
  26. public function __construct() {
  27. }
  28.  
  29. public function databaseBackup() {
  30. $conf = $this->enable_Config( );
  31. $tpl_path = $conf['admin_templates'] . '/admin/data/backup';
  32. $tpl = $this->enable_Template( $tpl_path );
  33. $tpl->caching = 0;
  34. $zip_message = '';
  35.  
  36. if (PHP_VERSION < 5.20000000000000017763568) {
  37. $zip_message = '<span class="notice">备份时生成zip文件,可以加快文件的下载速度。但是需要php 5.2.0或更高版本的支持。建议您升级php版本。</span>';
  38. } else {
  39. $bool = class_exists( 'ZipArchive' );
  40.  
  41. if (!$bool) {
  42. $zip_message = $this->zip_msg;
  43. } else {
  44. $zip_message = '备份文件将以zip格式存储。';
  45. }
  46. }
  47.  
  48. $tpl->assign( '_zip_message', $zip_message );
  49. $tpl->assign( '_root', _ROOT );
  50. $tpl->assign( '_templates', $conf['admin_templates'] );
  51. $tpl->display( 'database_backup.tpl.php' );
  52. }
  53. ............................................................
  54. ....................................
  55. .....................
Advertisement
Add Comment
Please, Sign In to add comment