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

Source for file init.php

Documentation is available at init.php

  1. <?
  2. /**
  3. * The DB Package.
  4. * This is the init file for the myPHP DB package
  5. *
  6. * @package db
  7. * @filesource
  8. * @see MYPHP_DB_PATH/init.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 HTML_DB_PATH Defines the Path to each package, FIXED, do not change
  18. */
  19. define('HTML_DB_PATH' , MYPHP_DB_PATH.'/html');
  20. define('HTML_DB_DATABASE_PATH' , HTML_DB_PATH.'/mysql');
  21. define('HTML_DB_RESOURCE_PATH' , HTML_DB_PATH.'/resource');
  22. define('HTML_DB_QUERY_PATH' , HTML_DB_PATH.'/query');
  23. define('HTML_DB_TEST_PATH' , HTML_DB_PATH.'/test');
  24. define('HTML_DB_VIEW_PATH' , HTML_DB_PATH.'/view');
  25.  
  26. /**
  27. * Define the system constants, FIXED, do not change ...
  28. * must be called before Default.php
  29. * @see HTML_DB_RESOURCE_PATH.'/Define.php', The Define Package
  30. */
  31. if (defined('HTML_DB_RESOURCE_PATH')) {
  32. if (file_exists(HTML_DB_RESOURCE_PATH.'/Define.php')) {
  33. require_once(HTML_DB_RESOURCE_PATH.'/Define.php');
  34. } else {
  35. die('MYPHP_DB_PATH/init.php, Unable to include HTML_DB_RESOURCE_PATH/Define.php from '.HTML_DB_RESOURCE_PATH);
  36. }
  37. }
  38.  
  39. /**
  40. * Define the default values, FIXED, do not change ...
  41. * NOTE: Define.php must be called before this file
  42. * @see HTML_DB_RESOURCE_PATH.'/Default.php', The Default Package
  43. */
  44. if (defined('HTML_DB_RESOURCE_PATH')) {
  45. if (file_exists(HTML_DB_RESOURCE_PATH.'/Default.php')) {
  46. require_once(HTML_DB_RESOURCE_PATH.'/Default.php');
  47. } else {
  48. die('MYPHP_DB_PATH/init.php, Unable to include HTML_DB_RESOURCE_PATH/Default.php from '.HTML_DB_RESOURCE_PATH);
  49. }
  50. }
  51. ?>

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