설치 코드 수정
This commit is contained in:
@ -4,6 +4,9 @@ include_once ('../config.php');
|
|||||||
include_once ('./install.inc.php');
|
include_once ('./install.inc.php');
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
<?
|
||||||
|
if ($exists_data_dir && $write_data_dir) {
|
||||||
|
?>
|
||||||
<p>
|
<p>
|
||||||
<strong class="st_strong">라이센스(License) 내용을 반드시 확인하십시오.</strong><br>
|
<strong class="st_strong">라이센스(License) 내용을 반드시 확인하십시오.</strong><br>
|
||||||
라이센스에 동의하시는 경우에만 설치가 진행됩니다.
|
라이센스에 동의하시는 경우에만 설치가 진행됩니다.
|
||||||
@ -11,8 +14,6 @@ include_once ('./install.inc.php');
|
|||||||
|
|
||||||
<textarea name="textarea" id="idx_license" readonly><?=implode('', file('../LICENSE.txt'));?></textarea>
|
<textarea name="textarea" id="idx_license" readonly><?=implode('', file('../LICENSE.txt'));?></textarea>
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<form action="./install_config.php" method="post" onsubmit="return frm_submit(this);">
|
<form action="./install_config.php" method="post" onsubmit="return frm_submit(this);">
|
||||||
<div id="idx_agree">
|
<div id="idx_agree">
|
||||||
<label for="agree">동의합니다.</label>
|
<label for="agree">동의합니다.</label>
|
||||||
@ -35,6 +36,11 @@ function frm_submit(f)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
<?
|
||||||
|
} // if
|
||||||
|
?>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
@ -53,6 +53,7 @@ if (file_exists($dbconfig_file)) {
|
|||||||
?>
|
?>
|
||||||
|
|
||||||
<?
|
<?
|
||||||
|
$exists_data_dir = true;
|
||||||
// data 디렉토리가 있는가?
|
// data 디렉토리가 있는가?
|
||||||
if (!is_dir($data_path))
|
if (!is_dir($data_path))
|
||||||
{
|
{
|
||||||
@ -62,10 +63,12 @@ if (!is_dir($data_path))
|
|||||||
$> mkdir <?=G4_DATA_DIR?><br /><br />
|
$> mkdir <?=G4_DATA_DIR?><br /><br />
|
||||||
위 명령 실행후 브라우저를 새로고침 하십시오.</p>
|
위 명령 실행후 브라우저를 새로고침 하십시오.</p>
|
||||||
<?
|
<?
|
||||||
|
$exists_data_dir = false;
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<?
|
<?
|
||||||
|
$write_data_dir = true;
|
||||||
// data 디렉토리에 파일 생성 가능한지 검사.
|
// data 디렉토리에 파일 생성 가능한지 검사.
|
||||||
if (strtoupper(substr(PHP_OS, 0, 3)) !== 'WIN') {
|
if (strtoupper(substr(PHP_OS, 0, 3)) !== 'WIN') {
|
||||||
if (!(is_readable($data_path) && is_writeable($data_path) && is_executable($data_path)))
|
if (!(is_readable($data_path) && is_writeable($data_path) && is_executable($data_path)))
|
||||||
@ -75,7 +78,7 @@ if (strtoupper(substr(PHP_OS, 0, 3)) !== 'WIN') {
|
|||||||
$> chmod 707 <?=G4_DATA_DIR?> 또는 chmod uo+rwx <?=G4_DATA_DIR?><br /><br />
|
$> chmod 707 <?=G4_DATA_DIR?> 또는 chmod uo+rwx <?=G4_DATA_DIR?><br /><br />
|
||||||
위 명령 실행후 브라우저를 새로고침 하십시오.</p>
|
위 명령 실행후 브라우저를 새로고침 하십시오.</p>
|
||||||
<?
|
<?
|
||||||
exit;
|
$write_data_dir = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
Reference in New Issue
Block a user