|
From: Jonathan H. <the...@us...> - 2002-01-29 22:46:19
|
Update of /cvsroot/phpbb/phpBB2
In directory usw-pr-cvs1:/tmp/cvs-serv5042
Modified Files:
install.php
Log Message:
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 )
Index: install.php
===================================================================
RCS file: /cvsroot/phpbb/phpBB2/install.php,v
retrieving revision 1.30
retrieving revision 1.31
diff -C2 -r1.30 -r1.31
*** install.php 2002/01/28 02:36:14 1.30
--- install.php 2002/01/29 22:46:16 1.31
***************
*** 615,618 ****
--- 615,650 ----
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);
}
|