사용자단 따옴표 install 까지 하다가 중단
This commit is contained in:
@ -83,7 +83,7 @@ include_once ('./install.inc.php');
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</td>
|
</td>
|
||||||
<td width="3"><img src="img/box_right.gif" width="3" height="340"></td>
|
<td width="3"><img src="img/box_right.gif" width="3" height="340"></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
@ -91,7 +91,7 @@ include_once ('./install.inc.php');
|
|||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<script language="JavaScript">
|
<script>
|
||||||
function frm_submit(f)
|
function frm_submit(f)
|
||||||
{
|
{
|
||||||
f.action = "./install_config.php";
|
f.action = "./install_config.php";
|
||||||
|
|||||||
@ -3,24 +3,24 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
|||||||
|
|
||||||
// 파일이 존재한다면 설치할 수 없다.
|
// 파일이 존재한다면 설치할 수 없다.
|
||||||
if (file_exists($g4['dbconfig'])) {
|
if (file_exists($g4['dbconfig'])) {
|
||||||
echo "<meta http-equiv='content-type' content='text/html; charset={$g4['charset']}'>";
|
echo '<meta http-equiv="content-type" content="text/html; charset='.$g4['charset'].'">';
|
||||||
echo "<p>프로그램이 이미 설치되어 있습니다.<br />새로 설치하시려면 dbconfig 파일을 삭제후 설치하시기 바랍니다.</p>";
|
echo '<p>프로그램이 이미 설치되어 있습니다.<br />새로 설치하시려면 dbconfig 파일을 삭제후 설치하시기 바랍니다.</p>';
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
// data 디렉토리가 있는가?
|
// data 디렉토리가 있는가?
|
||||||
if (!is_dir('../data'))
|
if (!is_dir('../data'))
|
||||||
{
|
{
|
||||||
echo "<meta http-equiv='content-type' content='text/html; charset={$g4['charset']}'>";
|
echo '<meta http-equiv="content-type" content="text/html; charset='.$g4['charset'].'">';
|
||||||
echo "<p>루트 디렉토리에 아래로 data 디렉토리를 생성하여 주십시오.<br />(common.php 파일이 있는곳이 루트 디렉토리 입니다.)<br /><br />$> mkdir data<br /><br />위 명령 실행후 다시 설치하여 주십시오.</p>";
|
echo '<p>루트 디렉토리에 아래로 data 디렉토리를 생성하여 주십시오.<br />(common.php 파일이 있는곳이 루트 디렉토리 입니다.)<br /><br />$> mkdir data<br /><br />위 명령 실행후 다시 설치하여 주십시오.</p>';
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
// data 디렉토리에 파일 생성 가능한지 검사.
|
// data 디렉토리에 파일 생성 가능한지 검사.
|
||||||
if (!(is_readable('../data') && is_writeable('../data') && is_executable('../data')))
|
if (!(is_readable('../data') && is_writeable('../data') && is_executable('../data')))
|
||||||
{
|
{
|
||||||
echo "<meta http-equiv='content-type' content='text/html; charset={$g4['charset']}'>";
|
echo '<meta http-equiv="content-type" content="text/html; charset='.$g4['charset'].'">';
|
||||||
echo "<p>data 디렉토리의 퍼미션을 707로 변경하여 주십시오.<br /><br />$> chmod 707 data 또는 chmod uo+rwx data<br /><br />위 명령 실행후 다시 설치하여 주십시오.</p>";
|
echo '<p>data 디렉토리의 퍼미션을 707로 변경하여 주십시오.<br /><br />$> chmod 707 data 또는 chmod uo+rwx data<br /><br />위 명령 실행후 다시 설치하여 주십시오.</p>';
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
@ -2,18 +2,18 @@
|
|||||||
include_once ('../config.php');
|
include_once ('../config.php');
|
||||||
include_once ('./install.inc.php');
|
include_once ('./install.inc.php');
|
||||||
|
|
||||||
$gmnow = gmdate("D, d M Y H:i:s") . " GMT";
|
$gmnow = gmdate("D, d M Y H:i:s").' GMT';
|
||||||
header("Expires: 0"); // rfc2616 - Section 14.21
|
header("Expires: 0"); // rfc2616 - Section 14.21
|
||||||
header("Last-Modified: " . $gmnow);
|
header("Last-Modified: " . $gmnow);
|
||||||
header("Cache-Control: no-store, no-cache, must-revalidate"); // HTTP/1.1
|
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("Cache-Control: pre-check=0, post-check=0, max-age=0"); // HTTP/1.1
|
||||||
header("Pragma: no-cache"); // HTTP/1.0
|
header("Pragma: no-cache"); // HTTP/1.0
|
||||||
|
|
||||||
if ($_POST['agree'] != "동의함") {
|
if ($_POST['agree'] != '동의함') {
|
||||||
echo "<meta http-equiv='content-type' content='text/html; charset={$g4['charset']}'>";
|
echo '<meta http-equiv="content-type" content="text/html; charset='.$g4['charset'].'">';
|
||||||
echo <<<HEREDOC
|
echo <<<HEREDOC
|
||||||
<script language="JavaScript">
|
<script>
|
||||||
alert("라이센스(License) 내용에 동의하셔야 설치를 계속하실 수 있습니다.");
|
alert('라이센스(License) 내용에 동의하셔야 설치를 계속하실 수 있습니다.');
|
||||||
history.back();
|
history.back();
|
||||||
</script>
|
</script>
|
||||||
HEREDOC;
|
HEREDOC;
|
||||||
@ -131,46 +131,46 @@ HEREDOC;
|
|||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script language="JavaScript">
|
<script>
|
||||||
<!--
|
<!--
|
||||||
function frm_submit(f)
|
function frm_submit(f)
|
||||||
{
|
{
|
||||||
if (f.mysql_host.value == "")
|
if (f.mysql_host.value == '')
|
||||||
{
|
{
|
||||||
alert("MySQL Host 를 입력하십시오."); f.mysql_host.focus(); return;
|
alert('MySQL Host 를 입력하십시오.'); f.mysql_host.focus(); return;
|
||||||
}
|
}
|
||||||
else if (f.mysql_user.value == "")
|
else if (f.mysql_user.value == '')
|
||||||
{
|
{
|
||||||
alert("MySQL User 를 입력하십시오."); f.mysql_user.focus(); return;
|
alert('MySQL User 를 입력하십시오.'); f.mysql_user.focus(); return;
|
||||||
}
|
}
|
||||||
else if (f.mysql_db.value == "")
|
else if (f.mysql_db.value == '')
|
||||||
{
|
{
|
||||||
alert("MySQL DB 를 입력하십시오."); f.mysql_db.focus(); return;
|
alert('MySQL DB 를 입력하십시오.'); f.mysql_db.focus(); return;
|
||||||
}
|
}
|
||||||
else if (f.admin_id.value == "")
|
else if (f.admin_id.value == '')
|
||||||
{
|
{
|
||||||
alert("최고관리자 ID 를 입력하십시오."); f.admin_id.focus(); return;
|
alert('최고관리자 ID 를 입력하십시오.'); f.admin_id.focus(); return;
|
||||||
}
|
}
|
||||||
else if (f.admin_pass.value == "")
|
else if (f.admin_pass.value == '')
|
||||||
{
|
{
|
||||||
alert("최고관리자 패스워드를 입력하십시오."); f.admin_pass.focus(); return;
|
alert('최고관리자 패스워드를 입력하십시오.'); f.admin_pass.focus(); return;
|
||||||
}
|
}
|
||||||
else if (f.admin_name.value == "")
|
else if (f.admin_name.value == '')
|
||||||
{
|
{
|
||||||
alert("최고관리자 이름을 입력하십시오."); f.admin_name.focus(); return;
|
alert('최고관리자 이름을 입력하십시오.'); f.admin_name.focus(); return;
|
||||||
}
|
}
|
||||||
else if (f.admin_email.value == "")
|
else if (f.admin_email.value == '')
|
||||||
{
|
{
|
||||||
alert("최고관리자 E-mail 을 입력하십시오."); f.admin_email.focus(); return;
|
alert('최고관리자 E-mail 을 입력하십시오.'); f.admin_email.focus(); return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if(/[^a-zA-Z]/g.test(f.admin_id.value)) {
|
if(/[^a-zA-Z]/g.test(f.admin_id.value)) {
|
||||||
alert("최고관리자 ID 가 영문자가 아닙니다.");
|
alert('최고관리자 ID 가 영문자가 아닙니다.');
|
||||||
f.admin_id.focus();
|
f.admin_id.focus();
|
||||||
}
|
}
|
||||||
|
|
||||||
f.action = "./install_db.php";
|
f.action = './install_db.php';
|
||||||
f.submit();
|
f.submit();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user