- <?
- /**
- * The Menu Initialize resource file.
- * Initialize the system Menu constants from the POST/GET request
- * or from the default values
- *
- * @package menu
- * @filesource
- * @see HTML_MENU_RESOURCE_PATH/Initialize.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
- */
-
- /**
- * Choose, which LINK components to show
- * or extract info from GET/POST
- * @global LINK_SHOW The Link to Show
- */
- if (!defined('LINK_SHOW')) {
- if (empty($_GET[REQUEST_LINK_SHOW])) {
- if (empty($_POST[REQUEST_LINK_SHOW])) {
- // define it later
- } else {
- /**
- * @ignore
- */
- define('LINK_SHOW' ,$_POST[REQUEST_LINK_SHOW]);
- }
- } else {
- /**
- * @ignore
- */
- define('LINK_SHOW' ,$_GET[REQUEST_LINK_SHOW]);
- }
- }
-
- /**
- * Choose, The Layout of the Menu
- * or extract info from GET/POST
- * @global LAYOUT_MENU_WIDTH The Layout Menu Width to use
- */
- if (!defined('LAYOUT_MENU_WIDTH')) {
- if (empty($_GET[REQUEST_LAYOUT_MENU_WIDTH])) {
- if (empty($_POST[REQUEST_LAYOUT_MENU_WIDTH])) {
- // define it later
- } else {
- /**
- * @ignore
- */
- define('LAYOUT_MENU_WIDTH' ,$_POST[REQUEST_LAYOUT_MENU_WIDTH]);
- }
- } else {
- /**
- * @ignore
- */
- define('LAYOUT_MENU_WIDTH' ,$_GET[REQUEST_LAYOUT_MENU_WIDTH]);
- }
- }
-
- /**
- * Choose, The Layout of the Menu
- * or extract info from GET/POST
- * @global LAYOUT_MENU_TOP_WIDTH The Layout Menu Top Width to use
- */
- if (!defined('LAYOUT_MENU_TOP_WIDTH')) {
- if (empty($_GET[REQUEST_LAYOUT_MENU_TOP_WIDTH])) {
- if (empty($_POST[REQUEST_LAYOUT_MENU_TOP_WIDTH])) {
- // define it later
- } else {
- /**
- * @ignore
- */
- define('LAYOUT_MENU_TOP_WIDTH' ,$_POST[REQUEST_LAYOUT_MENU_TOP_WIDTH]);
- }
- } else {
- /**
- * @ignore
- */
- define('LAYOUT_MENU_TOP_WIDTH' ,$_GET[REQUEST_LAYOUT_MENU_TOP_WIDTH]);
- }
- }
-
- /**
- * Choose, The Layout of the Menu
- * or extract info from GET/POST
- * @global LAYOUT_MENU_LEFT_WIDTH The Layout Menu Left Width to use
- */
- if (!defined('LAYOUT_MENU_LEFT_WIDTH')) {
- if (empty($_GET[REQUEST_LAYOUT_MENU_LEFT_WIDTH])) {
- if (empty($_POST[REQUEST_LAYOUT_MENU_LEFT_WIDTH])) {
- // define it later
- } else {
- /**
- * @ignore
- */
- define('LAYOUT_MENU_LEFT_WIDTH' ,$_POST[REQUEST_LAYOUT_MENU_LEFT_WIDTH]);
- }
- } else {
- /**
- * @ignore
- */
- define('LAYOUT_MENU_LEFT_WIDTH' ,$_GET[REQUEST_LAYOUT_MENU_LEFT_WIDTH]);
- }
- }
-
- /**
- * Choose, The Layout of the Menu
- * or extract info from GET/POST
- * @global LAYOUT_MENU_RIGHT_WIDTH The Layout Menu Right Width to use
- */
- if (!defined('LAYOUT_MENU_RIGHT_WIDTH')) {
- if (empty($_GET[REQUEST_LAYOUT_MENU_RIGHT_WIDTH])) {
- if (empty($_POST[REQUEST_LAYOUT_MENU_RIGHT_WIDTH])) {
- // define it later
- } else {
- /**
- * @ignore
- */
- define('LAYOUT_MENU_RIGHT_WIDTH' ,$_POST[REQUEST_LAYOUT_MENU_RIGHT_WIDTH]);
- }
- } else {
- /**
- * @ignore
- */
- define('LAYOUT_MENU_RIGHT_WIDTH' ,$_GET[REQUEST_LAYOUT_MENU_RIGHT_WIDTH]);
- }
- }
- /**
- * Choose, The Layout of the Menu
- * or extract info from GET/POST
- * @global LAYOUT_MENU_BOTTOM_WIDTH The Layout Menu Bottom Width to use
- */
- if (!defined('LAYOUT_MENU_BOTTOM_WIDTH')) {
- if (empty($_GET[REQUEST_LAYOUT_MENU_BOTTOM_WIDTH])) {
- if (empty($_POST[REQUEST_LAYOUT_MENU_BOTTOM_WIDTH])) {
- // define it later
- } else {
- /**
- * @ignore
- */
- define('LAYOUT_MENU_BOTTOM_WIDTH' ,$_POST[REQUEST_LAYOUT_MENU_BOTTOM_WIDTH]);
- }
- } else {
- /**
- * @ignore
- */
- define('LAYOUT_MENU_BOTTOM_WIDTH' ,$_GET[REQUEST_LAYOUT_MENU_BOTTOM_WIDTH]);
- }
- }
- ?>