<?php include_once "functions.inc.php"; $functions = new functions(); if (getenv("REQUEST_METHOD") == "GET") { $functions->error_alert_location("정상적으로 접근 바랍니다.", "index.php"); } @unlink("../include/mysql.info.php"); if ($functions->file_permission("../include/") == FALSE || $functions->file_permission("../upload/sessionCookies/") == FALSE || $functions->file_permission("../upload/siteInformations/") == FALSE || $functions->file_permission("../upload/smartEditor/") == FALSE) { $functions->error_alert_location("1단계가 진행되지 않았습니다.", "index.php"); } if ($functions->file_check("../include/path.info.php") == FALSE) { $functions->error_alert_location("1단계가 진행되지 않았습니다.", "index.php"); } $host = $_POST['host']; $db = $_POST['db']; $id = $_POST['id']; $password = $_POST['password']; $connect = @mysql_connect($host, $id, $password); mysql_select_db($db, $connect); if (mysql_query("select * from toony_member_list", $connect) && mysql_num_rows(mysql_query("select * from toony_member_list", $connect)) > 0) { $installedDB = TRUE; $insertAdminDB = TRUE; } else { if (mysql_query("select * from toony_member_list", $connect) && mysql_num_rows(mysql_query("select * from toony_member_list", $connect)) < 1) { $installedDB = TRUE; $insertAdminDB = FALSE; } else { $installedDB = FALSE; $insertAdminDB = FALSE; }
</header> <form name="" action="step2.php" method="post"> <article> <?php if ($functions->reinstallCheck() == TRUE) { ?> <div class="alert"> <strong>Warning :</strong><br /> 이미 <strong>path.info.php</strong>, <strong>mysql.info.php</strong> 가 생성되어 있습니다.<br /> 현재 화면이 강제적으로 보여지는 경우 서버 이전, 도메인 변경등으로 info 파일이 손상된 것이므로 아래 [다음 단계로] 를 클릭하여 info 파일 재생성을 진행해 주시길 바랍니다. </div> <?php } else { if ($functions->file_check("../include/mysql.info.php") == TRUE && $functions->file_check("../include/path.info.php") == FALSE) { ?> <div class="alert"> <strong>Warning :</strong><br /> <strong>path.info.php</strong>가 손상 되었으며,<br /> 이미 <strong>mysql.info.php</strong> 가 생성되어 있습니다.<br /> info 파일 재생성을 진행해 주시길 바랍니다. </div> <?php } } ?> <div class="inner"> <div class="t"> <strong>1단계</strong>투니툴 파일의 퍼미션 설정 여부를 검사 합니다. </div>