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

30 lines
953B

  1. <?php
  2. /**
  3. * @version $id:sys_data_revert.php 22:28 2010年7月20日 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. if (DEDEBIZ_SAFE_MODE) {
  11. die(DedeAlert("系统已启用安全模式,无法使用当前功能",ALERT_DANGER));
  12. }
  13. CheckPurview('sys_Data');
  14. $bkdir = DEDEDATA."/".$cfg_backup_dir;
  15. $filelists = array();
  16. $dh = dir($bkdir);
  17. $structfile = "没找到数据结构文件";
  18. while (($filename = $dh->read()) !== false) {
  19. if (!preg_match("#txt$#", $filename)) {
  20. continue;
  21. }
  22. if (preg_match("#tables_struct#", $filename)) {
  23. $structfile = $filename;
  24. } else if (filesize("$bkdir/$filename") > 0) {
  25. $filelists[] = $filename;
  26. }
  27. }
  28. $dh->close();
  29. include DedeInclude('templets/sys_data_revert.htm');
  30. ?>