_CAPTCHA_, _EDITOR_ 선언하지 않아도 오류나지 않도록 수정

캡챠와 에디터를 plugin 디렉토리에서 extend 디렉토리로 변경
This commit is contained in:
gnuboard
2013-01-13 16:50:01 +09:00
parent 508d060219
commit e8ec16adb9
305 changed files with 193 additions and 264 deletions

View File

@ -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";
}
?>