에디터에서 파일업로드 오류 해결

This commit is contained in:
gnuboard
2013-01-24 17:52:58 +09:00
parent cec72976fb
commit db0d007bdd
2 changed files with 5 additions and 7 deletions

View File

@ -1,15 +1,12 @@
<?php
define('G4_EDITOR', 1);
$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']);
$data_dir = $g4['path'].'/'.$ckeditor->data.'/'.$ym;
$data_url = $g4['url'] .'/'.$ckeditor->data.'/'.$ym;
$data_dir = $g4['ckeditor_data_path'].'/'.$ym;
$data_url = $g4['ckeditor_data_url'].'/'.$ym;
@mkdir($data_dir, 0707);
@chmod($data_dir, 0707);

View File

@ -39,7 +39,8 @@ if (G4_EDITOR) {
$g4['ckeditor_dir'] = 'ckeditor';
$g4['ckeditor_url'] = $g4['bbs_url'].'/'.$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");