// Set MySQL Character (Unicode Settings Add 2006/06/26)
mysql_query("SET NAMES utf8");
// Load the settings from the settings table, and perform operations like optimizing.
// Set MySQL Character (Unicode Settings Add 2006/06/26)
mysql_query("SET NAMES utf8");
// Let’s try that database on for size...
if ($db_name != ’’)
mysql_query("
CREATE DATABASE IF NOT EXISTS `$db_name` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci", $db_connection);
// Set MySQL Character (Unicode Settings Modify 2006/06/26)
// CREATE DATABASE IF NOT EXISTS `$db_name`", $db_connection);
// Okay, let’s try the prefix if it didn’t work...
if (!mysql_select_db($db_name, $db_connection) && $db_name != ’’)
{
mysql_query("
CREATE DATABASE IF NOT EXISTS `$_POST[db_prefix]$db_name` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci", $db_connection);
// Set MySQL Character (Unicode Settings Modify 2006/06/26)
// CREATE DATABASE IF NOT EXISTS `$_POST[db_prefix]$db_name`", $db_connection);
php_flag register_globals OFF
php_value default_charset UTF-8
php_value mbstring.language Japanese
php_flag mbstring.encoding_translation ON
php_value mbstring.detect_order auto
php_value mbstring.internal_encoding UTF-8
php_value mbstring.http_input auto
php_value mbstring.http_output pass
php_value mbstring.substitute_character none
$ for dir in attachments/ avatars/ Packages/ Smileys/ Themes/
> do
> chmod 666 ${dir}/index.php
> done
$ for file in Packages/installed.list agreement.txt Settings* Themes/classic/index.template.php Themes/classic/style.css
> do
> chmod 666 $file
> done
Table: modx_site_modules
----
&cmsurl=CMS base url;string;/;
&smfpth=Forum base path;string;
&admid=Admin User;string;
&admpwd=Admin password;string;
&defgrp=Default group;string;
&len=Default login time;string;120
&loginpg=Login page;string;
&logoutpg=Logout page;string;
®pg=Registration page;string;
&hideforms=Hide forms;list;Yes,No;Yes;
&ondel=When deleting;list;Deactivate SMF account,Leave SMF account,Delete SMF account;Leave SMF account;
MODx encountered the following error while attempting to parse the requested resource: « Execution of a query to the database failed - You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '-engine.smf01_settings (variable,value) VALUES('integrate_pre_i » SQL: REPLACE INTO YOURDBNAME.smf_settings (variable,value) VALUES('integrate_pre_include','/home/YOURSERVER/www/assets/modules/smforum/smf.integrate.inc.php'); [Copy SQL to ClipBoard]