国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
876B

  1. <?php
  2. /**
  3. * @version $Id: sys_data_revert.php 1 22:28 2010年7月20日Z tianya $
  4. * @package DedeCMS.Administrator
  5. * @copyright Copyright (c) 2020, DedeBIZ.COM
  6. * @license https://www.dedebiz.com/license
  7. * @link https://www.dedebiz.com
  8. */
  9. require_once(dirname(__FILE__)."/config.php");
  10. CheckPurview('sys_Data');
  11. $bkdir = DEDEDATA."/".$cfg_backup_dir;
  12. $filelists = Array();
  13. $dh = dir($bkdir);
  14. $structfile = "没找到数据结构文件";
  15. while(($filename=$dh->read()) !== false)
  16. {
  17. if(!preg_match("#txt$#", $filename))
  18. {
  19. continue;
  20. }
  21. if(preg_match("#tables_struct#", $filename))
  22. {
  23. $structfile = $filename;
  24. }
  25. else if( filesize("$bkdir/$filename") >0 )
  26. {
  27. $filelists[] = $filename;
  28. }
  29. }
  30. $dh->close();
  31. include DedeInclude('templets/sys_data_revert.htm');