에디터에서 파일업로드 오류 해결
This commit is contained in:
@ -1,15 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
|
define('G4_EDITOR', 1);
|
||||||
$g4_path = "../.."; // common.php 의 상대 경로
|
$g4_path = "../.."; // common.php 의 상대 경로
|
||||||
include_once("$g4_path/common.php");
|
include_once("$g4_path/common.php");
|
||||||
|
|
||||||
$up_dir = $g4['path'].'/'.$ckeditor->data;; // 기본 업로드 폴더
|
|
||||||
@mkdir($up_dir, 0707);
|
|
||||||
@chmod($up_dir, 0707);
|
|
||||||
|
|
||||||
$ym = date('ym', $g4['server_time']);
|
$ym = date('ym', $g4['server_time']);
|
||||||
|
|
||||||
$data_dir = $g4['path'].'/'.$ckeditor->data.'/'.$ym;
|
$data_dir = $g4['ckeditor_data_path'].'/'.$ym;
|
||||||
$data_url = $g4['url'] .'/'.$ckeditor->data.'/'.$ym;
|
$data_url = $g4['ckeditor_data_url'].'/'.$ym;
|
||||||
@mkdir($data_dir, 0707);
|
@mkdir($data_dir, 0707);
|
||||||
@chmod($data_dir, 0707);
|
@chmod($data_dir, 0707);
|
||||||
|
|
||||||
|
|||||||
@ -39,7 +39,8 @@ if (G4_EDITOR) {
|
|||||||
$g4['ckeditor_dir'] = 'ckeditor';
|
$g4['ckeditor_dir'] = 'ckeditor';
|
||||||
$g4['ckeditor_url'] = $g4['bbs_url'].'/'.$g4['ckeditor_dir'];
|
$g4['ckeditor_url'] = $g4['bbs_url'].'/'.$g4['ckeditor_dir'];
|
||||||
$g4['ckeditor_path'] = $g4['bbs_path'].'/'.$g4['ckeditor_dir'];
|
$g4['ckeditor_path'] = $g4['bbs_path'].'/'.$g4['ckeditor_dir'];
|
||||||
$g4['ckeditor_data'] = $g4['bbs_path'].'/'.$g4['data_dir'].'/editor';
|
$g4['ckeditor_data_path'] = $g4['data_path'].'/editor';
|
||||||
|
$g4['ckeditor_data_url'] = $g4['data_url'].'/editor';
|
||||||
|
|
||||||
include_once($g4['ckeditor_path']."/ckeditor.lib.php");
|
include_once($g4['ckeditor_path']."/ckeditor.lib.php");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user