mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-05 15:16:16 +02:00
Some additional error checking in the install to make sure that the server's php configuration is going to work with phpBB2.. (two new lines in lang_admin.php sorry translators, & please don't shoot me Paul :D )
git-svn-id: file:///svn/phpbb/trunk@2012 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
982d341892
commit
53d453ed39
@ -614,6 +614,38 @@ else
|
||||
}
|
||||
else if( isset($dbms) )
|
||||
{
|
||||
switch( $dbms )
|
||||
{
|
||||
case 'msaccess':
|
||||
case 'mssql-odbc':
|
||||
$check_exts = 'odbc';
|
||||
$check_other = 'odbc';
|
||||
break;
|
||||
case 'mssql':
|
||||
$check_exts = 'mssql';
|
||||
$check_other = 'sybase';
|
||||
break;
|
||||
case 'mysql':
|
||||
case 'mysql4':
|
||||
$check_exts = 'mysql';
|
||||
$check_other = 'mysql';
|
||||
break;
|
||||
case 'postgres':
|
||||
$check_exts = 'pgsql';
|
||||
$check_other = 'pgsql';
|
||||
break;
|
||||
}
|
||||
if( !extension_loaded( $check_exts ) && !extension_loaded( $check_other ) )
|
||||
{
|
||||
$template->assign_block_vars("switch_error_install", array());
|
||||
|
||||
$template->assign_vars(array(
|
||||
"L_ERROR_TITLE" => $lang['Installer_Error'],
|
||||
"L_ERROR" => $lang['Install_No_Ext'])
|
||||
);
|
||||
$template->pparse('body');
|
||||
exit;
|
||||
}
|
||||
include($phpbb_root_path.'includes/db.'.$phpEx);
|
||||
}
|
||||
|
||||
|
@ -697,8 +697,12 @@ $lang['Upgrade'] = "Upgrade";
|
||||
|
||||
$lang['Install_Method'] = "Choose your installation method";
|
||||
|
||||
$lang['Install_No_Ext'] = "The php configuration on your server doesn't support the database type that you choose";
|
||||
|
||||
$lang['Install_No_PCRE'] = "phpBB2 Requires the Perl-Compatible Regular Expressions Module for php which your php configuration doesn't appear to support!";
|
||||
|
||||
//
|
||||
// That's all Folks!
|
||||
// -------------------------------------------------
|
||||
|
||||
?>
|
||||
?>
|
||||
|
Loading…
x
Reference in New Issue
Block a user