mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
Backup files are now named backup_[timestamp].sql.*
git-svn-id: file:///svn/phpbb/trunk@6245 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
ed69b27cb6
commit
7c01c5ceb9
1 changed files with 3 additions and 3 deletions
|
@ -68,7 +68,7 @@ class acp_database
|
|||
|
||||
@set_time_limit(1200);
|
||||
|
||||
$filename = time();
|
||||
$filename = 'backup_' . time();
|
||||
|
||||
// We set up the info needed for our on-the-fly creation :D
|
||||
switch ($format)
|
||||
|
@ -1162,7 +1162,7 @@ class acp_database
|
|||
$delete = request_var('delete', '');
|
||||
$file = request_var('file', '');
|
||||
|
||||
preg_match('#^(\d{10})\.(sql(?:\.(?:gz|bz2))?)$#', $file, $matches);
|
||||
preg_match('#^(backup_\d{10,})\.(sql(?:\.(?:gz|bz2))?)$#', $file, $matches);
|
||||
$file_name = $phpbb_root_path . 'store/' . $matches[0];
|
||||
|
||||
if (!(file_exists($file_name) && is_readable($file_name)))
|
||||
|
@ -1284,7 +1284,7 @@ class acp_database
|
|||
$dh = opendir($dir);
|
||||
while (($file = readdir($dh)) !== false)
|
||||
{
|
||||
if (preg_match('#^(\d{10})\.(sql(?:\.(?:gz|bz2))?)$#', $file, $matches))
|
||||
if (preg_match('#^backup_(\d{10,})\.(sql(?:\.(?:gz|bz2))?)$#', $file, $matches))
|
||||
{
|
||||
$supported = in_array($matches[2], $methods);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue