mirror of
https://gitee.com/ShopeX/OMS
synced 2026-03-22 18:35:35 +08:00
35 lines
1.1 KiB
PHP
35 lines
1.1 KiB
PHP
<?php
|
||
/**
|
||
* Copyright © ShopeX (http://www.shopex.cn). All rights reserved.
|
||
* See LICENSE file for license details.
|
||
*/
|
||
|
||
|
||
class desktop_ctl_data extends desktop_controller{
|
||
|
||
function index(){echo '已关闭';exit;
|
||
header("cache-control: no-store, no-cache, must-revalidate");
|
||
ini_set("max_exection_time", 0);
|
||
|
||
$oDSB = kernel::single("desktop_system_backup");
|
||
$arr = $oDSB->getList();
|
||
if( $arr ) {
|
||
foreach( (array)$arr as $row ) { //去除重复数据
|
||
$key = md5($row['name']);
|
||
if( !$arr_list[$key] )
|
||
$arr_list[$key] = $row;
|
||
|
||
$last_backup_time = ($last_backup_time?time():$row['time']);
|
||
$last_backup_time = $last_backup_time>$row['time'] ? $row['time'] : $last_backup_time;
|
||
}
|
||
$this->pagedata['last_backup_time'] = date('Y-m-d H:i:s',$last_backup_time);
|
||
}
|
||
if( !$arr_list ) $this->pagedata['last_backup_time'] = null;
|
||
$this->pagedata['archive'] = $arr_list;
|
||
|
||
$this->page('system/data_run.html');
|
||
}
|
||
|
||
|
||
}
|