OSDN Git Service

Include UTF-8 multibyte processing.
[nucleus-jp/nucleus-jp-ancient.git] / utf8 / config.php
index 1acc83a..28fdecb 100755 (executable)
@@ -1,54 +1,62 @@
 <?php
-\r
-/*\r
- * Nucleus: PHP/MySQL Weblog CMS (http://nucleuscms.org/)\r
- * Copyright (C) 2002-2009 The Nucleus Group\r
- *\r
- * This program is free software; you can redistribute it and/or\r
- * modify it under the terms of the GNU General Public License\r
- * as published by the Free Software Foundation; either version 2\r
- * of the License, or (at your option) any later version.\r
- * (see nucleus/documentation/index.html#license for more info)\r
- */\r
-\r
-/**\r
- * Nucleus configration file\r
- * @license http://nucleuscms.org/license.txt GNU General Public License\r
- * @copyright Copyright (C) 2002-2009 The Nucleus Group\r
- * @version $Id$\r
- */\r
-
-// This file contains variables with the locations of the data dirs
-// and basic functions that every page can use
-
-// mySQL connection information
-$MYSQL_HOST = 'hostname';
-$MYSQL_USER = 'username';
+
+/*
+ * Nucleus: PHP/MySQL Weblog CMS (http://nucleuscms.org/)
+ * Copyright (C) 2002-2010 The Nucleus Group
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ * (see nucleus/documentation/index.html#license for more info)
+ */
+
+/**
+ * Nucleus configration file
+ * @license http://nucleuscms.org/license.txt GNU General Public License
+ * @copyright Copyright (C) 2002-2010 The Nucleus Group
+ * @version $Id$
+ */
+
+// このファイルはサーバ内のディレクトリに対するパスと
+// Nucleus CMSの基本機能に関する設定を行います
+
+// MySQLサーバへ接続するための諸設定
+$MYSQL_HOST     = 'hostname';
+$MYSQL_USER     = 'username';
 $MYSQL_PASSWORD = 'password';
 $MYSQL_DATABASE = 'databasename';
-$MYSQL_PREFIX = '';
+$MYSQL_PREFIX   = '';
+
+// 3.50で導入された値。第1引数はデータベースハンドラです。第2引数はハンドラで使われるドライバです。
+// デフォルト値は以下です。
+// $MYSQL_HANDLER = array('mysql','');
+
+//$MYSQL_HANDLER = array('mysql','mysql');
+//$MYSQL_HANDLER = array('pdo','mysql');
+$MYSQL_HANDLER = array('mysql','');
 
-// main nucleus directory
+// サーバコンピュータ内でのコアへのフルパス
 $DIR_NUCLEUS = '/your/path/to/nucleus/';
 
-// media dir
-$DIR_MEDIA = '/your/path/to/media/';
+// サーバコンピュータ内でのメディア用ディレクトリへのフルパス
+$DIR_MEDIA   = '/your/path/to/media/';
 
-// extra skin files for imported skins
-$DIR_SKINS = '/your/path/to/skins/';
+// サーバコンピュータ内でのスキン用ディレクトリへのフルパス
+$DIR_SKINS   = '/your/path/to/skins/';
 
-// these dirs are normally subdirs of the nucleus dir, but
-// you can redefine them if you wish
+// プラグイン用ディレクトリ、言語ファイル用ディレクトリ、コアライブラリへのフルパス
+// 通常はコアの子ディレクトリとなりますが、任意に設定する事もできます
 $DIR_PLUGINS = $DIR_NUCLEUS . 'plugins/';
-$DIR_LANG = $DIR_NUCLEUS . 'language/';
-$DIR_LIBS = $DIR_NUCLEUS . 'libs/';
+$DIR_LANG    = $DIR_NUCLEUS . 'language/';
+$DIR_LIBS    = $DIR_NUCLEUS . 'libs/';
 
 if (!@file_exists($DIR_LIBS . 'globalfunctions.php')) {
-       echo "Configuration error, please run the install script or modify config.php";
+       echo '設定がおかしいです。<a href="./install/index.php">インストール用スクリプト</a>を起動するか、config.phpの設定値を変更して下さい。';
        exit;
 }
 
-// include libs
+// コアライブラリのパースをします
 include($DIR_LIBS.'globalfunctions.php');
 if (!extension_loaded('mbstring')) {
        include($DIR_LIBS.'mb_emulator/mb-emulator.php');