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