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

This commit is contained in:
zero 2007-03-14 07:20:43 +00:00
parent ed284c98f2
commit c3de1572b3
3 changed files with 19 additions and 10 deletions

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<module>
<actions>
<action name="dispDownloadedLayoutList" type="view" standalone="true" admin_index="true" />
<action name="dispDownloadedPluginList" type="view" standalone="true" admin_index="true" />
</actions>
</module>

View file

@ -57,7 +57,7 @@
* @brief 모듈의 conf/info.xml 읽어서 정보를 구함
* 이것 역시 캐싱을 통해서 xml parsing 시간을 줄인다..
**/
function getPluginInfo($plugin, $plugin_srl = 0, $plugin_title = "", $vars = null) {
function getPluginInfo($plugin) {
// 요청된 모듈의 경로를 구한다. 없으면 return
$plugin_path = $this->getPluginPath($plugin);
if(!$plugin_path) return;
@ -119,5 +119,12 @@
}
}
$buff = '<?php if(!__ZB5__) exit(); '.$buff.' ?>';
FileHandler::writeFile($cache_file, $buff);
if(file_exists($cache_file)) include $cache_file;
return $plugin_info;
}
}
?>

View file

@ -1,31 +1,33 @@
<!--#include("header.html")-->
<xmp>
{@print_r($plugin_list)}
</xmp>
<!-- 레이아웃의 목록 -->
<!-- 플러그인의 목록 -->
<div>
<table border="1" width="100%">
<tr>
<td>{$lang->layout_name}</td>
<td>{$lang->plugin_name}</td>
<td>{$lang->version}</td>
<td>{$lang->author}</td>
<td>{$lang->menu_count}</td>
<td>{$lang->date}</td>
<td>{$lang->path}</td>
<td>{$lang->layout_info}</td>
<td>{$lang->plugin_info}</td>
<td>{$lang->cmd_make}</td>
</tr>
<!--@foreach($layout_list as $key => $val)-->
<!--@foreach($plugin_list as $key => $val)-->
<tr>
<td rowspan="2">
{$val->title} <br />
({$val->layout})
({$val->plugin})
</td>
<td>{$val->version}</td>
<td><a href="#" onclick="window.open('{$val->author->homepage}')">{$val->author->name}</a></td>
<td>{$val->menu_count}</td>
<td>{$val->author->date}</td>
<td>{$val->path}</td>
<td><a href="#" onclick="winopen('{getUrl('','module','layout','act','dispLayoutInfo','selected_layout',$val->layout)}','layout_info','width=10,height=10,toolbars=no,scrollbars=yes,resizable=yes');return false">{$lang->cmd_view}</a></td>
<td><a href="{getUrl('mo','layout','act','dispInsertLayout','layout',$val->layout)}">{$lang->cmd_make}</a></td>
<td><a href="#" onclick="winopen('{getUrl('','module','plugin','act','dispPluginInfo','selected_plugin',$val->plugin)}','plugin_info','width=10,height=10,toolbars=no,scrollbars=yes,resizable=yes');return false">{$lang->cmd_view}</a></td>
<td><a href="{getUrl('mo','plugin','act','dispInsertPlugin','plugin',$val->plugin)}">{$lang->cmd_make}</a></td>
</tr>
<tr>
<td colspan="7">