From a935f6e5f9b2e9b2002f2f5bd76c95413e2954bb Mon Sep 17 00:00:00 2001 From: David M Date: Sat, 28 Jul 2007 04:05:43 +0000 Subject: [PATCH] - add database size for Firebird git-svn-id: file:///svn/phpbb/trunk@7965 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/docs/CHANGELOG.html | 1 + phpBB/includes/functions_admin.php | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/phpBB/docs/CHANGELOG.html b/phpBB/docs/CHANGELOG.html index cafc139b36..2e86f5142f 100644 --- a/phpBB/docs/CHANGELOG.html +++ b/phpBB/docs/CHANGELOG.html @@ -289,6 +289,7 @@ p a {
  • [Fix] Disallow post/pm subjects entirely made up from non-printable chars and whitespaces (Bug #13800)
  • [Fix] Allow moving private messages from the sentbox (Bug #13791)
  • [Fix] Properly export localized imagesets
  • +
  • [Feature] Show the size of Firebird databases
  • diff --git a/phpBB/includes/functions_admin.php b/phpBB/includes/functions_admin.php index 2c3eb61dce..29d52406da 100644 --- a/phpBB/includes/functions_admin.php +++ b/phpBB/includes/functions_admin.php @@ -2792,6 +2792,17 @@ function get_database_size() } break; + case 'firebird': + global $dbname; + + // if it on the local machine, we can get lucky + if (file_exists($dbname)) + { + $database_size = filesize($dbname); + } + + break; + case 'sqlite': global $dbhost;