*
* Anzeige aller installierten IPSLibrary Module
*
*/
/** @}*/
?>
Modul | Aktuelle Version | Verfügbare Version | Status | Beschreibung |
GetInstalledModules();
$html = '';
$updateButton = false;
foreach ($modules as $module=>$version) {
$moduleManager = new IPSModuleManager($module);
$infos = $moduleManager->GetModuleInfos();
$infos['LastRepository'] = str_replace('https://raw.github.com/','...',$infos['LastRepository']);
$infos['AvailableVersion'] = '';
$versionAttribute = '';
$stateAttribute = '';
if ($moduleManager->VersionHandler()->CompareVersionsNewer($infos['CurrentVersion'], $infos['Version'])) {
$infos['AvailableVersion'] = $infos['Version'];
$versionAttribute = 'color:red;';
$updateButton = true;
}
if ($infos['State']<>'OK') {
$stateAttribute = 'color:red;';
}
$html .= ' ';
$html .= GetTableData(null, null, $module, '', 'Module', $module);
$html .= GetTableData($infos, 'CurrentVersion');
$html .= GetTableData($infos, 'AvailableVersion', '', $versionAttribute, 'Updates');
$html .= GetTableData($infos, 'State', '', $stateAttribute);
//$html .= GetTableData($infos, 'LastRepository');
//$html .= GetTableData($infos, 'Repository');
$html .= GetTableData($infos, 'Description');
$html .= '
'.PHP_EOL;
}
echo $html;
?>
0) {
echo '';
}
echo '';
?>
'') {
$text = ''.$text.'';
}
$return = ''.$text.' | ';
return $return;
}
?>