phpDocumentor showsource
[ class tree: showsource ] [ index: showsource ] [ 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 showsource
  8. * @filesource
  9. * @see HTML_SHOW_SOURCE_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. * The Show Source Code.
  19. * <code>
  20. * Choose, to show the php source code
  21. * 0x0 Show none
  22. * 0x1 Show source code
  23. * </code>
  24. * @global SHOW_SOURCE_CODE
  25. */
  26. if (!defined('SHOW_SOURCE_CODE')) {
  27. if (empty($_GET[REQUEST_SHOW_SOURCE_CODE])) {
  28. if (empty($_POST[REQUEST_SHOW_SOURCE_CODE])) {
  29. // define it later
  30. } else {
  31. /**
  32. * @ignore
  33. */
  34. define('SHOW_SOURCE_CODE' ,$_POST[REQUEST_SHOW_SOURCE_CODE]);
  35. }
  36. } else {
  37. /**
  38. * @ignore
  39. */
  40. define('SHOW_SOURCE_CODE' ,$_GET[REQUEST_SHOW_SOURCE_CODE]);
  41. }
  42. }
  43. ?>

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