+ add the feature of export config.

This commit is contained in:
wangchunsheng
2010-07-02 07:59:51 +00:00
parent ff42d1f2eb
commit 978649b530

View File

@@ -40,6 +40,9 @@ $config = $app->loadConfig('common');
$app->setDebug();
$app->setTimezone();
/* 判断是否有GET变量mode=getconfig。*/
if(isset($_GET['mode']) and $_GET['mode'] == 'getconfig') die($app->exportConfig());
/* 检查是否已经安装。*/
if(!isset($config->installed) or !$config->installed) die(header('location: install.php'));