경로 정리 - 큰일었어요!!!

This commit is contained in:
gnuboard
2013-01-27 15:48:08 +09:00
parent 5891f1a77a
commit 023d9233d2
623 changed files with 822 additions and 7680 deletions

View File

@ -1,12 +1,10 @@
<?php
define('G4_EDITOR', 1);
$g4_path = "../.."; // common.php 의 상대 경로
include_once("$g4_path/common.php");
include_once("../../common.php");
$ym = date('ym', $g4['server_time']);
$ym = date('ym', G4_SERVER_TIME);
$data_dir = $g4['ckeditor_data_path'].'/'.$ym;
$data_url = $g4['ckeditor_data_url'].'/'.$ym;
$data_dir = G4_EDITOR_PATH.'/'.$ym;
$data_url = G4_EDITOR_URL.'/'.$ym;
@mkdir($data_dir, 0707);
@chmod($data_dir, 0707);
@ -14,8 +12,6 @@ $data_url = $g4['ckeditor_data_url'].'/'.$ym;
$funcNum = $_GET['CKEditorFuncNum'] ;
$CKEditor = $_GET['CKEditor'] ;
$langCode = $_GET['langCode'] ;
header("Content-Type: text/html; charset=$g4[charset]");
if(isset($_FILES['upload']['tmp_name'])) {
$file_name = $_FILES['upload']['name'];