- <?
- /**
- * Initialize the Tree Node constants from the POST/GET request
- * or from the default values
- *
- * @package tree-node
- * @filesource
- * @see HTML_TREE_NODE_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 Tree Nodes to show
- * or extract info from GET/POST
- * @global TREE_NODE_SHOW The Tree Node to Show
- */
- if (!defined('TREE_NODE_SHOW')) {
- if (empty($_GET[REQUEST_TREE_NODE_SHOW])) {
- if (empty($_POST[REQUEST_TREE_NODE_SHOW])) {
- // define it later
- } else {
- /**
- * @ignore
- */
- define('TREE_NODE_SHOW' ,$_POST[REQUEST_TREE_NODE_SHOW]);
- }
- } else {
- /**
- * @ignore
- */
- define('TREE_NODE_SHOW' ,$_GET[REQUEST_TREE_NODE_SHOW]);
- }
- }
- ?>