From: sparky4 Date: Tue, 17 Jul 2012 07:06:37 +0000 (-0500) Subject: modified: config.php X-Git-Url: http://4ch.mooo.com/gitweb/?p=test.git;a=commitdiff_plain;h=0d4230aa144fb639a729506d4b82c5ff332fc504 modified: config.php --- diff --git a/config.php b/config.php index d9c0034..178f81a 100755 --- a/config.php +++ b/config.php @@ -109,7 +109,9 @@ if(is_file('../../conk/.pass.php')) include('../../conk/.pass.php'); // The pass // 伺服器常態設定 if(!defined("PHP_SELF")) define("PHP_SELF", 'yotsubanome.php'); // このスクリプト名 // 主程式名 (若是修改了主程式名,請配合修改) //----define("TIME_ZONE", '-6'); // 時區設定 (GMT時區,參照 http://wwp.greenwichmeantime.com/ ) -date_default_timezone_set("America/Chicago"); +if(version_compare(PHP_VERSION, '5.0.0', '>=')){ // PHP5+ + date_default_timezone_set("America/Chicago"); +} $config['DATE_FORMAT'] = "Y/m/d"; // date format //++++$config['YOUBI'] = array(_T('sun'),_T('mon'),_T('tue'),_T('wed'),_T('thu'),_T('fri'),_T('sat')); // week format $config['TIME_FORMAT'] = 'H:i:s'; // time format