diff options
author | the_systech <the_systech@users.sourceforge.net> | 2002-01-29 22:46:16 +0000 |
---|---|---|
committer | the_systech <the_systech@users.sourceforge.net> | 2002-01-29 22:46:16 +0000 |
commit | 53d453ed3955677c0f2f8d041fd8b1f3fc56c37a (patch) | |
tree | be5b8762a692ac102c93c767c1132db23212aaed /phpBB/install.php | |
parent | 982d341892d3547fe4c37860ff89b2a8a357570a (diff) | |
download | forums-53d453ed3955677c0f2f8d041fd8b1f3fc56c37a.tar forums-53d453ed3955677c0f2f8d041fd8b1f3fc56c37a.tar.gz forums-53d453ed3955677c0f2f8d041fd8b1f3fc56c37a.tar.bz2 forums-53d453ed3955677c0f2f8d041fd8b1f3fc56c37a.tar.xz forums-53d453ed3955677c0f2f8d041fd8b1f3fc56c37a.zip |
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
Diffstat (limited to 'phpBB/install.php')
-rw-r--r-- | phpBB/install.php | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/phpBB/install.php b/phpBB/install.php index efd0d3ba54..a97c049a58 100644 --- a/phpBB/install.php +++ b/phpBB/install.php @@ -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); } |