- <?
- /**
- * The Component Package
- * This is the init file for the myPHP Component system
- *
- * @package component
- * @filesource
- * @see MYPHP_COMPONENT_PATH/init.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 HTML_BASE_PATH Defines the Path to the packages, FIXED, do not change
- */
- define('HTML_COMPONENT_PATH', MYPHP_COMPONENT_PATH.'/html');
-
- /**
- * @global HTML_XYZ_PATH Defines the Path to each package, FIXED, do not change
- */
- define('HTML_COMPONENT_PAGE_PATH' , HTML_COMPONENT_PATH.'/page');
- define('HTML_COMPONENT_RESOURCE_PATH', HTML_COMPONENT_PATH.'/resource');
- define('HTML_COMPONENT_UTIL_PATH' , HTML_COMPONENT_PATH.'/util');
-
- /**
- * Define the system Component constants, FIXED, do not change ...
- * must be called before Default.php
- * @see HTML_COMPONENT_RESOURCE_PATH.'/Define.php' The Define Component Package
- */
- if (defined('HTML_COMPONENT_RESOURCE_PATH')) {
- if (file_exists(HTML_COMPONENT_RESOURCE_PATH.'/Define.php')) {
- require_once(HTML_COMPONENT_RESOURCE_PATH.'/Define.php');
- } else {
- die('MYPHP_COMPONENT_PATH/init.php, Unable to include HTML_COMPONENT_RESOURCE_PATH/Define.php from '.HTML_COMPONENT_RESOURCE_PATH);
- }
- }
-
- /**
- * Define the default Component values, FIXED, do not change ...
- * NOTE: Define.php must be called this file
- * @see HTML_COMPONENT_RESOURCE_PATH.'/Default.php' The Default Component Package
- */
- if (defined('HTML_COMPONENT_RESOURCE_PATH')) {
- if (file_exists(HTML_COMPONENT_RESOURCE_PATH.'/Default.php')) {
- require_once(HTML_COMPONENT_RESOURCE_PATH.'/Default.php');
- } else {
- die('MYPHP_COMPONENT_PATH/init.php, Unable to include HTML_COMPONENT_RESOURCE_PATH/Default.php from '.HTML_COMPONENT_RESOURCE_PATH);
- }
- }
-
- /**
- * Initializes the Component system with Request params, FIXED, do not change ...
- * The Initialize must come before ./config.php and <root>/setup.php
- * @see HTML_COMPONENT_RESOURCE_PATH.'/Initialize.php' The Component Initialize Package
- */
- if (defined('HTML_COMPONENT_RESOURCE_PATH')) {
- if (file_exists(HTML_COMPONENT_RESOURCE_PATH.'/Initialize.php')) {
- require_once(HTML_COMPONENT_RESOURCE_PATH.'/Initialize.php');
- } else {
- die('MYPHP_COMPONENT_PATH/init.php, Unable to include HTML_COMPONENT_RESOURCE_PATH/Initialize.php from '.HTML_COMPONENT_RESOURCE_PATH);
- }
- }
- ?>