From 978649b5306a44bce658a090e6adcaf820d80c04 Mon Sep 17 00:00:00 2001 From: wangchunsheng Date: Fri, 2 Jul 2010 07:59:51 +0000 Subject: [PATCH] + add the feature of export config. --- trunk/www/index.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/trunk/www/index.php b/trunk/www/index.php index 8bdbcd4b13..6030170df5 100644 --- a/trunk/www/index.php +++ b/trunk/www/index.php @@ -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'));