mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-22 04:39:55 +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
|
|
@ -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