This commit is contained in:
巴掌 committed 2021-02-22 14:20:57 +08:00
1 parent 36d6c08ea7
commit 3c95c4ff7a
9 files changed
+81 -77

No files matched your search

+3 -1
View File
@@ -252,7 +252,9 @@ class BackUp extends AdminBase
$db= new up($this->upcnf);
$list = $db->getFile('timeverif', $time);
$url = $list['1']['1'];
$title = date('Ymdhis') . '.sql';
$l = strripos($url, '\\', 0) + 1;
$title = substr($url, $l, strlen($url) - $l);
$title = str_replace('-', '', $title);
return download($url, $title);
}