|
ZenCart_Documentation
1.5.0
http://www.collinsharper.com
|
00001 <?php 00009 if (!defined('IS_ADMIN_FLAG')) { 00010 die('Illegal Access'); 00011 } 00012 $http_domain = zen_get_top_level_domain(HTTP_SERVER); 00013 $https_domain = zen_get_top_level_domain(HTTPS_SERVER); 00014 $cookieDomain = $current_domain = (($request_type == 'NONSSL') ? $http_domain : $https_domain); 00015 if (defined('HTTP_COOKIE_DOMAIN') && ($request_type == 'NONSSL')) 00016 { 00017 $cookieDomain = HTTP_COOKIE_DOMAIN; 00018 } elseif (defined('HTTPS_COOKIE_DOMAIN') && ($request_type != 'NONSSL')) 00019 { 00020 $cookieDomain = HTTPS_COOKIE_DOMAIN; 00021 }