mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 03:01:43 +09:00
누락된 파일 추가
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6991 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
7206d13e75
commit
14a165391a
2 changed files with 37 additions and 1 deletions
|
|
@ -900,6 +900,41 @@
|
|||
return $list;
|
||||
}
|
||||
|
||||
function checkNeedInstall($module_name)
|
||||
{
|
||||
$oDB = &DB::getInstance();
|
||||
$info = null;
|
||||
|
||||
$moduledir = ModuleHandler::getModulePath($module_name);
|
||||
if(file_exists(FileHandler::getRealPath($moduledir."schemas")))
|
||||
{
|
||||
$tmp_files = FileHandler::readDir($moduledir."schemas", '/(\.xml)$/');
|
||||
$table_count = count($tmp_files);
|
||||
|
||||
// 테이블이 설치되어 있는지 체크
|
||||
$created_table_count = 0;
|
||||
for($j=0;$j<count($tmp_files);$j++) {
|
||||
list($table_name) = explode(".",$tmp_files[$j]);
|
||||
if($oDB->isTableExists($table_name)) $created_table_count ++;
|
||||
}
|
||||
|
||||
// 설치 유무 체크 (설치는 DB의 설치만 관리)
|
||||
if($table_count > $created_table_count) return true;
|
||||
else return false;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
function checkNeedUpdate($module_name)
|
||||
{
|
||||
// 각 모듈의 module.class.php로 upgrade 유무 체크
|
||||
$oDummy = &getModule($module_name, 'class');
|
||||
if($oDummy && method_exists($oDummy, "checkUpdate")) {
|
||||
return $oDummy->checkUpdate();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 모듈의 종류와 정보를 구함
|
||||
**/
|
||||
|
|
|
|||
|
|
@ -52,7 +52,8 @@
|
|||
<!--@if($_idx >0)--><tr><!--@end-->
|
||||
<td>{$k}</td>
|
||||
<td>{$v->browser_title}</td>
|
||||
<td><a href="#" onclick="insertModule('{$id}', {$v->module_srl}, '{$k}', '{str_replace("'","\\'",$v->browser_title)}',{$type=='single'?'false':'true'}); return false;" class="button green"><span>{$type=='single'?$lang->cmd_select:$lang->cmd_insert}</span></a></td>
|
||||
<!--<td><a href="#" onclick="insertModule('{$id}', {$v->module_srl}, '{$k}', '{str_replace("'","\\'",$v->browser_title)}',{$type=='single'?'false':'true'}); return false;" class="button green"><span>{$type=='single'?$lang->cmd_select:$lang->cmd_insert}</span></a></td>-->
|
||||
<td><a href="#" onclick="insertModule('{$id}', {$v->module_srl}, '{$k}', '{urlencode($v->browser_title)}',{$type=='single'?'false':'true'}); return false;" class="button green"><span>{$type=='single'?$lang->cmd_select:$lang->cmd_insert}</span></a></td>
|
||||
<!--@if($_idx <count($val))--></tr><!--@end-->
|
||||
{@ $_idx ++; }
|
||||
<!--@end-->
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue