mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@654 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
ee7a05b344
commit
bc732c3f34
19 changed files with 46 additions and 22 deletions
|
|
@ -1,5 +1,5 @@
|
|||
<?php
|
||||
if(!__ZB5__) exit();
|
||||
if(!__ZBXE__) exit();
|
||||
|
||||
/**
|
||||
* @file naver_search_addon.addon.php
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<?php
|
||||
if(!__ZB5__) exit();
|
||||
if(!__ZBXE__) exit();
|
||||
|
||||
/**
|
||||
* @file spamfilter.addon.php
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<?php
|
||||
if(!__ZB5__) exit();
|
||||
if(!__ZBXE__) exit();
|
||||
|
||||
/**
|
||||
* @file spamfilter.addon.php
|
||||
|
|
|
|||
|
|
@ -97,7 +97,7 @@
|
|||
$buff = preg_replace_callback('!<div plugin=([^<]*?)<\/div>!is', array($this, '_compilePluginCode'), $buff);
|
||||
|
||||
// 파일에 쓰기 전에 직접 호출되는 것을 방지
|
||||
$buff = sprintf('%s%s%s','<?php if(!__ZB5__) exit();?>',"\n",$buff);
|
||||
$buff = sprintf('%s%s%s','<?php if(!__ZBXE__) exit();?>',"\n",$buff);
|
||||
|
||||
// 컴파일된 코드를 파일에 저장
|
||||
FileHandler::writeFile($compiled_tpl_file, $buff);
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@
|
|||
// 캐쉬 내용 작성
|
||||
$buff =
|
||||
sprintf(
|
||||
'<?php if(!__ZB5__) exit();'."\n".
|
||||
'<?php if(!__ZBXE__) exit();'."\n".
|
||||
'$pass_quotes = array();'."\n".
|
||||
'$id = \'%s\';'."\n".
|
||||
'$action = \'%s\';'."\n".
|
||||
|
|
|
|||
|
|
@ -141,7 +141,7 @@ function zbxe_folder_close(id) {
|
|||
}
|
||||
|
||||
|
||||
// 에디터에서 사용하는 내용 여닫는 코드 (고정, zb5 beta 호환용)
|
||||
// 에디터에서 사용하는 내용 여닫는 코드 (고정, zb5beta beta 호환용)
|
||||
function svc_folder_open(id) {
|
||||
var open_text_obj = xGetElementById("_folder_open_"+id);
|
||||
var close_text_obj = xGetElementById("_folder_close_"+id);
|
||||
|
|
|
|||
|
|
@ -133,7 +133,7 @@
|
|||
$lang->filter->isnull = '%s의 값을 입력해주세요';
|
||||
$lang->filter->outofrange = '%s의 글자 길이를 맞추어 주세요.';
|
||||
$lang->filter->equalto = '%s의 값이 잘못 되었습니다.';
|
||||
$lang->filter->invalid_email = '%s의 형식이 잘못되었습니다. (예: zb5@zeroboard.com)';
|
||||
$lang->filter->invalid_email = '%s의 형식이 잘못되었습니다. (예: zbxe@zeroboard.com)';
|
||||
$lang->filter->invalid_user_id = $lang->filter->invalid_userid = "%s의 형식이 잘못되었습니다.\\n영문,숫자와 _로 만드실 수 있으며 제일 앞은 영문이어야 합니다";
|
||||
$lang->filter->invalid_homepage = '%s의 형식이 잘못되었습니다. (예: http://www.zeroboard.com)';
|
||||
$lang->filter->invalid_korean = '%s의 형식이 잘못되었습니다. 한글로만 입력해주셔야 합니다';
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
/**
|
||||
* @brief 기본적인 상수 선언, 웹에서 직접 호출되는 것을 막기 위해 체크하는 상수 선언
|
||||
**/
|
||||
define('__ZB5__', true);
|
||||
define('__ZBXE__', true);
|
||||
|
||||
/**
|
||||
* @brief 간단하게 사용하기 위한 함수 정의한 파일 require
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@
|
|||
$buff .= sprintf(' include("./addons/%s/%s.addon.php"); ', $addon, $addon);
|
||||
}
|
||||
|
||||
$buff = sprintf('<?if(!__ZB5__)exit(); %s ?>', $buff);
|
||||
$buff = sprintf('<?if(!__ZBXE__)exit(); %s ?>', $buff);
|
||||
|
||||
FileHandler::writeFile($this->cache_file, $buff);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,6 +3,6 @@
|
|||
<title xml:lang="ko">HTML 코드 수정</title>
|
||||
<author email_address="zero@zeroboard.com" link="http://www.zeroboard.com" date="2007. 2. 28">
|
||||
<name xml:lang="ko">제로</name>
|
||||
<description xml:lang="ko">에디터에서 HTML 코드를 직접 수정하거나 추가할 수 있습니다.\n보안 문제로 인하여 가능한 관리자만 사용할 수 있도록 하세요.</description>
|
||||
<description xml:lang="ko">에디터에서 HTML 코드를 직접 수정하거나 추가할 수 있습니다.\n보안 문제로 인하여 가능한 끄는 것이 좋습니다.</description>
|
||||
</author>
|
||||
</component>
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@
|
|||
$xml_info->author->date = $xml_doc->component->author->attrs->date;
|
||||
$xml_info->description = str_replace('\n', "\n", $xml_doc->component->author->description->body);
|
||||
|
||||
$buff = '<?php if(!__ZB5__) exit(); ';
|
||||
$buff = '<?php if(!__ZBXE__) exit(); ';
|
||||
$buff .= sprintf('$xml_info->component_name = "%s";', $component);
|
||||
$buff .= sprintf('$xml_info->version = "%s";', $xml_info->version);
|
||||
$buff .= sprintf('$xml_info->title = "%s";', $xml_info->title);
|
||||
|
|
|
|||
6
modules/editor/schemas/editor_component.xml
Normal file
6
modules/editor/schemas/editor_component.xml
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
<table name="editor_components">
|
||||
<column name="component_name" type="varchar" size="250" notnull="notnull" primary_key="primary_key" />
|
||||
<column name="enabled" type="char" size="1" default="N" notnull="notnull" />
|
||||
<column name="extra_vars" type="text"/>
|
||||
<column name="list_order" type="number" size="11" notnull="notnull" index="idx_list_order" />
|
||||
</table>
|
||||
|
|
@ -16,10 +16,28 @@
|
|||
<td><a href="mailto:{$xml_info->author->email_address}">{$xml_info->author->name}</a></td>
|
||||
<td><a href="#" onclick="window.open('{$xml_info->author->link}');return false;">{$xml_info->author->link}</a></td>
|
||||
<td>{$xml_info->author->date}</td>
|
||||
<td rowspan="2">{$lang->cmd_setup}</td>
|
||||
<td rowspan="2">{$lang->use}</td>
|
||||
<td rowspan="2">{$lang->cmd_move_up}</td>
|
||||
<td rowspan="2">{$lang->cmd_move_down}</td>
|
||||
<td rowspan="2">
|
||||
<!--@if($xml_info->extra_vars)-->
|
||||
<a href="#">{$lang->cmd_setup}</a>
|
||||
<!--@end-->
|
||||
</td>
|
||||
<td rowspan="2">
|
||||
<!--@if($xml_info->enable)-->
|
||||
<a href="#">{$lang->not_use}</a>
|
||||
<!--@else-->
|
||||
<a href="#">{$lang->use}</a>
|
||||
<!--@end-->
|
||||
</td>
|
||||
<td rowspan="2">
|
||||
<!--@if($xml_info->enable)-->
|
||||
<a href="#">{$lang->cmd_move_up}</a>
|
||||
<!--@end-->
|
||||
</td>
|
||||
<td rowspan="2">
|
||||
<!--@if($xml_info->enable)-->
|
||||
<a href="#">{$lang->cmd_move_down}</a>
|
||||
<!--@end-->
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3">{nl2br($xml_info->description)}</td>
|
||||
|
|
|
|||
|
|
@ -179,7 +179,7 @@
|
|||
$db_info = Context::getDbInfo();
|
||||
if(!$db_info) return;
|
||||
|
||||
$buff = '<?php if(!__ZB5__) exit();'."\n";
|
||||
$buff = '<?php if(!__ZBXE__) exit();'."\n";
|
||||
foreach($db_info as $key => $val) {
|
||||
$buff .= sprintf("\$db_info->%s = \"%s\";\n", $key, $val);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@
|
|||
<tr>
|
||||
<td>{$lang->db_table_prefix}</td>
|
||||
<td>
|
||||
<input type="text" name="db_table_prefix" value="zb" />
|
||||
<input type="text" name="db_table_prefix" value="xe" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
|
|||
|
|
@ -296,7 +296,7 @@
|
|||
|
||||
// php 캐시 파일 생성
|
||||
$php_output = $this->getPhpCacheCode($tree[0], $tree);
|
||||
$php_buff = sprintf('<?php if(!__ZB5__) exit(); $menu->list = array(%s); ?>', $php_output['buff']);
|
||||
$php_buff = sprintf('<?php if(!__ZBXE__) exit(); $menu->list = array(%s); ?>', $php_output['buff']);
|
||||
|
||||
// 파일 저장
|
||||
FileHandler::writeFile($xml_file, $xml_buff);
|
||||
|
|
|
|||
|
|
@ -170,7 +170,7 @@
|
|||
$buff .= sprintf('$layout_info->menu->{%s}->php_file = "./files/cache/layout/".$layout_srl."_%s.php";',$id, $id);
|
||||
}
|
||||
|
||||
$buff = '<?php if(!__ZB5__) exit(); '.$buff.' ?>';
|
||||
$buff = '<?php if(!__ZBXE__) exit(); '.$buff.' ?>';
|
||||
FileHandler::writeFile($cache_file, $buff);
|
||||
|
||||
if(file_exists($cache_file)) include $cache_file;
|
||||
|
|
|
|||
|
|
@ -297,7 +297,7 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
$buff = sprintf('<?php if(!__ZB5__) exit();$info->default_index_act = \'%s\';$info->admin_index_act = \'%s\';%s?>', $default_index_act, $admin_index_act, $buff);
|
||||
$buff = sprintf('<?php if(!__ZBXE__) exit();$info->default_index_act = \'%s\';$info->admin_index_act = \'%s\';%s?>', $default_index_act, $admin_index_act, $buff);
|
||||
|
||||
FileHandler::writeFile($cache_file, $buff);
|
||||
|
||||
|
|
@ -324,7 +324,7 @@
|
|||
|
||||
$config = base64_encode($output->data->config);
|
||||
|
||||
$buff = sprintf('<?php if(!__ZB5__) exit(); $config = "%s"; ?>', $config);
|
||||
$buff = sprintf('<?php if(!__ZBXE__) exit(); $config = "%s"; ?>', $config);
|
||||
|
||||
//FileHandler::writeFile($cache_file, $buff);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -123,7 +123,7 @@
|
|||
|
||||
}
|
||||
|
||||
$buff = '<?php if(!__ZB5__) exit(); '.$buff.' ?>';
|
||||
$buff = '<?php if(!__ZBXE__) exit(); '.$buff.' ?>';
|
||||
FileHandler::writeFile($cache_file, $buff);
|
||||
|
||||
if(file_exists($cache_file)) include $cache_file;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue