_CAPTCHA_, _EDITOR_ 선언하지 않아도 오류나지 않도록 수정
캡챠와 에디터를 plugin 디렉토리에서 extend 디렉토리로 변경
This commit is contained in:
@ -1,12 +1,20 @@
|
||||
<?
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
$editor = (object)array(
|
||||
'lib' => $g4['path']."/plugin/ckeditor/ckeditor.lib.php",
|
||||
'js' => $g4['path']."/plugin/ckeditor/ckeditor.js",
|
||||
'config_js' => $g4['path']."/plugin/ckeditor/config.js",
|
||||
'data' => "data/editor"
|
||||
);
|
||||
// _EDITOR_ 의 값에 상관없이 선언 되었는지의 여부만 따짐
|
||||
// if (defined('_EDITOR_')) true;
|
||||
define('_EDITOR_', 1);
|
||||
|
||||
include_once($editor->lib);
|
||||
if (defined('_EDITOR_')) {
|
||||
$ckeditor = new stdClass;
|
||||
$ckeditor->url = $g4['url']."/extend/ckeditor";
|
||||
$ckeditor->path = $g4['path']."/extend/ckeditor";
|
||||
$ckeditor->data = "data/editor";
|
||||
|
||||
include_once($ckeditor->path."/ckeditor.lib.php");
|
||||
|
||||
$g4['js_code'][] = "var g4_ckeditor_path = \"{$ckeditor->path}\";";
|
||||
$g4['js_file'][] = $ckeditor->url."/ckeditor.js";
|
||||
$g4['js_file'][] = $ckeditor->url."/config.js";
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user