phpDocumentor component
[ class tree: component ] [ index: component ] [ all elements ]

Source for file Initialize.php

Documentation is available at Initialize.php

  1. <?
  2. /**
  3. * The Initialize resource file.
  4. * Initialize the system constants from the POST/GET request
  5. * or from the default values
  6. *
  7. * @package component
  8. * @filesource
  9. * @see HTML_COMPONENT_RESOURCE_PATH/Initialize.php
  10. * @copyright (c) http://Finn-Rasmussen.com
  11. * @license http://Finn-Rasmussen.com/license/ myPHP License conditions
  12. * @author http://Finn-Rasmussen.com
  13. * @version 1.9
  14. * @since 21-oct-2005
  15. */
  16.  
  17. /**
  18. * Choose, which components to show
  19. * or extract info from GET/POST
  20. * @global COMPONENT_SHOW The Component to Show
  21. */
  22. if (!defined('COMPONENT_SHOW')) {
  23. if (empty($_GET[REQUEST_COMPONENT_SHOW])) {
  24. if (empty($_POST[REQUEST_COMPONENT_SHOW])) {
  25. // define it later
  26. } else {
  27. /**
  28. * @ignore
  29. */
  30. define('COMPONENT_SHOW' ,$_POST[REQUEST_COMPONENT_SHOW]);
  31. }
  32. } else {
  33. /**
  34. * @ignore
  35. */
  36. define('COMPONENT_SHOW' ,$_GET[REQUEST_COMPONENT_SHOW]);
  37. }
  38. }
  39. ?>

Documentation generated on Thu, 22 Dec 2005 17:12:04 +0100 by phpDocumentor 1.3.0RC3