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

Source for file init.php

Documentation is available at init.php

  1. <?
  2. /**
  3. * The util Package.
  4. * This is the init file for the myPHP Util package
  5. *
  6. * @package showsource
  7. * @filesource
  8. * @see MYPHP_SHOW_SOURCE_PATH/init.php
  9. * @copyright (c) http://Finn-Rasmussen.com
  10. * @license http://Finn-Rasmussen.com/license/ myPHP License conditions
  11. * @author http://Finn-Rasmussen.com
  12. * @version 1.9
  13. * @since 21-oct-2005
  14. */
  15.  
  16. /**
  17. * Defines the Path to the Show Source package, FIXED, do not change ...
  18. * @global HTML_SHOW_SOURCE_PATH Html Show Source path
  19. */
  20. define('HTML_SHOW_SOURCE_PATH' , MYPHP_SHOW_SOURCE_PATH.'/html');
  21. define('HTML_SHOW_SOURCE_UTIL_PATH' , HTML_SHOW_SOURCE_PATH.'/util');
  22. define('HTML_SHOW_SOURCE_RESOURCE_PATH', HTML_SHOW_SOURCE_PATH.'/resource');
  23. define('HTML_SHOW_SOURCE_TEST_PATH' , HTML_SHOW_SOURCE_PATH.'/test');
  24.  
  25. /**
  26. * Define the system constants, FIXED, do not change ...
  27. * must be called before Default.php
  28. * @global HTML_SHOW_SOURCE_RESOURCE_PATH.'/Define.php', The Define Package
  29. */
  30. if (defined('HTML_SHOW_SOURCE_RESOURCE_PATH')) {
  31. if (file_exists(HTML_SHOW_SOURCE_RESOURCE_PATH.'/Define.php')) {
  32. require_once(HTML_SHOW_SOURCE_RESOURCE_PATH.'/Define.php');
  33. } else {
  34. die('MYPHP_SHOW_SOURCE_PATH/init.php, Unable to include HTML_SHOW_SOURCE_RESOURCE_PATH/Define.php from '.HTML_SHOW_SOURCE_RESOURCE_PATH);
  35. }
  36. }
  37.  
  38. /**
  39. * Define the default values, FIXED, do not change ...
  40. * NOTE: Define.php must be called before this file
  41. * @global HTML_SHOW_SOURCE_RESOURCE_PATH.'/Default.php', The Default Package
  42. */
  43. if (defined('HTML_SHOW_SOURCE_RESOURCE_PATH')) {
  44. if (file_exists(HTML_SHOW_SOURCE_RESOURCE_PATH.'/Default.php')) {
  45. require_once(HTML_SHOW_SOURCE_RESOURCE_PATH.'/Default.php');
  46. } else {
  47. die('MYPHP_SHOW_SOURCE_PATH/init.php, Unable to include HTML_SHOW_SOURCE_RESOURCE_PATH/Default.php from '.HTML_SHOW_SOURCE_RESOURCE_PATH);
  48. }
  49. }
  50.  
  51. /**
  52. * Initializes the Show Source Code system with Request params, FIXED, do not change ...
  53. * The Initialize must come before ./config.php and <root>/setup.php
  54. * @global HTML_SHOW_SOURCE_RESOURCE_PATH.'/Initialize.php', The Show Source Code Initialize Package
  55. */
  56. if (defined('HTML_SHOW_SOURCE_RESOURCE_PATH')) {
  57. if (file_exists(HTML_SHOW_SOURCE_RESOURCE_PATH.'/Initialize.php')) {
  58. require_once(HTML_SHOW_SOURCE_RESOURCE_PATH.'/Initialize.php');
  59. } else {
  60. die('MYPHP_SHOW_SOURCE_PATH/init.php, Unable to include HTML_SHOW_SOURCE_RESOURCE_PATH/Initialize.php from '.HTML_SHOW_SOURCE_RESOURCE_PATH);
  61. }
  62. }
  63. ?>

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