- <?
- /**
- * Setup of the MVC system constants
- * Use the default value if not defined
- *
- * @package mvc
- * @filesource
- * @see HTML_MVC_RESOURCE_PATH/Setup.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
- */
-
- /**
- * @global MVC_COOKIE_NAME The Cookie Name for login and Basket
- */
- if (!defined('MVC_COOKIE_NAME')) {
- define('MVC_COOKIE_NAME', DEFAULT_MVC_COOKIE_NAME);
- }
-
- /**
- * @global MVC_USERNAME The MVC Username if saved as a cookie. Flag to tell, if the user is logged in or not
- */
- if (!defined('MVC_USERNAME')) {
- if (!empty($_COOKIE[MVC_COOKIE_NAME])) {
- /**
- * @ignore
- */
- define('MVC_USERNAME' ,$_COOKIE[MVC_COOKIE_NAME]);
- } else {
- /**
- * @ignore
- */
- define('MVC_USERNAME' ,DEFAULT_MVC_USERNAME);
- }
- }
- ?>