g5 merge 충돌수정

This commit is contained in:
chicpro
2013-12-06 15:33:54 +09:00
11 changed files with 163 additions and 100 deletions

View File

@ -10,44 +10,29 @@ if (!$title) $title = G5_VERSION." 설치";
<html lang="ko">
<head>
<meta charset="utf-8">
<title><?php echo $title ?></title>
<style>
body {margin:0;padding:0;background:#f7f7f7}
h1 {margin:50px auto 30px;width:540px;font-size:1.4em}
h2 {font-size:1.2em}
p {line-height:1.5em}
table {width:100%;border:0;border-collapse:collapse;border-spacing:0;font-size:0.895em}
caption {padding:0 0 20px;font-weight:bold;text-align:left}
th,td {padding:5px;border:0;border-top:1px solid #ddd;border-bottom:1px solid #ddd}
th {text-align:left}
td span {display:block;margin:0 0 5px;color:#666;font-size:0.9em}
#wrapper {margin:0 auto 20px;padding:20px;width:500px;border:1px solid #eee;background:#fff}
#idx_license {padding:10px;width:480px;height:300px;border:1px solid #ccc;background:#000;color:#fff}
#idx_agree {padding:0 20px 20px;font-weight:bold;text-align:center}
#btn_confirm {text-align:center}
.outside {margin:0 auto;padding:20px 0;width:542px}
.st_strong {color:#ff3061;font-weight:normal}
</style>
<title><?php echo $title; ?></title>
<link rel="stylesheet" href="install.css">
</head>
<body>
<h1><?php echo $title ?></h1>
<div id="ins_bar">
<span id="bar_img">GNUBOARD5</span>
<span id="bar_txt">INSTALLATION</span>
</div>
<div id="wrapper">
<h1><?php echo $title ?></h1>
<?php
// 파일이 존재한다면 설치할 수 없다.
$dbconfig_file = $data_path.'/'.G5_DBCONFIG_FILE;
if (file_exists($dbconfig_file)) {
?>
<div class="ins_inner">
<p>프로그램이 이미 설치되어 있습니다.<br />새로 설치하시려면 다음 파일을 삭제 하신 후 새로고침 하십시오.</p>
<ul>
<li><?php echo $dbconfig_file ?></li>
</ul>
</div>
<?php
exit;
}
@ -59,11 +44,15 @@ $exists_data_dir = true;
if (!is_dir($data_path))
{
?>
<p>루트 디렉토리에 아래로 <?php echo G5_DATA_DIR ?> 디렉토리를 생성하여 주십시오.<br />
(common.php 파일이 있는곳이 루트 디렉토리 입니다.)<br /><br />
$> mkdir <?php echo G5_DATA_DIR ?><br /><br />
윈도우의 경우 data 폴더를 하나 생성해 주시기 바랍니다.<br /><br />
위 명령 실행후 브라우저를 새로고침 하십시오.</p>
<div class="ins_inner">
<p>
루트 디렉토리에 아래로 <?php echo G5_DATA_DIR ?> 디렉토리를 생성하여 주십시오.<br />
(common.php 파일이 있는곳이 루트 디렉토리 입니다.)<br /><br />
$> mkdir <?php echo G5_DATA_DIR ?><br /><br />
윈도우의 경우 data 폴더를 하나 생성해 주시기 바랍니다.<br /><br />
위 명령 실행후 브라우저를 새로고침 하십시오.
</p>
</div>
<?php
$exists_data_dir = false;
}
@ -78,9 +67,13 @@ if (strtoupper(substr(PHP_OS, 0, 3)) !== 'WIN') {
if (!(is_readable($data_path) && is_executable($data_path)))
{
?>
<p><?php echo G5_DATA_DIR ?> 디렉토리의 퍼미션을 705로 변경하여 주십시오.<br /><br />
$> chmod 705 <?php echo G5_DATA_DIR ?> 또는 chmod uo+rx <?php echo G5_DATA_DIR ?><br /><br />
위 명령 실행후 브라우저를 새로고침 하십시오.</p>
<div class="ins_inner">
<p>
<?php echo G5_DATA_DIR ?> 디렉토리의 퍼미션을 705로 변경하여 주십시오.<br /><br />
$> chmod 705 <?php echo G5_DATA_DIR ?> 또는 chmod uo+rx <?php echo G5_DATA_DIR ?><br /><br />
위 명령 실행후 브라우저를 새로고침 하십시오.
</p>
</div>
<?php
$write_data_dir = false;
}
@ -88,9 +81,13 @@ if (strtoupper(substr(PHP_OS, 0, 3)) !== 'WIN') {
if (!(is_readable($data_path) && is_writeable($data_path) && is_executable($data_path)))
{
?>
<p><?php echo G5_DATA_DIR ?> 디렉토리의 퍼미션을 707로 변경하여 주십시오.<br /><br />
$> chmod 707 <?php echo G5_DATA_DIR ?> 또는 chmod uo+rwx <?php echo G5_DATA_DIR ?><br /><br />
위 명령 실행후 브라우저를 새로고침 하십시오.</p>
<div class="ins_inner">
<p>
<?php echo G5_DATA_DIR ?> 디렉토리의 퍼미션을 707로 변경하여 주십시오.<br /><br />
$> chmod 707 <?php echo G5_DATA_DIR ?> 또는 chmod uo+rwx <?php echo G5_DATA_DIR ?><br /><br />
위 명령 실행후 브라우저를 새로고침 하십시오.
</p>
</div>
<?php
$write_data_dir = false;
}