mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-02-06 13:55:34 +00:00
数据库备份
This commit is contained in:
parent
553ba77b9c
commit
080b128f8a
@ -118,13 +118,12 @@ class SystemDatabackup extends AuthController
|
||||
*/
|
||||
public function import(Request $request = null)
|
||||
{
|
||||
$part = null; $start = null;
|
||||
$part = $request->post('part')?:null;
|
||||
$start = $request->post('start')?:null;
|
||||
$time = strtotime($request->post('feilname'));
|
||||
$db = $this->DB;
|
||||
$list=session::get('backup_list');
|
||||
if(is_numeric($time) && is_null($part) && is_null($start) && empty($list)){
|
||||
if(is_numeric($time) && is_null($part) && is_null($start)){
|
||||
$list= $db->getFile('timeverif',$time);
|
||||
var_dump($list);
|
||||
if(is_array($list)){
|
||||
session::set('backup_list',$list);
|
||||
$this->success('初始化完成!','',array('part' =>1,'start'=>0));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user