설치시 GD 라이브러리 체크 코드 추가

This commit is contained in:
chicpro
2013-10-04 15:17:01 +09:00
parent 4be2995c98
commit f2d073c8ba
2 changed files with 16 additions and 1 deletions

View File

@ -1,6 +1,7 @@
<?php
include_once ('../config.php');
$title = G5_VERSION." 설치 3단계 중 1단계 라이센스 확인";
require_once('./library.check.php');
include_once ('./install.inc.php');
?>
@ -17,7 +18,7 @@ if ($exists_data_dir && $write_data_dir) {
<form action="./install_config.php" method="post" onsubmit="return frm_submit(this);">
<div id="idx_agree">
<label for="agree">동의합니다.</label>
<input type="checkbox" id="agree" name="agree" value="동의함">
<input type="checkbox" id="agree" name="agree" value="동의함">
</div>
<div id="btn_confirm">

14
install/library.check.php Normal file
View File

@ -0,0 +1,14 @@
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
function die_utf8($msg)
{
if(!trim($msg))
return;
die('<meta charset="utf-8"><p>'.$msg.'</p>');
}
if(!extension_loaded('gd') || !function_exists('gd_info'))
die('GD 라이브러리를 설치하신 후 '.G5_VERSION.' 설치를 진행해 주십시오.');
?>