Project

General

Profile

Bug #21220 ยป 12172.diff

Administrator Admin, 2009-10-09 20:30

View differences:

typo3/mod/tools/em/class.em_index.php (working copy)
list($new_list)=$this->getInstalledExtensions();
$content.=$this->updatesForm($extKey,$new_list[$extKey],1,'index.php?CMD[showExt]='.$extKey.'&SET[singleDetails]=info');
}
$flashMessage = t3lib_div::makeInstance(
't3lib_FlashMessage',
$content,
......
*/
function extInformationArray($extKey,$extInfo,$remote=0) {
$lines=array();
$lines[] = '<tr class="bgColor5"><td colspan="2"><strong>' . $GLOBALS['LANG']->getLL('extInfoArray_general_info') . '</strong></td>' .
$this->helpCol('') . '</tr>';
$lines[] = '<tr class="bgColor4"><td>' . $GLOBALS['LANG']->getLL('extInfoArray_title') . '</td>
$lines[] = '<tr class="bgColor5">' . $this->helpCol('') . '<td colspan="2"><strong>' . $GLOBALS['LANG']->getLL('extInfoArray_general_info') . '</strong></td>' .
'</tr>';
$lines[] = '<tr class="bgColor4">' . $this->helpCol('title') . '<td>' . $GLOBALS['LANG']->getLL('extInfoArray_title') . '</td>
<td>' . $extInfo['EM_CONF']['_icon'] . $extInfo['EM_CONF']['title'] . '</td>' .
$this->helpCol('title') . '</tr>';
$lines[] = '<tr class="bgColor4"><td>' . $GLOBALS['LANG']->getLL('extInfoArray_description') . '</td>
'</tr>';
$lines[] = '<tr class="bgColor4">' . $this->helpCol('description') . '<td>' . $GLOBALS['LANG']->getLL('extInfoArray_description') . '</td>
<td>' . nl2br(htmlspecialchars($extInfo['EM_CONF']['description'])) . '</td>' .
$this->helpCol('description') . '</tr>';
$lines[] = '<tr class="bgColor4"><td>' . $GLOBALS['LANG']->getLL('extInfoArray_author') . '</td>
'</tr>';
$lines[] = '<tr class="bgColor4">' . $this->helpCol('author') . '<td>' . $GLOBALS['LANG']->getLL('extInfoArray_author') . '</td>
<td>' . $this->wrapEmail($extInfo['EM_CONF']['author'] .
($extInfo['EM_CONF']['author_email'] ?
' <' . $extInfo['EM_CONF']['author_email'] . '>' : ''),
$extInfo['EM_CONF']['author_email']) .
($extInfo['EM_CONF']['author_company'] ?
', ' . $extInfo['EM_CONF']['author_company'] : '') . '</td>' .
$this->helpCol('author') . '</tr>';
'</tr>';
$lines[] = '<tr class="bgColor4"><td>' . $GLOBALS['LANG']->getLL('extInfoArray_version') . '</td>
$lines[] = '<tr class="bgColor4">' . $this->helpCol('version') . '<td>' . $GLOBALS['LANG']->getLL('extInfoArray_version') . '</td>
<td>' . $extInfo['EM_CONF']['version'] . '</td>' .
$this->helpCol('version') . '</tr>';
$lines[] = '<tr class="bgColor4"><td>' . $GLOBALS['LANG']->getLL('extInfoArray_category') . '</td>
'</tr>';
$lines[] = '<tr class="bgColor4">' . $this->helpCol('category') . '<td>' . $GLOBALS['LANG']->getLL('extInfoArray_category') . '</td>
<td>' . $this->categories[$extInfo['EM_CONF']['category']] . '</td>' .
$this->helpCol('category') . '</tr>';
$lines[] = '<tr class="bgColor4"><td>' . $GLOBALS['LANG']->getLL('extInfoArray_state') . '</td>
'</tr>';
$lines[] = '<tr class="bgColor4">' . $this->helpCol('state') . '<td>' . $GLOBALS['LANG']->getLL('extInfoArray_state') . '</td>
<td>' . $this->states[$extInfo['EM_CONF']['state']] . '</td>' .
$this->helpCol('state') . '</tr>';
$lines[] = '<tr class="bgColor4"><td>' . $GLOBALS['LANG']->getLL('extInfoArray_shy') . '</td>
'</tr>';
$lines[] = '<tr class="bgColor4">' . $this->helpCol('shy') . '<td>' . $GLOBALS['LANG']->getLL('extInfoArray_shy') . '</td>
<td>' . ($extInfo['EM_CONF']['shy'] ?
$GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_common.xml:yes') : '') . '</td>' .
$this->helpCol('shy') . '</tr>';
$lines[] = '<tr class="bgColor4"><td>' . $GLOBALS['LANG']->getLL('extInfoArray_internal') . '</td>
'</tr>';
$lines[] = '<tr class="bgColor4">' . $this->helpCol('internal') . '<td>' . $GLOBALS['LANG']->getLL('extInfoArray_internal') . '</td>
<td>' . ($extInfo['EM_CONF']['internal'] ?
$GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_common.xml:yes') : '') . '</td>' .
$this->helpCol('internal') . '</tr>';
'</tr>';
$lines[] = '<tr class="bgColor4"><td>' . $GLOBALS['LANG']->getLL('extInfoArray_depends_on') . '</td>
$lines[] = '<tr class="bgColor4">' . $this->helpCol('dependencies') . '<td>' . $GLOBALS['LANG']->getLL('extInfoArray_depends_on') . '</td>
<td>' . $this->depToString($extInfo['EM_CONF']['constraints']) . '</td>' .
$this->helpCol('dependencies') . '</tr>';
$lines[] = '<tr class="bgColor4"><td>' . $GLOBALS['LANG']->getLL('extInfoArray_conflicts_with') . '</td>
'</tr>';
$lines[] = '<tr class="bgColor4">' . $this->helpCol('conflicts') . '<td>' . $GLOBALS['LANG']->getLL('extInfoArray_conflicts_with') . '</td>
<td>' . $this->depToString($extInfo['EM_CONF']['constraints'], 'conflicts') . '</td>' .
$this->helpCol('conflicts') . '</tr>';
$lines[] = '<tr class="bgColor4"><td>' . $GLOBALS['LANG']->getLL('extInfoArray_suggests') . '</td>
'</tr>';
$lines[] = '<tr class="bgColor4">' . $this->helpCol('suggests') . '<td>' . $GLOBALS['LANG']->getLL('extInfoArray_suggests') . '</td>
<td>' . $this->depToString($extInfo['EM_CONF']['constraints'], 'suggests') . '</td>' .
$this->helpCol('suggests') . '</tr>';
'</tr>';
if (!$remote) {
$lines[] = '<tr class="bgColor4"><td>' . $GLOBALS['LANG']->getLL('extInfoArray_priority') . '</td>
$lines[] = '<tr class="bgColor4">' . $this->helpCol('priority') . '<td>' . $GLOBALS['LANG']->getLL('extInfoArray_priority') . '</td>
<td>' . $extInfo['EM_CONF']['priority'] . '</td>' .
$this->helpCol('priority') . '</tr>';
$lines[] = '<tr class="bgColor4"><td>' . $GLOBALS['LANG']->getLL('extInfoArray_clear_cache') . '</td>
'</tr>';
$lines[] = '<tr class="bgColor4">' . $this->helpCol('clearCacheOnLoad') . '<td>' . $GLOBALS['LANG']->getLL('extInfoArray_clear_cache') . '</td>
<td>' . ($extInfo['EM_CONF']['clearCacheOnLoad'] ?
$GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_common.xml:yes') : '') . '</td>' .
$this->helpCol('clearCacheOnLoad') . '</tr>';
$lines[] = '<tr class="bgColor4"><td>' . $GLOBALS['LANG']->getLL('extInfoArray_incl_modules') . '</td>
'</tr>';
$lines[] = '<tr class="bgColor4">' . $this->helpCol('module') . '<td>' . $GLOBALS['LANG']->getLL('extInfoArray_incl_modules') . '</td>
<td>' . $extInfo['EM_CONF']['module'] . '</td>' .
$this->helpCol('module') . '</tr>';
$lines[] = '<tr class="bgColor4"><td>' . $GLOBALS['LANG']->getLL('extInfoArray_lock_type') . '</td>
'</tr>';
$lines[] = '<tr class="bgColor4">' . $this->helpCol('lockType') . '<td>' . $GLOBALS['LANG']->getLL('extInfoArray_lock_type') . '</td>
<td>' . ($extInfo['EM_CONF']['lockType'] ?
$extInfo['EM_CONF']['lockType'] : '') . '</td>' .
$this->helpCol('lockType') . '</tr>';
$lines[] = '<tr class="bgColor4"><td>' . $GLOBALS['LANG']->getLL('extInfoArray_load_in_frontend') . '</td>
'</tr>';
$lines[] = '<tr class="bgColor4">' . $this->helpCol('doNotLoadInFE') . '<td>' . $GLOBALS['LANG']->getLL('extInfoArray_load_in_frontend') . '</td>
<td>' . ($extInfo['EM_CONF']['doNotLoadInFE'] ?
$GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_common.xml:no')
: $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_common.xml:yes')) . '</td>' .
$this->helpCol('doNotLoadInFE') . '</tr>';
$lines[] = '<tr class="bgColor4"><td>' . $GLOBALS['LANG']->getLL('extInfoArray_modifies_tables') . '</td>
'</tr>';
$lines[] = '<tr class="bgColor4">' . $this->helpCol('modify_tables') . '<td>' . $GLOBALS['LANG']->getLL('extInfoArray_modifies_tables') . '</td>
<td>' . $extInfo['EM_CONF']['modify_tables'] . '</td>' .
$this->helpCol('modify_tables') . '</tr>';
'</tr>';
// Installation status:
$techInfo = $this->makeDetailedExtensionAnalysis($extKey,$extInfo,1);
$lines[] = '<tr><td>&nbsp;</td><td></td>'.$this->helpCol('').'</tr>';
$lines[] = '<tr class="bgColor5"><td colspan="2"><strong>' . $GLOBALS['LANG']->getLL('extInfoArray_inst_status') . '</strong></td>' .
$this->helpCol('') . '</tr>';
$lines[] = '<tr class="bgColor4"><td>' . $GLOBALS['LANG']->getLL('extInfoArray_inst_type') . '</td>
$lines[] = '<tr>' . $this->helpCol('') . '<td>&nbsp;</td><td></td></tr>';
$lines[] = '<tr class="bgColor5">' . $this->helpCol('') . '<td colspan="2"><strong>' . $GLOBALS['LANG']->getLL('extInfoArray_inst_status') . '</strong></td>' .
'</tr>';
$lines[] = '<tr class="bgColor4">' . $this->helpCol('type') . '<td>' . $GLOBALS['LANG']->getLL('extInfoArray_inst_type') . '</td>
<td>' . $this->typeLabels[$extInfo['type']] . ' - <em>' . $this->typeDescr[$extInfo['type']] . '</em></td>' .
$this->helpCol('type') . '</tr>';
$lines[] = '<tr class="bgColor4"><td>' . $GLOBALS['LANG']->getLL('extInfoArray_inst_twice') . '</td>
'</tr>';
$lines[] = '<tr class="bgColor4">' . $this->helpCol('doubleInstall') . '<td>' . $GLOBALS['LANG']->getLL('extInfoArray_inst_twice') . '</td>
<td>' . $this->extInformationArray_dbInst($extInfo['doubleInstall'], $extInfo['type']) . '</td>' .
$this->helpCol('doubleInstall') . '</tr>';
'</tr>';
if (is_array($extInfo['files'])) {
sort($extInfo['files']);
$lines[] = '<tr class="bgColor4"><td>' . $GLOBALS['LANG']->getLL('extInfoArray_root_files') . '</td>
$lines[] = '<tr class="bgColor4">' . $this->helpCol('rootfiles') . '<td>' . $GLOBALS['LANG']->getLL('extInfoArray_root_files') . '</td>
<td>' . implode('<br />', $extInfo['files']) . '</td>' .
$this->helpCol('rootfiles') . '</tr>';
'</tr>';
}
if ($techInfo['tables']||$techInfo['static']||$techInfo['fields']) {
......
}
}
$lines[] = '<tr class="bgColor4"><td>' . $GLOBALS['LANG']->getLL('extInfoArray_db_requirements') . '</td>
$lines[] = '<tr class="bgColor4">' . $this->helpCol('dbReq') . '<td>' . $GLOBALS['LANG']->getLL('extInfoArray_db_requirements') . '</td>
<td>' . $this->extInformationArray_dbReq($techInfo, 1) . '</td>' .
$this->helpCol('dbReq') . '</tr>';
$lines[] = '<tr class="bgColor4"><td>' . $GLOBALS['LANG']->getLL('extInfoArray_db_status') . '</td>
'</tr>';
$lines[] = '<tr class="bgColor4">' . $this->helpCol('dbStatus') . '<td>' . $GLOBALS['LANG']->getLL('extInfoArray_db_status') . '</td>
<td>' . $tableStatus . '</td>' .
$this->helpCol('dbStatus') . '</tr>';
$lines[] = '<tr class="bgColor4"><td>' . $GLOBALS['LANG']->getLL('extInfoArray_flags') . '</td>
'</tr>';
$lines[] = '<tr class="bgColor4">' . $this->helpCol('flags') . '<td>' . $GLOBALS['LANG']->getLL('extInfoArray_flags') . '</td>
<td>' . (is_array($techInfo['flags']) ?
implode('<br />', $techInfo['flags']) : '') . '</td>' .
$this->helpCol('flags') . '</tr>';
$lines[] = '<tr class="bgColor4"><td>' . $GLOBALS['LANG']->getLL('extInfoArray_config_template') . '</td>
'</tr>';
$lines[] = '<tr class="bgColor4">' . $this->helpCol('conf') . '<td>' . $GLOBALS['LANG']->getLL('extInfoArray_config_template') . '</td>
<td>' . ($techInfo['conf'] ?
$GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_common.xml:yes') : '') . '</td>' .
$this->helpCol('conf') . '</tr>';
$lines[] = '<tr class="bgColor4"><td>' . $GLOBALS['LANG']->getLL('extInfoArray_typoscript_files') . '</td>
'</tr>';
$lines[] = '<tr class="bgColor4">' . $this->helpCol('TSfiles') . '<td>' . $GLOBALS['LANG']->getLL('extInfoArray_typoscript_files') . '</td>
<td>' . (is_array($techInfo['TSfiles']) ?
implode('<br />', $techInfo['TSfiles']) : '') . '</td>' .
$this->helpCol('TSfiles') . '</tr>';
$lines[] = '<tr class="bgColor4"><td>' . $GLOBALS['LANG']->getLL('extInfoArray_language_files') . '</td>
'</tr>';
$lines[] = '<tr class="bgColor4">' . $this->helpCol('locallang') . '<td>' . $GLOBALS['LANG']->getLL('extInfoArray_language_files') . '</td>
<td>' . (is_array($techInfo['locallang']) ?
implode('<br />', $techInfo['locallang']) : '') . '</td>' .
$this->helpCol('locallang') . '</tr>';
$lines[] = '<tr class="bgColor4"><td>' . $GLOBALS['LANG']->getLL('extInfoArray_upload_folder') . '</td>
'</tr>';
$lines[] = '<tr class="bgColor4">' . $this->helpCol('uploadfolder') . '<td>' . $GLOBALS['LANG']->getLL('extInfoArray_upload_folder') . '</td>
<td>' . ($techInfo['uploadfolder'] ?
$techInfo['uploadfolder'] : '') . '</td>' .
$this->helpCol('uploadfolder') . '</tr>';
$lines[] = '<tr class="bgColor4"><td>' . $GLOBALS['LANG']->getLL('extInfoArray_create_directories') . '</td>
'</tr>';
$lines[] = '<tr class="bgColor4">' . $this->helpCol('createDirs') . '<td>' . $GLOBALS['LANG']->getLL('extInfoArray_create_directories') . '</td>
<td>' . (is_array($techInfo['createDirs']) ?
implode('<br />', $techInfo['createDirs']) : '') . '</td>' .
$this->helpCol('createDirs') . '</tr>';
$lines[] = '<tr class="bgColor4"><td>' . $GLOBALS['LANG']->getLL('extInfoArray_module_names') . '</td>
'</tr>';
$lines[] = '<tr class="bgColor4">' . $this->helpCol('moduleNames') . '<td>' . $GLOBALS['LANG']->getLL('extInfoArray_module_names') . '</td>
<td>' . (is_array($techInfo['moduleNames']) ?
implode('<br />', $techInfo['moduleNames']) : '') . '</td>' .
$this->helpCol('moduleNames') . '</tr>';
$lines[] = '<tr class="bgColor4"><td>' . $GLOBALS['LANG']->getLL('extInfoArray_class_names') . '</td>
'</tr>';
$lines[] = '<tr class="bgColor4">' . $this->helpCol('classNames') . '<td>' . $GLOBALS['LANG']->getLL('extInfoArray_class_names') . '</td>
<td>' . (is_array($techInfo['classes']) ?
implode('<br />', $techInfo['classes']) : '') . '</td>' .
$this->helpCol('classNames') . '</tr>';
$lines[] = '<tr class="bgColor4"><td>' . $GLOBALS['LANG']->getLL('extInfoArray_code_warnings') . '<br />' .
'</tr>';
$lines[] = '<tr class="bgColor4">' . $this->helpCol('errors') . '<td>' . $GLOBALS['LANG']->getLL('extInfoArray_code_warnings') . '<br />' .
$GLOBALS['LANG']->getLL('extInfoArray_dev_relevant') . '</td>
<td>' . (is_array($techInfo['errors']) ?
$GLOBALS['TBE_TEMPLATE']->rfw(implode('<br />', $techInfo['errors'])) : '') . '</td>' .
$this->helpCol('errors') . '</tr>';
$lines[] = '<tr class="bgColor4"><td>' . $GLOBALS['LANG']->getLL('extInfoArray_annoyances') . '<br />' .
'</tr>';
$lines[] = '<tr class="bgColor4">' . $this->helpCol('NSerrors') . '<td>' . $GLOBALS['LANG']->getLL('extInfoArray_annoyances') . '<br />' .
$GLOBALS['LANG']->getLL('extInfoArray_dev_relevant') . '</td>
<td>' . (is_array($techInfo['NSerrors']) ?
(!t3lib_div::inList($this->nameSpaceExceptions, $extKey) ?
t3lib_div::view_array($techInfo['NSerrors']) :
$GLOBALS['TBE_TEMPLATE']->dfw($GLOBALS['LANG']->getLL('extInfoArray_exception'))) : '') . '</td>' .
$this->helpCol('NSerrors') . '</tr>';
'</tr>';
$currentMd5Array = $this->serverExtensionMD5Array($extKey,$extInfo);
$affectedFiles='';
......
$GLOBALS['TBE_TEMPLATE']->rfw(implode('<br />', $affectedFiles));
}
}
$lines[] = '<tr class="bgColor4"><td>' . $GLOBALS['LANG']->getLL('extInfoArray_files_changed') . '</td>
$lines[] = '<tr class="bgColor4">' . $this->helpCol('filesChanged') . '<td>' . $GLOBALS['LANG']->getLL('extInfoArray_files_changed') . '</td>
<td>' . implode('<br />', $msgLines) . '</td>' .
$this->helpCol('filesChanged') . '</tr>';
'</tr>';
}
return '<table border="0" cellpadding="1" cellspacing="2">
......
return '<td>&nbsp;</td>';
}
else {
return t3lib_BEfunc::cshItem($this->descrTable, 'emconf_'.$key, $GLOBALS['BACK_PATH'], '<td>|</td>');
$csh = t3lib_BEfunc::cshItem($this->descrTable, 'emconf_' . $key, $GLOBALS['BACK_PATH'], '<td>|</td>');
return $csh ? $csh : '<td>&nbsp;</td>';
}
}
else {
    (1-1/1)