script path 찾는 함수를 일단 0.2.8로 rollback. 차후 보다 자세한 환경에서 테스트후 원위치

git-svn-id: http://xe-core.googlecode.com/svn/trunk@3734 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2008-02-19 16:28:53 +00:00
commit d6d4ae6af0
12 changed files with 54 additions and 48 deletions

View file

@ -379,6 +379,7 @@
if($val && iconv($charset,$charset,$val)!=$val) $flag = false;
}
if($flag == true) {
if($charset == 'UTF-8') return $obj;
foreach($obj as $key => $val) $obj->{$key} = iconv($charset,'UTF-8',$val);
return $obj;
}

View file

@ -35,6 +35,10 @@
* @brief $buff의 내용을 파일에 쓰기
**/
function writeFile($file_name, $buff, $mode = "w") {
$pathinfo = pathinfo($file_name);
$path = $pathinfo['dirname'];
if(!is_dir($path)) FileHandler::makeDir($path);
$mode = strtolower($mode);
if($mode != "a") $mode = "w";
if(@!$fp = fopen($file_name,$mode)) return false;

View file

@ -178,11 +178,10 @@ if(!$cached) {
**/
function replaceCssPath($file, $str) {
// css 파일의 위치를 구함
$this->tmp_css_path = './'.preg_replace("/^\.\//is","",dirname($file))."/";
$this->tmp_css_path = preg_replace("/^\.\//is","",dirname($file))."/";
// url() 로 되어 있는 css 파일의 경로를 변경
$str = preg_replace_callback('!url\(("|\')?([^\)]+)("|\')?\)!is', array($this, '_replaceCssPath'), $str);
$str = preg_replace('!\/([^\/]*)\/\.\.\/!is','/', $str);
$str = preg_replace_callback('/url\(([^\)]*)\)/is', array($this, '_replaceCssPath'), $str);
// charset 지정 문구를 제거
$str = preg_replace('!@charset([^;]*?);!is','',$str);
@ -191,8 +190,10 @@ if(!$cached) {
}
function _replaceCssPath($matches) {
if(preg_match("/^(http|\/|\.\/common\/)/is",$matches[2])) return $matches[0];
return sprintf('url(%s%s)', $matches[1], $this->tmp_css_path.$matches[2]);
$path = str_replace(array('"',"'"),'',$matches[1]);
if(preg_match('/^http/i', $path) || preg_match('/\.htc$/i',$path) ) return $matches[0];
return 'url("../../../../'.$this->tmp_css_path.$path.'")';
}
}

View file

@ -116,6 +116,7 @@
<div class="signature">{$oDocument->getSignature()}</div>
<!--@end-->
<div class="clear"></div>
</div>
<!--@end-->
</div>
</div>

View file

@ -4,7 +4,7 @@
<title xml:lang="zh-CN">留言本默认皮肤</title>
<title xml:lang="jp">ゲストブックのデフォルトスキン</title>
<title xml:lang="en">Zeroboard XE Basic Guestbook Skin</title>
<maker email_address="zero@zeroboard.com" link="http://www.zeroboard.com" date="2007. 2. 28">
<maker email_address="zero@zeroboard.com" link="http://www.zeroboard.com" date="2008. 2. 28">
<name xml:lang="ko">제로</name>
<name xml:lang="zh-CN">Zero</name>
<name xml:lang="jp">Zero</name>

View file

@ -4,17 +4,20 @@
<title xml:lang="jp">文字の背景色変更</title>
<title xml:lang="zh-CN">背景颜色</title>
<title xml:lang="en">Change the background color of article</title>
<title xml:lang="es">Cambiar el color de fondo del artículo</title>
<title xml:lang="ru">Изменение цвета фона статьи</title>
<author email_address="zero@zeroboard.com" link="http://www.zeroboard.com" date="2007. 2. 28">
<name xml:lang="ko">제로</name>
<name xml:lang="jp">Zero</name>
<name xml:lang="zh-CN">zero</name>
<name xml:lang="en">zero</name>
<name xml:lang="es">zero</name>
<name xml:lang="ru">zero</name>
<description xml:lang="ko">글의 배경색을 변경합니다.</description>
<description xml:lang="jp">文字の背景色を変更します。</description>
<description xml:lang="zh-CN">可修改字体背景颜色。</description>
<description xml:lang="en">It will change the background color of article.</description>
<description xml:lang="es">Se cambiará el color de fondo del artículo.</description>
<description xml:lang="ru">Позволяет изменение цвета фона статьи.</description>
</author>
</component>

View file

@ -5,16 +5,6 @@
<!--%import("../../tpl/js/editor_common.js")-->
<!--%import("../../tpl/js/editor.js")-->
<!-- 에디터 활성화 -->
<script type="text/javascript">//<![CDATA[
var editor_path = "{$editor_path}";
var auto_saved_msg = "{$lang->msg_auto_saved}";
<!--@if(!$editor_manual_start)-->
xAddEventListener(window, 'load', function() { editorStart("{$editor_sequence}", "{$editor_primary_key_name}", "{$editor_content_key_name}", '{$editor_height}' ) } );
<!--@end-->
//]]></script>
<!-- 자동저장용 폼 -->
<!--@if($enable_autosave)-->
<input type="hidden" name="_saved_doc_title" value="{htmlspecialchars($saved_doc->title)}" />
@ -186,3 +176,13 @@
</div>
<!-- 에디터 활성화 -->
<script type="text/javascript">//<![CDATA[
var editor_path = "{$editor_path}";
var auto_saved_msg = "{$lang->msg_auto_saved}";
<!--@if(!$editor_manual_start)-->
editorStart("{$editor_sequence}", "{$editor_primary_key_name}", "{$editor_content_key_name}", '{$editor_height}' );
<!--@end-->
//]]></script>

View file

@ -6,15 +6,6 @@
<!--%import("../../tpl/js/editor.js")-->
<!--%import("js/editor.js")-->
<!-- 에디터 활성화 -->
<script type="text/javascript">//<![CDATA[
var editor_path = "{$editor_path}";
var auto_saved_msg = "{$lang->msg_auto_saved}";
<!--@if(!$editor_manual_start)-->
xAddEventListener(window, 'load', function() { editorStart("{$editor_sequence}", "{$editor_primary_key_name}", "{$editor_content_key_name}", '{$editor_height}' ) } );
<!--@end-->
//]]></script>
<!-- 자동저장용 폼 -->
<!--@if($enable_autosave)-->
<input type="hidden" name="_saved_doc_title" value="{htmlspecialchars($saved_doc->title)}" />
@ -173,3 +164,13 @@
</table>
<!--@end-->
</div>
<!-- 에디터 활성화 -->
<script type="text/javascript">//<![CDATA[
var editor_path = "{$editor_path}";
var auto_saved_msg = "{$lang->msg_auto_saved}";
<!--@if(!$editor_manual_start)-->
editorStart("{$editor_sequence}", "{$editor_primary_key_name}", "{$editor_content_key_name}", '{$editor_height}' );
<!--@end-->
//]]></script>

View file

@ -5,11 +5,6 @@
<!--%import("../../tpl/js/editor_common.js")-->
<!--%import("js/xe_interface.js")-->
<!-- 에디터 활성화 -->
<script type="text/javascript">//<![CDATA[
xAddEventListener(window,'load', function() { editorStartTextarea({$editor_sequence}, "{$editor_content_key_name}", "{$editor_primary_key_name}"); });
//]]></script>
<!-- 에디터 -->
<div class="xeTextareaEditor">
@ -17,3 +12,7 @@
</div>
<!-- 에디터 활성화 -->
<script type="text/javascript">//<![CDATA[
editorStartTextarea({$editor_sequence}, "{$editor_content_key_name}", "{$editor_primary_key_name}");
//]]></script>

View file

@ -10,16 +10,6 @@
<!--%import("js/xquared-min.js")-->
<!--%import("js/xe_interface.js")-->
<!-- 에디터 활성화 -->
<script type="text/javascript">//<![CDATA[
var auto_saved_msg = "{$lang->msg_auto_saved}";
var xed_{$editor_sequence};
xAddEventListener(window, 'load', function() {
if(document.getElementById("comment_{$editor_sequence}") == null || document.getElementById("comment_{$editor_sequence}").style.display != 'none'){
editorStart_xq(xed_{$editor_sequence}, document.getElementById("xqEditor_{$editor_sequence}"), {$editor_sequence}, "{$editor_content_key_name}", "{$editor_height}px", "{$editor_primary_key_name}");
}});
//]]></script>
<!-- 자동저장용 폼 -->
<!--@if($enable_autosave)-->
<input type="hidden" name="_saved_doc_title" value="{htmlspecialchars($saved_doc->title)}" />
@ -92,3 +82,12 @@
</div>
<!-- 에디터 활성화 -->
<script type="text/javascript">//<![CDATA[
var auto_saved_msg = "{$lang->msg_auto_saved}";
var xed_{$editor_sequence};
if(document.getElementById("comment_{$editor_sequence}") == null || document.getElementById("comment_{$editor_sequence}").style.display != 'none') {
editorStart_xq(xed_{$editor_sequence}, document.getElementById("xqEditor_{$editor_sequence}"), {$editor_sequence}, "{$editor_content_key_name}", "{$editor_height}px", "{$editor_primary_key_name}");
}
//]]></script>

View file

@ -117,9 +117,6 @@ function editorStart(editor_sequence, primary_key, content_key, editor_height) {
var contentHtml = ''+
'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'+
'<html lang="ko" xmlns="http://www.w3.org/1999/xhtml><head><meta http-equiv="content-type" content="text/html; charset=utf-8"/>'+
//'<base href="'+request_uri+'" />'+
//'<link rel="stylesheet" href="'+request_uri+'common/css/default.css" type="text/css" />'+
//'<link rel="stylesheet" href="'+request_uri+editor_path+'css/editor.css" type="text/css" />'+
'<style type="text/css">'+
'body {font-size:9pt;height:'+editor_height+'px; padding:5px; margin:0; background-color:transparent; line-height:140%;}'+
'</style>'+

View file

@ -46,8 +46,8 @@
$lang->enable_join = 'Allow Member Join';
$lang->limit_day = 'Temporary Limit Date';
$lang->limit_date = 'Limit Date';
$lang->after_login_url = '로그인 후 이동할 URL';
$lang->after_logout_url = '로그아웃 후 이동할 URL';
$lang->after_login_url = 'URL after login';
$lang->after_logout_url = 'URL after logout';
$lang->redirect_url = 'URL after Join';
$lang->agreement = 'Member Join Agreement';
$lang->accept_agreement = 'Agree';
@ -62,7 +62,7 @@
$lang->webmaster_name = "Webmaster's Name";
$lang->webmaster_email = "Webmaster's Email";
$lang->about_keep_signed = '브라우저를 닫더라도 로그인이 게속 유지될 수 있습니다.\n\n로그인 유지시 사용시 다음 접속부터는 로그인을 하실필요가 없습니다.\n\n단, 게임방, 학교등 공공장소에서 이용시 개인정보가 유출될수 있으니 꼭 로그아웃을 해주세요';
$lang->about_keep_signed = 'Your login session will not be expired even browser is closed.\n\nYou would not have to login manually from next time.\n\nIt is strongly recommended not to use auto-login in PC room, school, or other commons areas where your private information could be stolen.';
$lang->about_webmaster_name = "Please input webmaster's name which will be used for authentication mails or other site administration. (default : webmaster)";
$lang->about_webmaster_email = "Please input webmaster's email address.";
@ -185,8 +185,8 @@
$lang->about_enable_join = 'Allow users to sign up';
$lang->about_limit_day = 'You can limit certification date after sign up';
$lang->about_limit_date = 'User cannot login until assigned date';
$lang->about_after_login_url = '로그인 후 이동할 URL을 정하실 수 있습니다. 비어 있으면 해당 페이지가 유지됩니다.';
$lang->about_after_logout_url = '로그아웃 후 이동할 URL을 정하실 수 있습니다. 비어 있으면 해당 페이지가 유지됩니다.';
$lang->about_after_login_url = 'You can set URL after login. Blank means current page.';
$lang->about_after_logout_url = 'You can set URL after logout. Blank means current page.';
$lang->about_redirect_url = 'Please input URL where users will go after sign up. When this is empty, it will be set as the previous page of sign up page.';
$lang->about_agreement = "Sign up agreement will only be displayed when it's not empty";