- <?
- /**
- * Setup of the Base system constants
- * Use the default value if not defined
- *
- * @package db
- * @filesource
- * @see HTML_DB_RESOURCE_PATH/Setup.php
- * @copyright (c) http://Finn-Rasmussen.com
- * @license http://Finn-Rasmussen.com/license/ myPHP License conditions
- * @author http://Finn-Rasmussen.com
- * @version 1.9
- * @since 21-oct-2005
- */
-
- /**
- * @global CSS_ATAB_BODY The CSS aTab Body to use
- */
- if (!defined('CSS_ATAB_BODY')) {
- define('CSS_ATAB_BODY', CSS_BODY);
- }
-
- /**
- * @global DATABASE_PREFIX The Database Prefix to use
- */
- if (!defined('DATABASE_PREFIX')) {
- define('DATABASE_PREFIX', DEFAULT_DATABASE_PREFIX);
- }
-
- /**
- * Always, create the global connection object, FIXED, do not change ...
- * @see DATABASE_CONFIG_PATH.DATABASE_CONFIG_PREFIX.DATABASE_CONFIG_NAME.'.php'
- * @see HTML_DB_DATABASE_PATH.'/Connection.php' The Connection object
- * @global GLOBAL_DB_CONNECTION_NAME The name of the Global DB Connection File Name
- */
- if (defined('HTML_DB_DATABASE_PATH')) {
- if (file_exists(HTML_DB_DATABASE_PATH.'/Connection.php')) {
- require_once(HTML_DB_DATABASE_PATH.'/Connection.php');
- require_once(DATABASE_CONFIG_PATH.DATABASE_CONFIG_PREFIX.DATABASE_CONFIG_NAME.'.php');
- $GLOBALS[GLOBAL_DB_CONNECTION_NAME] = new Connection($mysqlHost,$mysqlUsername,$mysqlPassword,$mysqlDatabase,$mysqlPersistent);
- } else {
- die(getcwd().', Unable to include HTML_DB_DATABASE_PATH/Connection.php from '.HTML_DB_DATABASE_PATH);
- }
- }
-
- ?>