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

Source for file myphp-init.php

Documentation is available at myphp-init.php

  1. <?
  2. /**
  3. * The init file for the myPHP packages.
  4. * This is the global init file for all the packages in the myPHP system
  5. * This is where all the different packages are initialized
  6. *
  7. * @package myPHP
  8. * @filesource
  9. * @see PORTAL_PATH.CURRENT_MYPHP_VERSION/myphp-init.php
  10. * @copyright (c) http://Finn-Rasmussen.com
  11. * @license http://Finn-Rasmussen.com/license/ myPHP License conditions
  12. * @author http://Finn-Rasmussen.com
  13. * @version 1.9
  14. * @since 21-oct-2005
  15. */
  16.  
  17. /**
  18. * Site package definition.
  19. * root/DEFAULT_SITE_PACKAGE_FILE_NAME
  20. * Initialize the global root/DEFAULT_SITE_PACKAGE_FILE_NAME, FIXED, do not change ...
  21. * The root/DEFAULT_SITE_PACKAGE_FILE_NAME must come before others
  22. * @see PROJECT_PATH.DEFAULT_SITE_PACKAGE_FILE_NAME The global Site Packages for the Site
  23. * @see HTML_CACHE_UTIL_PATH.'/Cache.php' The Cache class
  24. */
  25.  
  26. if (defined('MYPHP_TEMPLATE_PATH')) {
  27. require_once(MYPHP_TEMPLATE_PATH.'/init.php');
  28. }
  29. if (file_exists(PROJECT_PATH.DEFAULT_SITE_PACKAGE_FILE_NAME)) {
  30. require_once(PROJECT_PATH.DEFAULT_SITE_PACKAGE_FILE_NAME); // Site Packages
  31. } else {
  32. die('MYPHP_PATH/init.php, Unable to include '.PROJECT_PATH.DEFAULT_SITE_PACKAGE_FILE_NAME);
  33. }
  34. if (file_exists('.'.DEFAULT_PAGE_PACKAGE_FILE_NAME)) {
  35. require_once('.'.DEFAULT_PAGE_PACKAGE_FILE_NAME); // Local Packages
  36. } else {
  37. // Ok, if no local Page Package definition
  38. }
  39. if (defined('MYPHP_CACHE_PATH')) {
  40. require_once(MYPHP_CACHE_PATH.'/init.php');
  41. }
  42. if (defined('CACHE_BASE') && CACHE_BASE) {
  43. if (defined('HTML_CACHE_UTIL_PATH') && file_exists(HTML_CACHE_UTIL_PATH.'/Cache.php')) {
  44. require_once(HTML_CACHE_UTIL_PATH.'/Cache.php');
  45. /**
  46. * Use locale cache html file, if exists
  47. * The cache parameters are defined in the Base package
  48. * @see Cache::read()
  49. */
  50. Cache::read(); // And exit
  51. } else {
  52. // Ignore cache
  53. }
  54. } else {
  55. // Ok, no cache
  56. }
  57. if (defined('MYPHP_CMS_PATH')) {
  58. require_once(MYPHP_CMS_PATH.'/init.php');
  59. }
  60. if (defined('MYPHP_COMPONENT_PATH')) {
  61. require_once(MYPHP_COMPONENT_PATH.'/init.php');
  62. }
  63. if (defined('MYPHP_DIBS_PATH')) {
  64. require_once(MYPHP_DIBS_PATH.'/init.php');
  65. }
  66. if (defined('MYPHP_MENU_PATH')) {
  67. require_once(MYPHP_MENU_PATH.'/init.php');
  68. }
  69. if (defined('MYPHP_TAB_PATH')) {
  70. require_once(MYPHP_TAB_PATH.'/init.php');
  71. }
  72. if (defined('MYPHP_LAYOUT_PATH')) {
  73. require_once(MYPHP_LAYOUT_PATH.'/init.php');
  74. }
  75. if (defined('MYPHP_FILE_PATH')) {
  76. require_once(MYPHP_FILE_PATH.'/init.php');
  77. }
  78. if (defined('MYPHP_FORM_PATH')) {
  79. require_once(MYPHP_FORM_PATH.'/init.php');
  80. }
  81. if (defined('MYPHP_LANGUAGE_PATH')) {
  82. require_once(MYPHP_LANGUAGE_PATH.'/init.php');
  83. }
  84. if (defined('MYPHP_LOG_PATH')) {
  85. require_once(MYPHP_LOG_PATH.'/init.php');
  86. }
  87. if (defined('MYPHP_NN_PATH')) {
  88. require_once(MYPHP_NN_PATH.'/init.php');
  89. }
  90. if (defined('MYPHP_PAGE_PATH')) {
  91. require_once(MYPHP_PAGE_PATH.'/init.php');
  92. }
  93. if (defined('MYPHP_TABLE_PATH')) {
  94. require_once(MYPHP_TABLE_PATH.'/init.php');
  95. }
  96. if (defined('MYPHP_UTIL_PATH')) {
  97. require_once(MYPHP_UTIL_PATH.'/init.php');
  98. }
  99. if (defined('MYPHP_PROFILER_PATH')) {
  100. require_once(MYPHP_PROFILER_PATH.'/init.php');
  101. }
  102. if (defined('MYPHP_DB_PATH')) {
  103. require_once(MYPHP_DB_PATH.'/init.php');
  104. }
  105. if (defined('MYPHP_SMS_PATH')) {
  106. require_once(MYPHP_SMS_PATH.'/init.php');
  107. }
  108. if (defined('MYPHP_SHOW_SOURCE_PATH')) {
  109. require_once(MYPHP_SHOW_SOURCE_PATH.'/init.php');
  110. }
  111. if (defined('MYPHP_PRODUCT_PATH')) {
  112. require_once(MYPHP_PRODUCT_PATH.'/init.php');
  113. }
  114. if (defined('MYPHP_ECOMMERCE_PATH')) {
  115. require_once(MYPHP_ECOMMERCE_PATH.'/init.php');
  116. }
  117. if (defined('MYPHP_BASKET_PATH')) {
  118. require_once(MYPHP_BASKET_PATH.'/init.php');
  119. }
  120. if (defined('MYPHP_SAX_PATH')) {
  121. require_once(MYPHP_SAX_PATH.'/init.php');
  122. }
  123. if (defined('MYPHP_SUMMA_PATH')) {
  124. require_once(MYPHP_SUMMA_PATH.'/init.php');
  125. }
  126. if (defined('MYPHP_MVC_PATH')) {
  127. require_once(MYPHP_MVC_PATH.'/init.php');
  128. }
  129. if (defined('MYPHP_SECURITY_PATH')) {
  130. require_once(MYPHP_SECURITY_PATH.'/init.php');
  131. }
  132. if (defined('MYPHP_TREE_NODE_PATH')) {
  133. require_once(MYPHP_TREE_NODE_PATH.'/init.php');
  134. }
  135. ?>

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