4 * Nucleus: PHP/MySQL Weblog CMS (http://nucleuscms.org/)
5 * Copyright (C) 2002-2011 The Nucleus Group
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation; either version 2
10 * of the License, or (at your option) any later version.
11 * (see nucleus/documentation/index.html#license for more info)
15 * Nucleus configration file
16 * @license http://nucleuscms.org/license.txt GNU General Public License
17 * @copyright Copyright (C) 2002-2011 The Nucleus Group
21 // このファイルはサーバ内のディレクトリに対するパスと
22 // Nucleus CMSの基本機能に関する設定を行います
24 // MySQLサーバへ接続するための諸設定
25 $MYSQL_HOST = 'hostname';
26 $MYSQL_USER = 'username';
27 $MYSQL_PASSWORD = 'password';
28 $MYSQL_DATABASE = 'databasename';
31 // 3.50で導入された値。第1引数はデータベースハンドラです。第2引数はハンドラで使われるドライバです。
33 // $MYSQL_HANDLER = array('mysql','');
35 //$MYSQL_HANDLER = array('mysql','mysql');
36 //$MYSQL_HANDLER = array('pdo','mysql');
37 $MYSQL_HANDLER = array('mysql','');
39 // サーバコンピュータ内でのコアへのフルパス
40 $DIR_NUCLEUS = '/your/path/to/nucleus/';
42 // サーバコンピュータ内でのメディア用ディレクトリへのフルパス
43 $DIR_MEDIA = '/your/path/to/media/';
45 // サーバコンピュータ内でのスキン用ディレクトリへのフルパス
46 $DIR_SKINS = '/your/path/to/skins/';
48 // プラグイン用ディレクトリ、言語ファイル用ディレクトリ、コアライブラリへのフルパス
49 // 通常はコアの子ディレクトリとなりますが、任意に設定する事もできます
50 $DIR_PLUGINS = $DIR_NUCLEUS . 'plugins/';
51 $DIR_LANG = $DIR_NUCLEUS . 'language/';
52 $DIR_LIBS = $DIR_NUCLEUS . 'libs/';
54 if (!@file_exists($DIR_LIBS . 'globalfunctions.php')) {
55 header('Content-type: text/html; charset=utf-8');
56 echo '設定がおかしいです。<a href="./install/index.php">インストール用スクリプト</a>を起動するか、config.phpの設定値を変更して下さい。';
61 include($DIR_LIBS.'globalfunctions.php');