인스톨시 기존 데이터베이스가 존재하는지 체크과정 추가

This commit is contained in:
thisgun
2018-09-14 12:04:37 +09:00
parent c0a4d9776b
commit 333c1e1af4
4 changed files with 122 additions and 20 deletions

View File

@ -11,26 +11,7 @@ header('Pragma: no-cache'); // HTTP/1.0
include_once ('../config.php');
include_once ('../lib/common.lib.php');
if( ! function_exists('safe_install_string_check') ){
function safe_install_string_check( $str ) {
$is_check = false;
if(preg_match('#\);(passthru|eval|pcntl_exec|exec|system|popen|fopen|fsockopen|file|file_get_contents|readfile|unlink|include|include_once|require|require_once)\s?#i', $str)) {
$is_check = true;
}
if(preg_match('#\$_(get|post|request)\s?\[.*?\]\s?\)#i', $str)){
$is_check = true;
}
if($is_check){
die("입력한 값에 안전하지 않는 문자가 포함되어 있습니다. 설치를 중단합니다.");
}
return $str;
}
}
include_once('./install.function.php'); // 인스톨 과정 함수 모음
$title = G5_VERSION." 설치 완료 3/3";
include_once ('./install.inc.php');