aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/install/convertors
diff options
context:
space:
mode:
authorNils Adermann <naderman@naderman.de>2007-02-17 01:14:28 +0000
committerNils Adermann <naderman@naderman.de>2007-02-17 01:14:28 +0000
commite526dfe83e805e8ffac5abcab0ba2fc67c7563ce (patch)
tree6201cc9f24bf2cd58c1a94639ce20dfe6305449d /phpBB/install/convertors
parent72594577015eb9464aa0916c20ed9f8b41f6dfd6 (diff)
downloadforums-e526dfe83e805e8ffac5abcab0ba2fc67c7563ce.tar
forums-e526dfe83e805e8ffac5abcab0ba2fc67c7563ce.tar.gz
forums-e526dfe83e805e8ffac5abcab0ba2fc67c7563ce.tar.bz2
forums-e526dfe83e805e8ffac5abcab0ba2fc67c7563ce.tar.xz
forums-e526dfe83e805e8ffac5abcab0ba2fc67c7563ce.zip
- only give DBAL options which were available in phpBB2
- default to phpBB3 DB config git-svn-id: file:///svn/phpbb/trunk@6996 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/install/convertors')
-rw-r--r--phpBB/install/convertors/convert_phpbb20.php15
1 files changed, 9 insertions, 6 deletions
diff --git a/phpBB/install/convertors/convert_phpbb20.php b/phpBB/install/convertors/convert_phpbb20.php
index 4f66d3848a..8ba43f4be8 100644
--- a/phpBB/install/convertors/convert_phpbb20.php
+++ b/phpBB/install/convertors/convert_phpbb20.php
@@ -22,6 +22,9 @@ if (!defined('IN_PHPBB'))
exit;
}
+include($phpbb_root_path . 'config.' . $phpEx);
+unset($dbpasswd);
+
/**
* $convertor_data provides some basic information about this convertor which is
* used on the initial list of convertors and to populate the default settings
@@ -31,12 +34,12 @@ $convertor_data = array(
'version' => '0.9',
'phpbb_version' => '3.0.0',
'author' => '<a href="http://www.phpbb.com/">phpBB Group</a>',
- 'dbms' => 'mysql',
- 'dbhost' => 'localhost',
- 'dbport' => '',
- 'dbuser' => 'user',
- 'dbpasswd' => 'password',
- 'dbname' => '',
+ 'dbms' => $dbms,
+ 'dbhost' => $dbhost,
+ 'dbport' => $dbport,
+ 'dbuser' => $dbuser,
+ 'dbpasswd' => '',
+ 'dbname' => $dbname,
'table_prefix' => 'phpbb_',
'forum_path' => '../forums',
'author_notes' => 'Avatars may be on a different width/height than with the old forum. This is due to dimensions being stored within phpBB3 but not within phpBB2. The default dimension was set to 80x80 for avatars where dimension settings could not be determined. You might wish to instruct your users to check their profiles after the conversion to ensure that the size is correct.',