[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 源代码 set_time_zone.php

Zen Cart 源代码 set_time_zone.php




下载文件

文件名: set_time_zone.php
文件类型: PHP文件
文件大小: 849 Bytes
MD5: 9b8f37eb73c6a7c5411dc135d338db92

set_time_zone.php - 关闭高亮
  1. <?php
  2. /**
  3.  * @package initSystem
  4.  * @copyright Copyright 2003-2013 Zen Cart Development Team
  5.  * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
  6.  * @version GIT: $Id: Author: DrByte  Sat Nov 2 01:21:28 2013 -0400 New in v1.5.2 $
  7.  */
  8. /*
  9.  * Set time zone
  10. */
  11. if (version_compare(PHP_VERSION, 5.3, '>='))
  12. {
  13.   // put your timezone here. Refer to http://www.php.net/manual/en/timezones.php
  14.   $TZ = '';  // eg: 'Europe/Oslo'
  15.  
  16.  
  17.  
  18.   /**
  19.    * MAKE NO CHANGES BELOW THIS LINE
  20.    *
  21.    * The following will take the timezone you specified above and apply it in your store.
  22.    * If you didn't specify one, it will try to use the setting from your server's PHP configuration
  23.    */
  24.   if ($TZ == '') {
  25.     $TZ = date_default_timezone_get();
  26.   }
  27.   if ($TZ != '') {
  28.     putenv('TZ=' . $TZ);
  29.     @date_default_timezone_set($TZ);
  30.   }
  31. }