OSDN Git Service

FIX:Strict Standards: Only variables should be passed by reference in
[nucleus-jp/nucleus-next.git] / config.php.sample
1 <?php\r
2 \r
3 // This file contains variables with the locations of the data dirs\r
4 // and basic functions that every page can use\r
5 \r
6 // mySQL connection information\r
7 $MYSQL_HOST = 'hostname';\r
8 $MYSQL_USER = 'username';\r
9 $MYSQL_PASSWORD = 'password';\r
10 $MYSQL_DATABASE = 'databasename';\r
11 $MYSQL_PREFIX = '';\r
12 \r
13 // new in 3.50. first element is db handler, the second is the db driver used by the handler\r
14 // default is $MYSQL_HANDLER = array('mysql','mysql');\r
15 //$MYSQL_HANDLER = array('mysql','mysql');\r
16 //$MYSQL_HANDLER = array('pdo','mysql');\r
17 $MYSQL_HANDLER = array('mysql','');\r
18 \r
19 // main nucleus directory\r
20 $DIR_NUCLEUS = '/your/path/to/nucleus/';\r
21 \r
22 // media dir\r
23 $DIR_MEDIA = '/your/path/to/media/';\r
24 \r
25 // extra skin files for imported skins\r
26 $DIR_SKINS = '/your/path/to/skins/';\r
27 \r
28 // these dirs are normally subdirs of the nucleus dir, but\r
29 // you can redefine them if you wish\r
30 $DIR_PLUGINS = $DIR_NUCLEUS . 'plugins/';\r
31 $DIR_LOCALES = $DIR_NUCLEUS . 'locales/';\r
32 $DIR_LIBS = $DIR_NUCLEUS . 'libs/';\r
33 \r
34 if (!@file_exists($DIR_LIBS . 'globalfunctions.php')) {\r
35         echo "Configuration error, please run the install script or modify config.php";\r
36         exit;\r
37 }\r
38 \r
39 // include libs\r
40 include($DIR_LIBS.'globalfunctions.php');\r
41 \r
42 ?>\r