00001 <?php 00002 00003 // This file contains variables with the locations of the data dirs 00004 // and basic functions that every page can use 00005 00006 // mySQL connection information 00007 $MYSQL_HOST = 'hostname'; 00008 $MYSQL_USER = 'username'; 00009 $MYSQL_PASSWORD = 'password'; 00010 $MYSQL_DATABASE = 'databasename'; 00011 $MYSQL_PREFIX = ''; 00012 00013 // main nucleus directory 00014 $DIR_NUCLEUS = '/your/path/to/nucleus/'; 00015 00016 // media dir 00017 $DIR_MEDIA = '/your/path/to/media/'; 00018 00019 // extra skin files for imported skins 00020 $DIR_SKINS = '/your/path/to/skins/'; 00021 00022 // these dirs are normally subdirs of the nucleus dir, but 00023 // you can redefine them if you wish 00024 $DIR_PLUGINS = $DIR_NUCLEUS . 'plugins/'; 00025 $DIR_LANG = $DIR_NUCLEUS . 'language/'; 00026 $DIR_LIBS = $DIR_NUCLEUS . 'libs/'; 00027 00028 if (!@file_exists($DIR_LIBS . 'globalfunctions.php')) { 00029 echo "Configuration error, please run the install script or modify config.php"; 00030 exit; 00031 } 00032 00033 // include libs 00034 include($DIR_LIBS.'globalfunctions.php'); 00035 if (!extension_loaded('mbstring')) { 00036 include($DIR_LIBS.'mb_emulator/mb-emulator.php'); 00037 } 00038 ?>