Тема: Конвертер
Показать сообщение отдельно
Старый 26.10.2009, 16:38   #6
Аватар для UnFeeLing
UnFeeLing UnFeeLing вне форума
Senior Member
собсно пытаюсь перековырять форум из phpbb3 в булку, но трабла с кодировкой :(
Инсерты в базу нового форума(Vbulletin) идут "?????" кодировка форума phpbb3 cp1251_general_ci нового установленного тоже cp1251_general_ci, собсно где я проганяю?:(

Прилагаю ImpexConfig.php
PHP код:
<?php
if (!defined('IDIR')) { die; }

#################################################################### |;
# vBulletin
# ---------------------------------------------------------------- # |;
# Copyright ©2000–2009 Jelsoft Enterprises Ltd. All Rights Reserved. |;
# This file may not be redistributed in whole or significant part. # |;
# ---------------- VBULLETIN IS NOT FREE SOFTWARE ---------------- # |;
# http://www.vbulletin.com | http://www.vbulletin.com/license.html # |;
#################################################################### |;

# The following settings allow ImpEx to connect to the vBulletin 3
# database into which you will be importing data.

####
#
# TARGET - The target is the vBulletin database (where the  data is going to)
#
####

$impexconfig['target']['server']        = 'localhost';
$impexconfig['target']['user']        = 'юзер';
$impexconfig['target']['password']    = 'пасс';
$impexconfig['target']['database']        = 'база';
$impexconfig['target']['tableprefix']    = '';

# If the system that is being imported from uses a database,
# enter the details for it here and set 'sourceexists' to true.
# If the source data is NOT stored in a database, set 'sourceexists' to false

$impexconfig['sourceexists']            = true;

####
#
# SOURCE - The source is the old forum database (where the  data is coming from)
#
####

# mysql / mssql
$impexconfig['source']['databasetype']    = 'mysql';  // mysql OR mssql
$impexconfig['source']['server']        = 'localhost';
$impexconfig['source']['user']            = 'юзер базы';
$impexconfig['source']['password']        = 'пароль';
$impexconfig['source']['database']        = 'имя базы';
$impexconfig['source']['tableprefix']   = 'phpbb_';

####
#
# DUPLICATE CHECKING
# Where unique import id's are available ImpEx can check for duplicates with some
# Tier2 systems this will need to be set to false.
#
# yahoo_groups, YaBB 2.1, Ikonboard 3.1.5 (for attachments)
#
####

define('dupe_checking'false);

###############################################################################
####
#
# ADVANCED - For a standard import or a novice user leave the settings below.
#
####

// Advanced Target
$impexconfig['target']['databasetype']    = 'mysql';    // currently mysql only
$impexconfig['target']['charset']        = 'cp1251';
$impexconfig['target']['persistent']    = false;     // (true/false) use mysql_pconnect

// Advanced Source
$impexconfig['source']['charset']        = 'cp1251';
$impexconfig['source']['persistent']    = false;

# pagespeed is the second(s) wait before the page refreshes.

$impexconfig['system']['language']        = '/impex_language.php';
$impexconfig['system']['pagespeed']        = 1;

$impexconfig['system']['errorlogging']    = false;

define('impexdebug'false);
define('emailcasesensitive'false);
define('forcesqlmode'false);
define('skipparentids'false);
define('shortoutput'false);
define('do_mysql_fetch_assoc'false);
define('step_through'false);
define('lowercase_table_names'false);
define('use_utf8_encode'false);
define('use_utf8_decode'false);
?>
Ответить с цитированием