OSDN Git Service

NP_Ping and related infrastructure changes. (admun)
[nucleus-jp/nucleus-jp-ancient.git] / utf8 / config.php
1 <?php
2
3 /*
4  * Nucleus: PHP/MySQL Weblog CMS (http://nucleuscms.org/)
5  * Copyright (C) 2002-2009 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-2009 The Nucleus Group
18  * @version $Id$
19  */
20
21 // This file contains variables with the locations of the data dirs
22 // and basic functions that every page can use
23
24 // mySQL connection information
25 $MYSQL_HOST     = 'hostname';
26 $MYSQL_USER     = 'username';
27 $MYSQL_PASSWORD = 'password';
28 $MYSQL_DATABASE = 'databasename';
29 $MYSQL_PREFIX   = '';
30 // new in 3.50. first element is db handler, the second is the db driver used by the handler
31 // default is $MYSQL_HANDLER = array('mysql','mysql');
32 $MYSQL_HANDLER = array('mysql','mysql');
33 //$MYSQL_HANDLER = array('pdo','mysql');
34
35 // main nucleus directory
36 $DIR_NUCLEUS = '/your/path/to/nucleus/';
37
38 // media dir
39 $DIR_MEDIA   = '/your/path/to/media/';
40
41 // extra skin files for imported skins
42 $DIR_SKINS   = '/your/path/to/skins/';
43
44 // these dirs are normally subdirs of the nucleus dir, but
45 // you can redefine them if you wish
46 $DIR_PLUGINS = $DIR_NUCLEUS . 'plugins/';
47 $DIR_LANG    = $DIR_NUCLEUS . 'language/';
48 $DIR_LIBS    = $DIR_NUCLEUS . 'libs/';
49
50 if (!@file_exists($DIR_LIBS . 'globalfunctions.php')) {
51         echo 'Configuration error, please run the <a href="install.php">install script</a> or modify config.php';
52         exit;
53 }
54
55 // include libs
56 include($DIR_LIBS.'globalfunctions.php');
57 if (!extension_loaded('mbstring')) {
58         include($DIR_LIBS.'mb_emulator/mb-emulator.php');
59 }
60 ?>