4 * Nucleus: PHP/MySQL Weblog CMS (http://nucleuscms.org/)
5 * Copyright (C) 2002-2009 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)
15 * Nucleus configration file
16 * @license http://nucleuscms.org/license.txt GNU General Public License
17 * @copyright Copyright (C) 2002-2009 The Nucleus Group
21 // This file contains variables with the locations of the data dirs
22 // and basic functions that every page can use
24 // mySQL connection information
25 $MYSQL_HOST = 'hostname';
26 $MYSQL_USER = 'username';
27 $MYSQL_PASSWORD = 'password';
28 $MYSQL_DATABASE = 'databasename';
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');
35 // main nucleus directory
36 $DIR_NUCLEUS = '/your/path/to/nucleus/';
39 $DIR_MEDIA = '/your/path/to/media/';
41 // extra skin files for imported skins
42 $DIR_SKINS = '/your/path/to/skins/';
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/';
50 if (!@file_exists($DIR_LIBS . 'globalfunctions.php')) {
51 echo 'Configuration error, please run the <a href="./install/index.php">install script</a> or modify config.php';
56 include($DIR_LIBS.'globalfunctions.php');
57 if (!extension_loaded('mbstring')) {
58 include($DIR_LIBS.'mb_emulator/mb-emulator.php');