설치 코드 수정

This commit is contained in:
gnuboard
2013-03-20 10:14:25 +09:00
parent ef297dfcea
commit ce43fe11e5
2 changed files with 12 additions and 3 deletions

View File

@ -4,6 +4,9 @@ include_once ('../config.php');
include_once ('./install.inc.php');
?>
<?
if ($exists_data_dir && $write_data_dir) {
?>
<p>
<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>
</div>
<form action="./install_config.php" method="post" onsubmit="return frm_submit(this);">
<div id="idx_agree">
<label for="agree">동의합니다.</label>
@ -35,6 +36,11 @@ function frm_submit(f)
return true;
}
</script>
<?
} // if
?>
</div>
</body>
</html>

View File

@ -53,6 +53,7 @@ if (file_exists($dbconfig_file)) {
?>
<?
$exists_data_dir = true;
// data 디렉토리가 있는가?
if (!is_dir($data_path))
{
@ -62,10 +63,12 @@ if (!is_dir($data_path))
$> mkdir <?=G4_DATA_DIR?><br /><br />
위 명령 실행후 브라우저를 새로고침 하십시오.</p>
<?
$exists_data_dir = false;
}
?>
<?
$write_data_dir = true;
// data 디렉토리에 파일 생성 가능한지 검사.
if (strtoupper(substr(PHP_OS, 0, 3)) !== 'WIN') {
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 />
위 명령 실행후 브라우저를 새로고침 하십시오.</p>
<?
exit;
$write_data_dir = false;
}
}
?>