phpDocumentor db
[ class tree: db ] [ index: db ] [ all elements ]

Source for file Setup.php

Documentation is available at Setup.php

  1. <?
  2. /**
  3. * Setup of the Base system constants
  4. * Use the default value if not defined
  5. *
  6. * @package db
  7. * @filesource
  8. * @see HTML_DB_RESOURCE_PATH/Setup.php
  9. * @copyright (c) http://Finn-Rasmussen.com
  10. * @license http://Finn-Rasmussen.com/license/ myPHP License conditions
  11. * @author http://Finn-Rasmussen.com
  12. * @version 1.9
  13. * @since 21-oct-2005
  14. */
  15.  
  16. /**
  17. * @global CSS_ATAB_BODY The CSS aTab Body to use
  18. */
  19. if (!defined('CSS_ATAB_BODY')) {
  20. define('CSS_ATAB_BODY', CSS_BODY);
  21. }
  22.  
  23. /**
  24. * @global DATABASE_PREFIX The Database Prefix to use
  25. */
  26. if (!defined('DATABASE_PREFIX')) {
  27. define('DATABASE_PREFIX', DEFAULT_DATABASE_PREFIX);
  28. }
  29.  
  30. /**
  31. * Always, create the global connection object, FIXED, do not change ...
  32. * @see DATABASE_CONFIG_PATH.DATABASE_CONFIG_PREFIX.DATABASE_CONFIG_NAME.'.php'
  33. * @see HTML_DB_DATABASE_PATH.'/Connection.php' The Connection object
  34. * @global GLOBAL_DB_CONNECTION_NAME The name of the Global DB Connection File Name
  35. */
  36. if (defined('HTML_DB_DATABASE_PATH')) {
  37. if (file_exists(HTML_DB_DATABASE_PATH.'/Connection.php')) {
  38. require_once(HTML_DB_DATABASE_PATH.'/Connection.php');
  39. require_once(DATABASE_CONFIG_PATH.DATABASE_CONFIG_PREFIX.DATABASE_CONFIG_NAME.'.php');
  40. $GLOBALS[GLOBAL_DB_CONNECTION_NAME] = new Connection($mysqlHost,$mysqlUsername,$mysqlPassword,$mysqlDatabase,$mysqlPersistent);
  41. } else {
  42. die(getcwd().', Unable to include HTML_DB_DATABASE_PATH/Connection.php from '.HTML_DB_DATABASE_PATH);
  43. }
  44. }
  45.  
  46. ?>

Documentation generated on Thu, 22 Dec 2005 17:17:59 +0100 by phpDocumentor 1.3.0RC3