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

Source for file Setup.php

Documentation is available at Setup.php

  1. <?
  2. /**
  3. * Setup of the MVC system constants
  4. * Use the default value if not defined
  5. *
  6. * @package mvc
  7. * @filesource
  8. * @see HTML_MVC_RESOURCE_PATH/Setup.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. * @global MVC_COOKIE_NAME The Cookie Name for login and Basket
  18. */
  19. if (!defined('MVC_COOKIE_NAME')) {
  20. define('MVC_COOKIE_NAME', DEFAULT_MVC_COOKIE_NAME);
  21. }
  22.  
  23. /**
  24. * @global MVC_USERNAME The MVC Username if saved as a cookie. Flag to tell, if the user is logged in or not
  25. */
  26. if (!defined('MVC_USERNAME')) {
  27. if (!empty($_COOKIE[MVC_COOKIE_NAME])) {
  28. /**
  29. * @ignore
  30. */
  31. define('MVC_USERNAME' ,$_COOKIE[MVC_COOKIE_NAME]);
  32. } else {
  33. /**
  34. * @ignore
  35. */
  36. define('MVC_USERNAME' ,DEFAULT_MVC_USERNAME);
  37. }
  38. }
  39. ?>

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