git-svn-id: http://xe-core.googlecode.com/svn/trunk@654 201d5d3c-b55e-5fd7-737f-ddc643e51545

This commit is contained in:
zero 2007-03-26 06:48:08 +00:00
parent ee7a05b344
commit bc732c3f34
19 changed files with 46 additions and 22 deletions

View file

@ -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);
}

View file

@ -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>

View file

@ -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);

View 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>

View file

@ -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>

View file

@ -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);
}

View file

@ -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>

View file

@ -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);

View file

@ -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;

View 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);
}

View file

@ -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;