?> 제거
replace 코드 디버깅 용도로 제거
This commit is contained in:
@@ -5,6 +5,8 @@ include "func.php";
|
||||
|
||||
if(file_exists("d_setting/set.php")) error("이미 set.php가 생성되어 있습니다.<br><br>재설치하려면 해당 파일을 지우세요");
|
||||
|
||||
|
||||
|
||||
// 호스트네임, 아이디, DB네임, 비밀번호의 공백여부 검사
|
||||
if(isBlank($hostname)) Error("HostName을 입력하세요","");
|
||||
if(isBlank($user_id)) Error("User ID 를 입력하세요","");
|
||||
@@ -83,7 +85,7 @@ if(!isTable($connect, "history",$dbname)) @MYDB_query($history_schema, $connect)
|
||||
|
||||
// 파일로 DB 정보 저장
|
||||
$file=@fopen("d_setting/set.php","w") or Error("set.php 파일 생성 실패<br><br>디렉토리의 퍼미션을 707로 주십시요","");
|
||||
@fwrite($file,"<?php /*\n$hostname\n$user_id\n$password\n$dbname\n */?>\n") or Error("set.php 파일 생성 실패<br><br>디렉토리의 퍼미션을 707로 주십시요","");
|
||||
@fwrite($file,"<?php /*\n$hostname\n$user_id\n$password\n$dbname\n */\n") or Error("set.php 파일 생성 실패<br><br>디렉토리의 퍼미션을 707로 주십시요","");
|
||||
@fclose($file);
|
||||
@mkdir("data",0707);
|
||||
@chmod("data",0707);
|
||||
@@ -94,4 +96,3 @@ $temp=MYDB_fetch_array(MYDB_query("select count(*) from general where level = '1
|
||||
MYDB_close($connect);
|
||||
|
||||
echo "<script>location.replace('install2.php');</script>";
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user