- <?
- /**
- * Initialize the Tab Package.
- * Initialize the Tab constants from the POST/GET request
- * or from the default values
- *
- * @package tab
- * @filesource
- * @see HTML_TAB_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 Tab components to show
- * or extract info from GET/POST
- * @global TAB_SHOW The Tab to Show
- */
- if (!defined('TAB_SHOW')) {
- if (empty($_GET[REQUEST_TAB_SHOW])) {
- if (empty($_POST[REQUEST_TAB_SHOW])) {
- // define it later
- } else {
- define('TAB_SHOW' ,$_POST[REQUEST_TAB_SHOW]);
- }
- } else {
- /**
- * @ignore
- */
- define('TAB_SHOW' ,$_GET[REQUEST_TAB_SHOW]);
- }
- }
-
- /**
- * Choose, The Layout of the Menu
- * or extract info from GET/POST
- * @global LAYOUT_MENU_TAB_WIDTH The Layout Menu Tab Width to use
- */
- if (!defined('LAYOUT_MENU_TAB_WIDTH')) {
- if (empty($_GET[REQUEST_LAYOUT_MENU_TAB_WIDTH])) {
- if (empty($_POST[REQUEST_LAYOUT_MENU_TAB_WIDTH])) {
- // define it later
- } else {
- define('LAYOUT_MENU_TAB_WIDTH' ,$_POST[REQUEST_LAYOUT_MENU_TAB_WIDTH]);
- }
- } else {
- /**
- * @ignore
- */
- define('LAYOUT_MENU_TAB_WIDTH' ,$_GET[REQUEST_LAYOUT_MENU_TAB_WIDTH]);
- }
- }
- ?>