diff options
author | Nils Adermann <naderman@naderman.de> | 2006-03-16 16:22:32 +0000 |
---|---|---|
committer | Nils Adermann <naderman@naderman.de> | 2006-03-16 16:22:32 +0000 |
commit | f11d5dd02b8a3c0e1413d47bad08240669ea0151 (patch) | |
tree | 94af1af7429d7da485f3d2be04304c4184f69628 /phpBB/includes/search/fulltext_mysql.php | |
parent | bfd169e7acf419aab4528bac99e3ecbc0e55d312 (diff) | |
download | forums-f11d5dd02b8a3c0e1413d47bad08240669ea0151.tar forums-f11d5dd02b8a3c0e1413d47bad08240669ea0151.tar.gz forums-f11d5dd02b8a3c0e1413d47bad08240669ea0151.tar.bz2 forums-f11d5dd02b8a3c0e1413d47bad08240669ea0151.tar.xz forums-f11d5dd02b8a3c0e1413d47bad08240669ea0151.zip |
- use a_search permission
- check for MyISAM in fulltext_mysql
git-svn-id: file:///svn/phpbb/trunk@5639 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/search/fulltext_mysql.php')
-rw-r--r-- | phpBB/includes/search/fulltext_mysql.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/phpBB/includes/search/fulltext_mysql.php b/phpBB/includes/search/fulltext_mysql.php index 3d5381e2bc..74ffa08a81 100644 --- a/phpBB/includes/search/fulltext_mysql.php +++ b/phpBB/includes/search/fulltext_mysql.php @@ -48,6 +48,19 @@ class fulltext_mysql extends search_backend return $user->lang['FULLTEXT_MYSQL_INCOMPATIBLE_VERSION']; } + $result = $db->sql_query('SHOW TABLE STATUS LIKE \'' . POSTS_TABLE . '\''); + $engine = $db->sql_fetchfield('Engine', 0, $result); + if (!$engine) + { + $engine = $db->sql_fetchfield('Type', 0, $result); + } + $db->sql_freeresult($result); + + if ($engine != 'MyISAM') + { + return $user->lang['FULLTEXT_MYSQL_NOT_MYISAM']; + } + $sql = 'SHOW VARIABLES LIKE \'ft\_%\''; $result = $db->sql_query($sql); |