답변 2개 / 댓글 7개
채택된 답변
+20 포인트
테마로 사용한다고 하셨는데
일단은
<?
$g4_path = "../../../.."; // 경로
include_once("$g4_path/common.php");
$g4[path] = $g4_path;
?>
위의 내용이 기존에 어떤 경로에 있는 어떤 파일인지에 대한 설명이 있어야 할것 같습니다.
답변에 대한 댓글 7개
포트님 바쁘시겠지만 좀 봐주시면 안될가요?
이런 내용인데요...
테마 이전의 그누5에서는 이상업는데..5.1버전에서는 저장이 안되서 그렇습니다.
cs_idx와 cs_regdate필드는 저장되는데
cs_cate cs_step cs_label cs_content 필드는 저장이 안되는군요..
<?php
include('./_common.php');
//if (!$is_admin)
// alert_close("관리자만 접근 가능합니다.");
include('./config.php');
function _esc($str){
return mysql_real_escape_string($str);
}
switch($_POST['actmode']){
// 등록
//===========================================================================
case 'a':
default:
$cs_content = conv_content(stripslashes($_POST['cs_content']), 2);
$sql = "INSERT INTO ".$cscfg['cs_table']."(
cs_cate, cs_step, cs_label, cs_content, cs_regdate) VALUES(
'"._esc($_POST['cs_cate'])."',
'"._esc($_POST['cs_step'])."',
'"._esc($_POST['cs_label'])."',
'"._esc($cs_content)."',
'".date('Y-m-d H:i:s')."'
)";
sql_query($sql);
break;
}
goto_url('sentence.php?'.$qstr);
?>
이런 내용인데요...
테마 이전의 그누5에서는 이상업는데..5.1버전에서는 저장이 안되서 그렇습니다.
cs_idx와 cs_regdate필드는 저장되는데
cs_cate cs_step cs_label cs_content 필드는 저장이 안되는군요..
<?php
include('./_common.php');
//if (!$is_admin)
// alert_close("관리자만 접근 가능합니다.");
include('./config.php');
function _esc($str){
return mysql_real_escape_string($str);
}
switch($_POST['actmode']){
// 등록
//===========================================================================
case 'a':
default:
$cs_content = conv_content(stripslashes($_POST['cs_content']), 2);
$sql = "INSERT INTO ".$cscfg['cs_table']."(
cs_cate, cs_step, cs_label, cs_content, cs_regdate) VALUES(
'"._esc($_POST['cs_cate'])."',
'"._esc($_POST['cs_step'])."',
'"._esc($_POST['cs_label'])."',
'"._esc($cs_content)."',
'".date('Y-m-d H:i:s')."'
)";
sql_query($sql);
break;
}
goto_url('sentence.php?'.$qstr);
?>
답변을 작성하려면 로그인이 필요합니다.
로핑님 답변대로 해보니 안되어 경로를 말씀드릴 참이었습니다.
plugin/editor/cheditor/sentence/common.php
sentence폴더에 추가 파일을 만들어 쓰고 잇는데요..
위와 같이 되어 있는 상태입니다.