国内流行的内容管理系统(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.

26 lines
835B

  1. <?php
  2. /**
  3. * @version $Id: sys_data_revert.php 1 22:28 2010年7月20日Z tianya $
  4. * @package DedeBIZ.Administrator
  5. * @copyright Copyright (c) 2022, 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. if (!preg_match("#txt$#", $filename)) {
  17. continue;
  18. }
  19. if (preg_match("#tables_struct#", $filename)) {
  20. $structfile = $filename;
  21. } else if (filesize("$bkdir/$filename") > 0) {
  22. $filelists[] = $filename;
  23. }
  24. }
  25. $dh->close();
  26. include DedeInclude('templets/sys_data_revert.htm');