table row
- */
- function extensionListRowHeader($trAttrib,$cells,$import=0) {
- $cells[] = ' | ';
- $cells[] = '' . $GLOBALS['LANG']->getLL('extInfoArray_title') . ' | ';
-
- if (!$this->MOD_SETTINGS['display_details']) {
- $cells[] = '' . $GLOBALS['LANG']->getLL('extInfoArray_description') . ' | ';
- $cells[] = '' . $GLOBALS['LANG']->getLL('extInfoArray_author') . ' | ';
- } elseif ($this->MOD_SETTINGS['display_details']==2) {
- $cells[] = '' . $GLOBALS['LANG']->getLL('extInfoArray_priority') . ' | ';
- $cells[] = '' . $GLOBALS['LANG']->getLL('listRowHeader_modifies_tables_short') . ' | ';
- $cells[] = '' . $GLOBALS['LANG']->getLL('listRowHeader_modules') . ' | ';
- $cells[] = '' . $GLOBALS['LANG']->getLL('listRowHeader_clear_cache_short') . ' | ';
- $cells[] = '' . $GLOBALS['LANG']->getLL('extInfoArray_internal') . ' | ';
- $cells[] = '' . $GLOBALS['LANG']->getLL('extInfoArray_shy') . ' | ';
- } elseif ($this->MOD_SETTINGS['display_details']==3) {
- $cells[] = '' . $GLOBALS['LANG']->getLL('listRowHeader_tables_fields') . ' | ';
- $cells[] = '' . $GLOBALS['LANG']->getLL('listRowHeader_ts_files') . ' | ';
- $cells[] = '' . $GLOBALS['LANG']->getLL('listRowHeader_affects') . ' | ';
- $cells[] = '' . $GLOBALS['LANG']->getLL('listRowHeader_modules') . ' | ';
- $cells[] = '' . $GLOBALS['LANG']->getLL('listRowHeader_config') . ' | ';
- $cells[] = '' . $GLOBALS['LANG']->getLL('extInfoArray_code_warnings') . ' | ';
- } elseif ($this->MOD_SETTINGS['display_details']==4) {
- $cells[] = '' . $GLOBALS['LANG']->getLL('listRowHeader_locallang') . ' | ';
- $cells[] = '' . $GLOBALS['LANG']->getLL('listRowHeader_classes') . ' | ';
- $cells[] = '' . $GLOBALS['LANG']->getLL('extInfoArray_code_warnings') . ' | ';
- $cells[] = '' . $GLOBALS['LANG']->getLL('extInfoArray_annoyances') . ' | ';
- } elseif ($this->MOD_SETTINGS['display_details']==5) {
- $cells[] = '' . $GLOBALS['LANG']->getLL('listRowHeader_changed_files') . ' | ';
- } else {
- $cells[] = '' . $GLOBALS['LANG']->getLL('listRowHeader_ext_key') . ' | ';
- $cells[] = '' . $GLOBALS['LANG']->getLL('extInfoArray_version') . ' | ';
- if (!$import) {
- $cells[] = '' . $GLOBALS['LANG']->getLL('listRowHeader_download_short') . ' | ';
- $cells[] = '' . $GLOBALS['LANG']->getLL('listRowHeader_documentation_short') . ' | ';
- $cells[] = '' . $GLOBALS['LANG']->getLL('listRowHeader_type') . ' | ';
- } else {
- $cells[] = 'labelInfo($GLOBALS['LANG']->getLL('listRowHeader_title_upload_date')) . '>' .
- $GLOBALS['LANG']->getLL('listRowHeader_upload_date') . ' | ';
+ /**
+ * Prints the header row for the various listings
+ *
+ * @param string Attributes for the
table row
+ */
+ function extensionListRowHeader($trAttrib,$cells,$import=0) {
+ $cells[] = ' | ';
+ $cells[] = '' . $GLOBALS['LANG']->getLL('extInfoArray_title') . ' | ';
+
+ if (!$this->MOD_SETTINGS['display_details']) {
+ $cells[] = '' . $GLOBALS['LANG']->getLL('extInfoArray_description') . ' | ';
$cells[] = '' . $GLOBALS['LANG']->getLL('extInfoArray_author') . ' | ';
- $cells[] = 'labelInfo($GLOBALS['LANG']->getLL('listRowHeader_title_current_version')) . '>' .
- $GLOBALS['LANG']->getLL('listRowHeader_current_version') . ' | ';
- $cells[] = 'labelInfo($GLOBALS['LANG']->getLL('listRowHeader_title_current_type')) . '>' .
- $GLOBALS['LANG']->getLL('listRowHeader_current_type') . ' | ';
- $cells[] = 'labelInfo($GLOBALS['LANG']->getLL('listRowHeader_title_number_of_downloads')) . '>' .
- $GLOBALS['LANG']->getLL('listRowHeader_download_short') . ' | ';
+ } elseif ($this->MOD_SETTINGS['display_details']==2) {
+ $cells[] = '' . $GLOBALS['LANG']->getLL('extInfoArray_priority') . ' | ';
+ $cells[] = '' . $GLOBALS['LANG']->getLL('listRowHeader_modifies_tables_short') . ' | ';
+ $cells[] = '' . $GLOBALS['LANG']->getLL('listRowHeader_modules') . ' | ';
+ $cells[] = '' . $GLOBALS['LANG']->getLL('listRowHeader_clear_cache_short') . ' | ';
+ $cells[] = '' . $GLOBALS['LANG']->getLL('extInfoArray_internal') . ' | ';
+ $cells[] = '' . $GLOBALS['LANG']->getLL('extInfoArray_shy') . ' | ';
+ } elseif ($this->MOD_SETTINGS['display_details']==3) {
+ $cells[] = '' . $GLOBALS['LANG']->getLL('listRowHeader_tables_fields') . ' | ';
+ $cells[] = '' . $GLOBALS['LANG']->getLL('listRowHeader_ts_files') . ' | ';
+ $cells[] = '' . $GLOBALS['LANG']->getLL('listRowHeader_affects') . ' | ';
+ $cells[] = '' . $GLOBALS['LANG']->getLL('listRowHeader_modules') . ' | ';
+ $cells[] = '' . $GLOBALS['LANG']->getLL('listRowHeader_config') . ' | ';
+ $cells[] = '' . $GLOBALS['LANG']->getLL('extInfoArray_code_warnings') . ' | ';
+ } elseif ($this->MOD_SETTINGS['display_details']==4) {
+ $cells[] = '' . $GLOBALS['LANG']->getLL('listRowHeader_locallang') . ' | ';
+ $cells[] = '' . $GLOBALS['LANG']->getLL('listRowHeader_classes') . ' | ';
+ $cells[] = '' . $GLOBALS['LANG']->getLL('extInfoArray_code_warnings') . ' | ';
+ $cells[] = '' . $GLOBALS['LANG']->getLL('extInfoArray_annoyances') . ' | ';
+ } elseif ($this->MOD_SETTINGS['display_details']==5) {
+ $cells[] = '' . $GLOBALS['LANG']->getLL('listRowHeader_changed_files') . ' | ';
+ } else {
+ $cells[] = '' . $GLOBALS['LANG']->getLL('listRowHeader_ext_key') . ' | ';
+ $cells[] = '' . $GLOBALS['LANG']->getLL('extInfoArray_version') . ' | ';
+ if (!$import) {
+ $cells[] = '' . $GLOBALS['LANG']->getLL('listRowHeader_download_short') . ' | ';
+ $cells[] = '' . $GLOBALS['LANG']->getLL('listRowHeader_documentation_short') . ' | ';
+ $cells[] = '' . $GLOBALS['LANG']->getLL('listRowHeader_type') . ' | ';
+ } else {
+ $cells[] = 'labelInfo($GLOBALS['LANG']->getLL('listRowHeader_title_upload_date')) . '>' .
+ $GLOBALS['LANG']->getLL('listRowHeader_upload_date') . ' | ';
+ $cells[] = '' . $GLOBALS['LANG']->getLL('extInfoArray_author') . ' | ';
+ $cells[] = 'labelInfo($GLOBALS['LANG']->getLL('listRowHeader_title_current_version')) . '>' .
+ $GLOBALS['LANG']->getLL('listRowHeader_current_version') . ' | ';
+ $cells[] = 'labelInfo($GLOBALS['LANG']->getLL('listRowHeader_title_current_type')) . '>' .
+ $GLOBALS['LANG']->getLL('listRowHeader_current_type') . ' | ';
+ $cells[] = 'labelInfo($GLOBALS['LANG']->getLL('listRowHeader_title_number_of_downloads')) . '>' .
+ $GLOBALS['LANG']->getLL('listRowHeader_download_short') . ' | ';
+ }
+ $cells[] = '' . $GLOBALS['LANG']->getLL('extInfoArray_state') . ' | ';
}
- $cells[] = '' . $GLOBALS['LANG']->getLL('extInfoArray_state') . ' | ';
- }
- return '
+ return '
content
+ */
+ function extensionListRow($extKey,$extInfo,$cells,$bgColorClass='',$inst_list=array(),$import=0,$altLinkUrl='') {
// Icon:
- $imgInfo = @getImageSize($this->getExtPath($extKey,$extInfo['type']).'/ext_icon.gif');
- if (is_array($imgInfo)) {
- $cells[] = ' | ';
- } elseif ($extInfo['_ICON']) {
- $cells[] = ''.$extInfo['_ICON'].' | ';
- } else {
- $cells[] = ' | ';
- }
+ $imgInfo = @getImageSize($this->getExtPath($extKey,$extInfo['type']).'/ext_icon.gif');
+ if (is_array($imgInfo)) {
+ $cells[] = ' | ';
+ } elseif ($extInfo['_ICON']) {
+ $cells[] = ''.$extInfo['_ICON'].' | ';
+ } else {
+ $cells[] = ' | ';
+ }
// Extension title:
- $cells[] = '' . t3lib_div::fixed_lgd_cs($extInfo['EM_CONF']['title'] ? htmlspecialchars($extInfo['EM_CONF']['title']) : '' . $extKey . '', 40) . ' | ';
+ $cells[] = '' . t3lib_div::fixed_lgd_cs($extInfo['EM_CONF']['title'] ? htmlspecialchars($extInfo['EM_CONF']['title']) : '' . $extKey . '', 40) . ' | ';
// Based on the display mode you will see more or less details:
- if (!$this->MOD_SETTINGS['display_details']) {
- $cells[] = ''.htmlspecialchars(t3lib_div::fixed_lgd_cs($extInfo['EM_CONF']['description'],400)).'
| ';
- $cells[] = ''.($extInfo['EM_CONF']['author_email'] ? '' : '').htmlspecialchars($extInfo['EM_CONF']['author']).(htmlspecialchars($extInfo['EM_CONF']['author_email']) ? '' : '').($extInfo['EM_CONF']['author_company'] ? ' '.htmlspecialchars($extInfo['EM_CONF']['author_company']) : '').' | ';
- } elseif ($this->MOD_SETTINGS['display_details']==2) {
- $cells[] = ''.$extInfo['EM_CONF']['priority'].' | ';
- $cells[] = ''.implode(' ',t3lib_div::trimExplode(',',$extInfo['EM_CONF']['modify_tables'],1)).' | ';
- $cells[] = ''.$extInfo['EM_CONF']['module'].' | ';
- $cells[] = ''.($extInfo['EM_CONF']['clearCacheOnLoad'] ? $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_common.xml:yes') : '').' | ';
- $cells[] = ''.($extInfo['EM_CONF']['internal'] ? $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_common.xml:yes') : '').' | ';
- $cells[] = ''.($extInfo['EM_CONF']['shy'] ? $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_common.xml:yes') : '').' | ';
- } elseif ($this->MOD_SETTINGS['display_details']==3) {
- $techInfo = $this->makeDetailedExtensionAnalysis($extKey,$extInfo);
+ if (!$this->MOD_SETTINGS['display_details']) {
+ $cells[] = ''.htmlspecialchars(t3lib_div::fixed_lgd_cs($extInfo['EM_CONF']['description'],400)).'
| ';
+ $cells[] = ''.($extInfo['EM_CONF']['author_email'] ? '' : '').htmlspecialchars($extInfo['EM_CONF']['author']).(htmlspecialchars($extInfo['EM_CONF']['author_email']) ? '' : '').($extInfo['EM_CONF']['author_company'] ? ' '.htmlspecialchars($extInfo['EM_CONF']['author_company']) : '').' | ';
+ } elseif ($this->MOD_SETTINGS['display_details']==2) {
+ $cells[] = ''.$extInfo['EM_CONF']['priority'].' | ';
+ $cells[] = ''.implode(' ',t3lib_div::trimExplode(',',$extInfo['EM_CONF']['modify_tables'],1)).' | ';
+ $cells[] = ''.$extInfo['EM_CONF']['module'].' | ';
+ $cells[] = ''.($extInfo['EM_CONF']['clearCacheOnLoad'] ? $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_common.xml:yes') : '').' | ';
+ $cells[] = ''.($extInfo['EM_CONF']['internal'] ? $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_common.xml:yes') : '').' | ';
+ $cells[] = ''.($extInfo['EM_CONF']['shy'] ? $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_common.xml:yes') : '').' | ';
+ } elseif ($this->MOD_SETTINGS['display_details']==3) {
+ $techInfo = $this->makeDetailedExtensionAnalysis($extKey,$extInfo);
- $cells[] = ''.$this->extInformationArray_dbReq($techInfo).
+ $cells[] = ' | '.$this->extInformationArray_dbReq($techInfo).
' | ';
- $cells[] = ''.(is_array($techInfo['TSfiles']) ? implode(' ',$techInfo['TSfiles']) : '').' | ';
- $cells[] = ''.(is_array($techInfo['flags']) ? implode(' ',$techInfo['flags']) : '').' | ';
- $cells[] = ''.(is_array($techInfo['moduleNames']) ? implode(' ',$techInfo['moduleNames']) : '').' | ';
- $cells[] = ''.($techInfo['conf'] ? $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_common.xml:yes') : '').' | ';
- $cells[] = ''.
- $GLOBALS['TBE_TEMPLATE']->rfw((t3lib_extMgm::isLoaded($extKey) && $techInfo['tables_error'] ?
+ $cells[] = ' | '.(is_array($techInfo['TSfiles']) ? implode(' ',$techInfo['TSfiles']) : '').' | ';
+ $cells[] = ''.(is_array($techInfo['flags']) ? implode(' ',$techInfo['flags']) : '').' | ';
+ $cells[] = ''.(is_array($techInfo['moduleNames']) ? implode(' ',$techInfo['moduleNames']) : '').' | ';
+ $cells[] = ''.($techInfo['conf'] ? $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_common.xml:yes') : '').' | ';
+ $cells[] = ''.
+ $GLOBALS['TBE_TEMPLATE']->rfw((t3lib_extMgm::isLoaded($extKey) && $techInfo['tables_error'] ?
'' . $GLOBALS['LANG']->getLL('extInfoArray_table_error') . ' ' .
$GLOBALS['LANG']->getLL('extInfoArray_missing_fields') : '') .
- (t3lib_extMgm::isLoaded($extKey) && $techInfo['static_error'] ?
+ (t3lib_extMgm::isLoaded($extKey) && $techInfo['static_error'] ?
'' . $GLOBALS['LANG']->getLL('extInfoArray_static_table_error') . ' ' .
$GLOBALS['LANG']->getLL('extInfoArray_static_tables_missing_empty') : '')) .
' | ';
- } elseif ($this->MOD_SETTINGS['display_details']==4) {
- $techInfo=$this->makeDetailedExtensionAnalysis($extKey,$extInfo,1);
+ } elseif ($this->MOD_SETTINGS['display_details']==4) {
+ $techInfo=$this->makeDetailedExtensionAnalysis($extKey,$extInfo,1);
- $cells[] = ''.(is_array($techInfo['locallang']) ? implode(' ',$techInfo['locallang']) : '').' | ';
- $cells[] = ''.(is_array($techInfo['classes']) ? implode(' ',$techInfo['classes']) : '').' | ';
- $cells[] = ''.(is_array($techInfo['errors']) ? $GLOBALS['TBE_TEMPLATE']->rfw(implode(' ',$techInfo['errors'])) : '').' | ';
- $cells[] = ''.(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'))) : '') . ' | ';
- } elseif ($this->MOD_SETTINGS['display_details']==5) {
- $currentMd5Array = $this->serverExtensionMD5Array($extKey,$extInfo);
- $affectedFiles = '';
- $msgLines = array();
- $msgLines[] = $GLOBALS['LANG']->getLL('listRow_files') . ' ' . count($currentMd5Array);
- if (strcmp($extInfo['EM_CONF']['_md5_values_when_last_written'],serialize($currentMd5Array))) {
- $msgLines[] = $GLOBALS['TBE_TEMPLATE']->rfw('
' . $GLOBALS['LANG']->getLL('extInfoArray_difference_detected') . '');
- $affectedFiles = $this->findMD5ArrayDiff($currentMd5Array,unserialize($extInfo['EM_CONF']['_md5_values_when_last_written']));
- if (count($affectedFiles)) {
- $msgLines[] = '
' . $GLOBALS['LANG']->getLL('extInfoArray_modified_files') . '
' .
- $GLOBALS['TBE_TEMPLATE']->rfw(implode('
', $affectedFiles));
+ $cells[] = ''.(is_array($techInfo['locallang']) ? implode(' ',$techInfo['locallang']) : '').' | ';
+ $cells[] = ''.(is_array($techInfo['classes']) ? implode(' ',$techInfo['classes']) : '').' | ';
+ $cells[] = ''.(is_array($techInfo['errors']) ? $GLOBALS['TBE_TEMPLATE']->rfw(implode(' ',$techInfo['errors'])) : '').' | ';
+ $cells[] = ''.(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'))) : '') . ' | ';
+ } elseif ($this->MOD_SETTINGS['display_details']==5) {
+ $currentMd5Array = $this->serverExtensionMD5Array($extKey,$extInfo);
+ $affectedFiles = '';
+ $msgLines = array();
+ $msgLines[] = $GLOBALS['LANG']->getLL('listRow_files') . ' ' . count($currentMd5Array);
+ if (strcmp($extInfo['EM_CONF']['_md5_values_when_last_written'],serialize($currentMd5Array))) {
+ $msgLines[] = $GLOBALS['TBE_TEMPLATE']->rfw('
' . $GLOBALS['LANG']->getLL('extInfoArray_difference_detected') . '');
+ $affectedFiles = $this->findMD5ArrayDiff($currentMd5Array,unserialize($extInfo['EM_CONF']['_md5_values_when_last_written']));
+ if (count($affectedFiles)) {
+ $msgLines[] = '
' . $GLOBALS['LANG']->getLL('extInfoArray_modified_files') . '
' .
+ $GLOBALS['TBE_TEMPLATE']->rfw(implode('
', $affectedFiles));
+ }
}
- }
- $cells[] = ''.implode(' ',$msgLines).' | ';
- } else {
+ $cells[] = ''.implode(' ',$msgLines).' | ';
+ } else {
// Default view:
- $verDiff = $inst_list[$extKey] && $this->versionDifference($extInfo['EM_CONF']['version'],$inst_list[$extKey]['EM_CONF']['version'],$this->versionDiffFactor);
+ $verDiff = $inst_list[$extKey] && $this->versionDifference($extInfo['EM_CONF']['version'],$inst_list[$extKey]['EM_CONF']['version'],$this->versionDiffFactor);
- $cells[] = ''.$extKey.' | ';
- $cells[] = ''.($verDiff ? ''.$GLOBALS['TBE_TEMPLATE']->rfw(htmlspecialchars($extInfo['EM_CONF']['version'])).'' : $extInfo['EM_CONF']['version']).' | ';
- if (!$import) { // Listing extension on LOCAL server:
+ $cells[] = ''.$extKey.' | ';
+ $cells[] = ''.($verDiff ? ''.$GLOBALS['TBE_TEMPLATE']->rfw(htmlspecialchars($extInfo['EM_CONF']['version'])).'' : $extInfo['EM_CONF']['version']).' | ';
+ if (!$import) { // Listing extension on LOCAL server:
// Extension Download:
- $cells[] = '' .
- t3lib_iconWorks::getSpriteIcon('actions-system-extension-download') .
+ $cells[] = ' | ' .
+ t3lib_iconWorks::getSpriteIcon('actions-system-extension-download') .
' | ';
// Manual download
- $fileP = PATH_site.$this->typePaths[$extInfo['type']].$extKey.'/doc/manual.sxw';
- $cells[] = ''.
- ($this->typePaths[$extInfo['type']] && @is_file($fileP) ?
+ $fileP = PATH_site.$this->typePaths[$extInfo['type']].$extKey.'/doc/manual.sxw';
+ $cells[] = ' | '.
+ ($this->typePaths[$extInfo['type']] && @is_file($fileP) ?
'' .
t3lib_iconWorks::getSpriteIcon('actions-system-extension-documentation') . '' : '') .
' | ';
// Double installation (inclusion of an extension in more than one of system, global or local scopes)
- $doubleInstall = '';
- if (strlen($extInfo['doubleInstall']) > 1) {
+ $doubleInstall = '';
+ if (strlen($extInfo['doubleInstall']) > 1) {
// Separate the "SL" et al. string into an array and replace L by Local, G by Global etc.
- $doubleInstallations = str_replace(
+ $doubleInstallations = str_replace(
array('S', 'G', 'L'),
array(
- $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_mod_tools_em.xml:sysext'),
- $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_mod_tools_em.xml:globalext'),
- $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_mod_tools_em.xml:localext')
+ $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_mod_tools_em.xml:sysext'),
+ $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_mod_tools_em.xml:globalext'),
+ $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_mod_tools_em.xml:localext')
),
str_split($extInfo['doubleInstall'])
- );
+ );
// Last extension is the one actually used
- $usedExtension = array_pop($doubleInstallations);
+ $usedExtension = array_pop($doubleInstallations);
// Next extension is overridden
- $overriddenExtensions = array_pop($doubleInstallations);
+ $overriddenExtensions = array_pop($doubleInstallations);
// If the array is not yet empty, the extension is actually installed 3 times (SGL)
- if (count($doubleInstallations) > 0) {
- $lastExtension = array_pop($doubleInstallations);
- $overriddenExtensions .= ' ' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_common.xml:and') . ' ' . $lastExtension;
- }
- $doubleInstallTitle = sprintf(
+ if (count($doubleInstallations) > 0) {
+ $lastExtension = array_pop($doubleInstallations);
+ $overriddenExtensions .= ' ' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_common.xml:and') . ' ' . $lastExtension;
+ }
+ $doubleInstallTitle = sprintf(
$GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_mod_tools_em.xml:double_inclusion'),
$usedExtension,
$overriddenExtensions
- );
- $doubleInstall = ' ' . $GLOBALS['TBE_TEMPLATE']->rfw($extInfo['doubleInstall']) . '';
+ );
+ $doubleInstall = ' ' . $GLOBALS['TBE_TEMPLATE']->rfw($extInfo['doubleInstall']) . '';
+ }
+ $cells[] = '' . $this->typeLabels[$extInfo['type']] . $doubleInstall . ' | ';
+ } else { // Listing extensions from REMOTE repository:
+ $inst_curVer = $inst_list[$extKey]['EM_CONF']['version'];
+ if (isset($inst_list[$extKey])) {
+ if ($verDiff) $inst_curVer = ''.$GLOBALS['TBE_TEMPLATE']->rfw($inst_curVer).'';
+ }
+ $cells[] = '' . t3lib_befunc::date($extInfo['EM_CONF']['lastuploaddate']) . ' | ';
+ $cells[] = '' . htmlspecialchars(t3lib_div::fixed_lgd_cs($extInfo['EM_CONF']['author'], $GLOBALS['BE_USER']->uc[titleLen])) . ' | ';
+ $cells[] = ''.$inst_curVer.' | ';
+ $cells[] = ''.$this->typeLabels[$inst_list[$extKey]['type']].(strlen($inst_list[$extKey]['doubleInstall'])>1?' '.$GLOBALS['TBE_TEMPLATE']->rfw($inst_list[$extKey]['doubleInstall']).'':'').' | ';
+ $cells[] = ''.($extInfo['downloadcounter_all']?$extInfo['downloadcounter_all']:' ').'/'.($extInfo['downloadcounter']?$extInfo['downloadcounter']:' ').' | ';
}
- $cells[] = '' . $this->typeLabels[$extInfo['type']] . $doubleInstall . ' | ';
- } else { // Listing extensions from REMOTE repository:
- $inst_curVer = $inst_list[$extKey]['EM_CONF']['version'];
- if (isset($inst_list[$extKey])) {
- if ($verDiff) $inst_curVer = ''.$GLOBALS['TBE_TEMPLATE']->rfw($inst_curVer).'';
- }
- $cells[] = '' . t3lib_befunc::date($extInfo['EM_CONF']['lastuploaddate']) . ' | ';
- $cells[] = '' . htmlspecialchars(t3lib_div::fixed_lgd_cs($extInfo['EM_CONF']['author'], $GLOBALS['BE_USER']->uc[titleLen])) . ' | ';
- $cells[] = ''.$inst_curVer.' | ';
- $cells[] = ''.$this->typeLabels[$inst_list[$extKey]['type']].(strlen($inst_list[$extKey]['doubleInstall'])>1?' '.$GLOBALS['TBE_TEMPLATE']->rfw($inst_list[$extKey]['doubleInstall']).'':'').' | ';
- $cells[] = ''.($extInfo['downloadcounter_all']?$extInfo['downloadcounter_all']:' ').'/'.($extInfo['downloadcounter']?$extInfo['downloadcounter']:' ').' | ';
+ $cells[] = ''.$this->states[$extInfo['EM_CONF']['state']].' | ';
}
- $cells[] = ''.$this->states[$extInfo['EM_CONF']['state']].' | ';
- }
// show a different background through a different class for insecure (-1) extensions,
// for unreviewed (0) an reviewed extensions (1), just use the regular class
- if ($this->xmlhandler->getReviewState($extKey,$extInfo['EM_CONF']['version']) < 0) {
- $bgclass = ' class="unsupported-ext"';
- } else {
- $bgclass = ' class="' . ($bgColorClass ? $bgColorClass : 'em-listbg1') . '"';
- }
+ if ($this->xmlhandler->getReviewState($extKey,$extInfo['EM_CONF']['version']) < 0) {
+ $bgclass = ' class="unsupported-ext"';
+ } else {
+ $bgclass = ' class="' . ($bgColorClass ? $bgColorClass : 'em-listbg1') . '"';
+ }
- return '
+ return '