* fix the issue of E_STRICT.
This commit is contained in:
+3
-3
@@ -23,6 +23,8 @@
|
||||
* @version $Id$
|
||||
* @link http://www.zentao.cn
|
||||
*/
|
||||
error_reporting(0);
|
||||
|
||||
/* 记录最开始的时间。*/
|
||||
$timeStart = _getTime();
|
||||
|
||||
@@ -35,6 +37,7 @@ include '../framework/helper.class.php';
|
||||
/* 实例化路由对象,加载配置,设置时区。*/
|
||||
$app = router::createApp('pms', dirname(dirname(__FILE__)));
|
||||
$config = $app->loadConfig('common');
|
||||
$app->setDebug();
|
||||
$app->setTimezone();
|
||||
|
||||
/* 检查是否已经安装。*/
|
||||
@@ -43,9 +46,6 @@ if(!isset($config->installed) or !$config->installed) die(header('location: inst
|
||||
/* 连接到数据库。*/
|
||||
$dbh = $app->connectDB();
|
||||
|
||||
/* 根据debug选项设置错误信息。*/
|
||||
$config->debug ? error_reporting(E_ALL) : error_reporting(0);
|
||||
|
||||
/* 如果是debug模式,记录sql查询。*/
|
||||
if($config->debug) register_shutdown_function('_saveSQL');
|
||||
|
||||
|
||||
+3
-2
@@ -21,7 +21,7 @@
|
||||
* @version $Id$
|
||||
* @link http://www.zentao.cn
|
||||
*/
|
||||
error_reporting(E_ALL);
|
||||
error_reporting(0);
|
||||
session_start();
|
||||
define('IN_INSTALL', true);
|
||||
|
||||
@@ -31,9 +31,10 @@ include '../framework/control.class.php';
|
||||
include '../framework/model.class.php';
|
||||
include '../framework/helper.class.php';
|
||||
|
||||
/* 实例化路由对象,加载配置,连接到数据库。*/
|
||||
/* 实例化路由对象,加载配置。*/
|
||||
$app = router::createApp('pms', dirname(dirname(__FILE__)));
|
||||
$config = $app->loadConfig('common');
|
||||
$app->setDebug();
|
||||
|
||||
/* 检查是否已经安装过。*/
|
||||
if(!isset($_SESSION['installing']) and isset($config->installed) and $config->installed) die(header('location: index.php'));
|
||||
|
||||
+2
-1
@@ -21,7 +21,7 @@
|
||||
* @version $Id$
|
||||
* @link http://www.zentao.cn
|
||||
*/
|
||||
error_reporting(E_ALL);
|
||||
error_reporting(0);
|
||||
|
||||
/* 包含必须的类文件。*/
|
||||
include '../framework/router.class.php';
|
||||
@@ -32,6 +32,7 @@ include '../framework/helper.class.php';
|
||||
/* 实例化路由对象,加载配置,连接到数据库。*/
|
||||
$app = router::createApp('pms', dirname(dirname(__FILE__)));
|
||||
$config = $app->loadConfig('common');
|
||||
$app->setDebug();
|
||||
|
||||
/* 重新设置config参数,进行升级。*/
|
||||
$config->set('requestType', 'GET');
|
||||
|
||||
Reference in New Issue
Block a user