mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 14:00:31 +02:00
- use a_search permission
- check for MyISAM in fulltext_mysql git-svn-id: file:///svn/phpbb/trunk@5639 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -504,8 +504,8 @@ class acp_search_info
|
||||
'title' => 'ACP_SEARCH',
|
||||
'version' => '1.0.0',
|
||||
'modes' => array(
|
||||
'settings' => array('title' => 'ACP_SEARCH_SETTINGS', 'auth' => 'acl_a_server'),
|
||||
'index' => array('title' => 'ACP_SEARCH_INDEX', 'auth' => 'acl_a_server'),
|
||||
'settings' => array('title' => 'ACP_SEARCH_SETTINGS', 'auth' => 'acl_a_search'),
|
||||
'index' => array('title' => 'ACP_SEARCH_INDEX', 'auth' => 'acl_a_search'),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user