OSDN Git Service

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