OSDN Git Service

3.65sp1リリースのための修正
[nucleus-jp/nucleus-jp-ancient.git] / config.php
1 <?php
2
3 /*
4  * Nucleus: PHP/MySQL Weblog CMS (http://nucleuscms.org/)
5  * Copyright (C) 2002-2013 The Nucleus Group
6  *
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)
12  */
13
14 // このファイルはサーバ内のディレクトリに対するパスと
15 // Nucleus CMSの基本機能に関する設定を行います
16
17 // MySQLサーバへ接続するための諸設定
18 $MYSQL_HOST     = 'hostname';
19 $MYSQL_USER     = 'username';
20 $MYSQL_PASSWORD = 'password';
21 $MYSQL_DATABASE = 'databasename';
22 $MYSQL_PREFIX   = '';
23
24 // 3.50で導入された値。第1引数はデータベースハンドラです。第2引数はハンドラで使われるドライバです。
25 // デフォルト値は以下です。
26 // $MYSQL_HANDLER = array('mysql','');
27
28 //$MYSQL_HANDLER = array('mysql','mysql');
29 //$MYSQL_HANDLER = array('pdo','mysql');
30 $MYSQL_HANDLER = array('mysql','');
31
32 // サーバコンピュータ内でのコアへのフルパス
33 $DIR_NUCLEUS = '/your/path/to/nucleus/';
34
35 // サーバコンピュータ内でのメディア用ディレクトリへのフルパス
36 $DIR_MEDIA   = '/your/path/to/media/';
37
38 // サーバコンピュータ内でのスキン用ディレクトリへのフルパス
39 $DIR_SKINS   = '/your/path/to/skins/';
40
41 // プラグイン用ディレクトリ、言語ファイル用ディレクトリ、コアライブラリへのフルパス
42 // 通常はコアの子ディレクトリとなりますが、任意に設定する事もできます
43 $DIR_PLUGINS = $DIR_NUCLEUS . 'plugins/';
44 $DIR_LANG    = $DIR_NUCLEUS . 'language/';
45 $DIR_LIBS    = $DIR_NUCLEUS . 'libs/';
46
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の設定値を変更して下さい。';
50         exit;
51 }
52
53 // コアライブラリのパースをします
54 include($DIR_LIBS.'globalfunctions.php');
55 ?>