4 * Nucleus: PHP/MySQL Weblog CMS (http://nucleuscms.org/)
5 * Copyright (C) 2002-2012 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)
14 // このファイルはサーバ内のディレクトリに対するパスと
15 // Nucleus CMSの基本機能に関する設定を行います
17 // MySQLサーバへ接続するための諸設定
18 $MYSQL_HOST = 'hostname';
19 $MYSQL_USER = 'username';
20 $MYSQL_PASSWORD = 'password';
21 $MYSQL_DATABASE = 'databasename';
24 // 3.50で導入された値。第1引数はデータベースハンドラです。第2引数はハンドラで使われるドライバです。
26 // $MYSQL_HANDLER = array('mysql','');
28 //$MYSQL_HANDLER = array('mysql','mysql');
29 //$MYSQL_HANDLER = array('pdo','mysql');
30 $MYSQL_HANDLER = array('mysql','');
32 // サーバコンピュータ内でのコアへのフルパス
33 $DIR_NUCLEUS = '/your/path/to/nucleus/';
35 // サーバコンピュータ内でのメディア用ディレクトリへのフルパス
36 $DIR_MEDIA = '/your/path/to/media/';
38 // サーバコンピュータ内でのスキン用ディレクトリへのフルパス
39 $DIR_SKINS = '/your/path/to/skins/';
41 // プラグイン用ディレクトリ、言語ファイル用ディレクトリ、コアライブラリへのフルパス
42 // 通常はコアの子ディレクトリとなりますが、任意に設定する事もできます
43 $DIR_PLUGINS = $DIR_NUCLEUS . 'plugins/';
44 $DIR_LANG = $DIR_NUCLEUS . 'language/';
45 $DIR_LIBS = $DIR_NUCLEUS . 'libs/';
47 if (!@file_exists($DIR_LIBS . 'globalfunctions.php')) {
48 header('Content-type: text/html; charset=utf-8');
49 echo '設定がおかしいです。<a href="./install/index.php">インストール用スクリプト</a>を起動するか、config.phpの設定値を変更して下さい。';
54 include($DIR_LIBS.'globalfunctions.php');