diff options
author | David M <davidmj@users.sourceforge.net> | 2007-07-28 04:05:43 +0000 |
---|---|---|
committer | David M <davidmj@users.sourceforge.net> | 2007-07-28 04:05:43 +0000 |
commit | a935f6e5f9b2e9b2002f2f5bd76c95413e2954bb (patch) | |
tree | 876f9e7652dcde40bb0fa824e066e84176e2c4a5 | |
parent | a5327bcfe91c94c6f6d066936e61ef20da0ac03a (diff) | |
download | forums-a935f6e5f9b2e9b2002f2f5bd76c95413e2954bb.tar forums-a935f6e5f9b2e9b2002f2f5bd76c95413e2954bb.tar.gz forums-a935f6e5f9b2e9b2002f2f5bd76c95413e2954bb.tar.bz2 forums-a935f6e5f9b2e9b2002f2f5bd76c95413e2954bb.tar.xz forums-a935f6e5f9b2e9b2002f2f5bd76c95413e2954bb.zip |
- add database size for Firebird
git-svn-id: file:///svn/phpbb/trunk@7965 89ea8834-ac86-4346-8a33-228a782c2dd0
-rw-r--r-- | phpBB/docs/CHANGELOG.html | 1 | ||||
-rw-r--r-- | phpBB/includes/functions_admin.php | 11 |
2 files changed, 12 insertions, 0 deletions
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 { <li>[Fix] Disallow post/pm subjects entirely made up from non-printable chars and whitespaces (Bug #13800)</li> <li>[Fix] Allow moving private messages from the sentbox (Bug #13791)</li> <li>[Fix] Properly export localized imagesets</li> + <li>[Feature] Show the size of Firebird databases</li> </ul> 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; |