[phpBB Debug] PHP Warning: in file [ROOT]/includes/crs/crs_misc_functions.php on line 37: mime_content_type(): Empty filename or path
[phpBB Debug] PHP Warning: in file [ROOT]/includes/crs/crs_misc_functions.php on line 37: mime_content_type(): Empty filename or path
Zen Cart 源代码 init_tlds.php

Zen Cart 源代码 init_tlds.php




下载文件

文件名: init_tlds.php
文件类型: PHP文件
文件大小: 965 Bytes
MD5: 87e4240a0bd259e68a07f4d5bcff5787

init_tlds.php - 关闭高亮
  1. <?php
  2. /**
  3.  * set some top level domain variables
  4.  * see {@link  http://www.zen-cart.com/wiki/index.php/Developers_API_Tutorials#InitSystem wikitutorials} for more details.
  5.  *
  6.  * @package initSystem
  7.  * @copyright Copyright 2003-2010 Zen Cart Development Team
  8.  * @copyright Portions Copyright 2003 osCommerce
  9.  * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
  10.  * @version $Id: init_tlds.php 16435 2010-05-28 09:34:32Z drbyte $
  11.  */
  12. if (!defined('IS_ADMIN_FLAG')) {
  13.  die('Illegal Access');
  14. }
  15. $http_domain = zen_get_top_level_domain(HTTP_SERVER);
  16. $https_domain = zen_get_top_level_domain(HTTPS_SERVER);
  17. $cookieDomain = $current_domain = (($request_type == 'NONSSL') ? $http_domain : $https_domain);
  18. if (defined('HTTP_COOKIE_DOMAIN') && ($request_type == 'NONSSL'))
  19. {
  20.   $cookieDomain = HTTP_COOKIE_DOMAIN;
  21. } elseif (defined('HTTPS_COOKIE_DOMAIN') && ($request_type != 'NONSSL'))
  22. {
  23.   $cookieDomain = HTTPS_COOKIE_DOMAIN;
  24. }