|
- <?php
- /**
- * @version $id:sys_data_revert.php 22:28 2010年7月20日 tianya $
- * @package DedeBIZ.Administrator
- * @copyright Copyright (c) 2022 DedeBIZ.COM
- * @license https://www.dedebiz.com/license
- * @link https://www.dedebiz.com
- */
- require_once(dirname(__FILE__)."/config.php");
- if (DEDEBIZ_SAFE_MODE) {
- die(DedeAlert("系统已启用安全模式,无法使用当前功能",ALERT_DANGER));
- }
- CheckPurview('sys_Data');
- $bkdir = DEDEDATA."/".$cfg_backup_dir;
- $filelists = array();
- $dh = dir($bkdir);
- $structfile = "没找到数据结构文件";
- while (($filename = $dh->read()) !== false) {
- if (!preg_match("#txt$#", $filename)) {
- continue;
- }
- if (preg_match("#tables_struct#", $filename)) {
- $structfile = $filename;
- } else if (filesize("$bkdir/$filename") > 0) {
- $filelists[] = $filename;
- }
- }
- $dh->close();
- include DedeInclude('templets/sys_data_revert.htm');
- ?>
|