OSDN Git Service

Rename config.php.original to config.php.sample
authorsakamocchi <sakamocchi@1ca29b6e-896d-4ea0-84a5-967f57386b96>
Thu, 20 Jan 2011 14:17:20 +0000 (14:17 +0000)
committersakamocchi <sakamocchi@1ca29b6e-896d-4ea0-84a5-967f57386b96>
Thu, 20 Jan 2011 14:17:20 +0000 (14:17 +0000)
git-svn-id: https://svn.sourceforge.jp/svnroot/nucleus-jp/nucleus-jp/trunk@1105 1ca29b6e-896d-4ea0-84a5-967f57386b96

utf8/config.php.sample [new file with mode: 0755]

diff --git a/utf8/config.php.sample b/utf8/config.php.sample
new file mode 100755 (executable)
index 0000000..e12bb1e
--- /dev/null
@@ -0,0 +1,64 @@
+<?php
+
+/*
+ * 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: config.php 1084 2011-01-09 12:30:50Z sakamocchi $
+ */
+
+// このファイルはサーバ内のディレクトリに対するパスと
+// Nucleus CMSの基本機能に関する設定を行います
+
+// MySQLサーバへ接続するための諸設定
+$MYSQL_HOST     = 'hostname';
+$MYSQL_USER     = 'username';
+$MYSQL_PASSWORD = 'password';
+$MYSQL_DATABASE = 'databasename';
+$MYSQL_PREFIX   = '';
+
+// 3.50で導入された値。第1引数はデータベースハンドラです。第2引数はハンドラで使われるドライバです。
+// デフォルト値は以下です。
+// $MYSQL_HANDLER = array('mysql','');
+
+//$MYSQL_HANDLER = array('mysql','mysql');
+//$MYSQL_HANDLER = array('pdo','mysql');
+$MYSQL_HANDLER = array('mysql','');
+
+// サーバコンピュータ内でのコアへのフルパス
+$DIR_NUCLEUS = '/your/path/to/nucleus/';
+
+// サーバコンピュータ内でのメディア用ディレクトリへのフルパス
+$DIR_MEDIA   = '/your/path/to/media/';
+
+// サーバコンピュータ内でのスキン用ディレクトリへのフルパス
+$DIR_SKINS   = '/your/path/to/skins/';
+
+// プラグイン用ディレクトリ、言語ファイル用ディレクトリ、コアライブラリへのフルパス
+// 通常はコアの子ディレクトリとなりますが、任意に設定する事もできます
+$DIR_PLUGINS = $DIR_NUCLEUS . 'plugins/';
+$DIR_LANG    = $DIR_NUCLEUS . 'language/';
+$DIR_LIBS    = $DIR_NUCLEUS . 'libs/';
+
+if (!@file_exists($DIR_LIBS . 'globalfunctions.php')) {
+       echo '設定がおかしいです。<a href="./install/index.php">インストール用スクリプト</a>を起動するか、config.phpの設定値を変更して下さい。';
+       exit;
+}
+
+// コアライブラリのパースをします
+include($DIR_LIBS.'globalfunctions.php');
+if (!extension_loaded('mbstring')) {
+       include($DIR_LIBS.'mb_emulator/mb-emulator.php');
+}
+?>
\ No newline at end of file