diff options
author | Nils Adermann <naderman@naderman.de> | 2006-08-06 18:47:11 +0000 |
---|---|---|
committer | Nils Adermann <naderman@naderman.de> | 2006-08-06 18:47:11 +0000 |
commit | 7c01c5ceb967d891a27341796f404370baad5c62 (patch) | |
tree | a7c4e5f153dc8bcf46f0cd6155341e85f4fae233 /phpBB/includes | |
parent | ed69b27cb649066d193e941d4415913c8e95f59a (diff) | |
download | forums-7c01c5ceb967d891a27341796f404370baad5c62.tar forums-7c01c5ceb967d891a27341796f404370baad5c62.tar.gz forums-7c01c5ceb967d891a27341796f404370baad5c62.tar.bz2 forums-7c01c5ceb967d891a27341796f404370baad5c62.tar.xz forums-7c01c5ceb967d891a27341796f404370baad5c62.zip |
Backup files are now named backup_[timestamp].sql.*
git-svn-id: file:///svn/phpbb/trunk@6245 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes')
-rw-r--r-- | phpBB/includes/acp/acp_database.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/includes/acp/acp_database.php b/phpBB/includes/acp/acp_database.php index 7fd959b104..59ccb342fd 100644 --- a/phpBB/includes/acp/acp_database.php +++ b/phpBB/includes/acp/acp_database.php @@ -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); |