diff options
author | David M <davidmj@users.sourceforge.net> | 2007-02-19 04:23:50 +0000 |
---|---|---|
committer | David M <davidmj@users.sourceforge.net> | 2007-02-19 04:23:50 +0000 |
commit | ec541d417b56c3f21e9fe6097ed6af568781b023 (patch) | |
tree | 18b934c84f2b608dbc587e56d6057ae8aa0ab8e5 /phpBB/includes/functions_admin.php | |
parent | 28871e1f7b3ba4d9e26b34b065a9e198a5202044 (diff) | |
download | forums-ec541d417b56c3f21e9fe6097ed6af568781b023.tar forums-ec541d417b56c3f21e9fe6097ed6af568781b023.tar.gz forums-ec541d417b56c3f21e9fe6097ed6af568781b023.tar.bz2 forums-ec541d417b56c3f21e9fe6097ed6af568781b023.tar.xz forums-ec541d417b56c3f21e9fe6097ed6af568781b023.zip |
#8186
git-svn-id: file:///svn/phpbb/trunk@7011 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_admin.php')
-rw-r--r-- | phpBB/includes/functions_admin.php | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/phpBB/includes/functions_admin.php b/phpBB/includes/functions_admin.php index 53f6fb926a..fa45c0027f 100644 --- a/phpBB/includes/functions_admin.php +++ b/phpBB/includes/functions_admin.php @@ -2516,7 +2516,7 @@ function get_database_size() case 'mysql': case 'mysql4': case 'mysqli': - + $sql = 'SELECT VERSION() AS mysql_version'; $result = $db->sql_query($sql); $row = $db->sql_fetchrow($result); @@ -2560,6 +2560,16 @@ function get_database_size() case 'mssql': case 'mssql_odbc': + global $dbhost; + + if (file_exists($dbhost)) + { + $database_size = filesize($dbhost); + } + + break; + + case 'sqlite': $sql = 'SELECT ((SUM(size) * 8.0) * 1024.0) as dbsize FROM sysfiles'; |