diff --git a/install/install_config.php b/install/install_config.php
index 9df437041..c0519a8ce 100644
--- a/install/install_config.php
+++ b/install/install_config.php
@@ -1,8 +1,4 @@
-$title = "그누보드4s 설치 3단계 중 2단계 설정";
-include_once ('../config.php');
-include_once ('./install.inc.php');
-
$gmnow = gmdate('D, d M Y H:i:s').' GMT';
header('Expires: 0'); // rfc2616 - Section 14.21
header('Last-Modified: ' . $gmnow);
@@ -10,6 +6,10 @@ header('Cache-Control: no-store, no-cache, must-revalidate'); // HTTP/1.1
header('Cache-Control: pre-check=0, post-check=0, max-age=0'); // HTTP/1.1
header('Pragma: no-cache'); // HTTP/1.0
+$title = "그누보드4s 설치 3단계 중 2단계 설정";
+include_once ('../config.php');
+include_once ('./install.inc.php');
+
if ($_POST['agree'] != '동의함') {
echo "
라이센스(License) 내용에 동의하셔야 설치를 계속하실 수 있습니다.
".PHP_EOL;
echo "".PHP_EOL;
diff --git a/install/install_db.php b/install/install_db.php
index ae491ed03..93a7443a6 100644
--- a/install/install_db.php
+++ b/install/install_db.php
@@ -1,9 +1,5 @@
set_time_limit(0);
-
-include_once ('../config.php');
-include_once ('./install.inc.php');
-
$gmnow = gmdate('D, d M Y H:i:s') . ' GMT';
header('Expires: 0'); // rfc2616 - Section 14.21
header('Last-Modified: ' . $gmnow);
@@ -11,6 +7,9 @@ header('Cache-Control: no-store, no-cache, must-revalidate'); // HTTP/1.1
header('Cache-Control: pre-check=0, post-check=0, max-age=0'); // HTTP/1.1
header('Pragma: no-cache'); // HTTP/1.0
+include_once ('../config.php');
+include_once ('./install.inc.php');
+
//print_r($_POST); exit;
$mysql_host = $_POST['mysql_host'];