설치시 GD 라이브러리 체크 코드 추가
This commit is contained in:
@ -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
14
install/library.check.php
Normal 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.' 설치를 진행해 주십시오.');
|
||||
?>
|
||||
Reference in New Issue
Block a user