OSDN Git Service

git-svn-id: https://svn.sourceforge.jp/svnroot/nucleus-jp/nucleus-jp/trunk@912 1ca29b...
[nucleus-jp/nucleus-jp-ancient.git] / utf8 / config.php
1 <?php
2 /*\r
3  * Nucleus: PHP/MySQL Weblog CMS (http://nucleuscms.org/)\r
4  * Copyright (C) 2002-2009 The Nucleus Group\r
5  *\r
6  * This program is free software; you can redistribute it and/or\r
7  * modify it under the terms of the GNU General Public License\r
8  * as published by the Free Software Foundation; either version 2\r
9  * of the License, or (at your option) any later version.\r
10  * (see nucleus/documentation/index.html#license for more info)\r
11  */\r
12 \r
13 /**\r
14  * Nucleus configration file\r
15  * @license http://nucleuscms.org/license.txt GNU General Public License\r
16  * @copyright Copyright (C) 2002-2009 The Nucleus Group\r
17  * @version $Id$\r
18  */\r
19
20 // This file contains variables with the locations of the data dirs
21 // and basic functions that every page can use
22
23 // mySQL connection information
24 $MYSQL_HOST     = 'hostname';
25 $MYSQL_USER     = 'username';
26 $MYSQL_PASSWORD = 'password';
27 $MYSQL_DATABASE = 'databasename';
28 $MYSQL_PREFIX   = '';
29
30 // main nucleus directory
31 $DIR_NUCLEUS = '/your/path/to/nucleus/';
32
33 // media dir
34 $DIR_MEDIA = '/your/path/to/media/';
35
36 // extra skin files for imported skins
37 $DIR_SKINS = '/your/path/to/skins/';
38
39 // these dirs are normally subdirs of the nucleus dir, but
40 // you can redefine them if you wish
41 $DIR_PLUGINS = $DIR_NUCLEUS . 'plugins/';
42 $DIR_LANG    = $DIR_NUCLEUS . 'language/';
43 $DIR_LIBS    = $DIR_NUCLEUS . 'libs/';
44
45 if (!@file_exists($DIR_LIBS . 'globalfunctions.php')) {
46         echo 'Configuration error, please run the <a href="install.php">install script</a> or modify config.php';
47         exit;
48 }
49
50 // include libs
51 include($DIR_LIBS . 'globalfunctions.php');
52 if (!extension_loaded('mbstring')) {
53         include($DIR_LIBS.'mb_emulator/mb-emulator.php');
54 }
55 ?>