' . '

' . $title . '

'; if (empty($modules) && !is_array($modules)) { echo '

' . __('There are no modules.') . '

' . '
'; return null; } echo '
' . '' . '' . '' . '' . '' . ''; foreach (self::sort($modules) as $id => $module) { echo '' . ''. '' . '' . '' . ''; } echo '
' . __('Id') .'' . __('Version') . '' . __('Name') . '' . __('Root') . '
' . html::escapeHTML($module['version']) . '' . __(html::escapeHTML($module['name'])) . '' . dirname(path::real($module['root'], false)) . '
' . '

' . '

' . (!empty($_REQUEST['redir']) ? form::hidden( array('redir'), html::escapeHTML($_REQUEST['redir']) ) : '' ). form::hidden(array('p'), 'licenseBootstrap') . form::hidden(array('type'), $type) . form::hidden(array('action'),'addlicense') . '' . $core->formNonce() . '

' . '
' . '
'; } protected static function sort($modules) { $sorter = array(); foreach($modules as $id => $module) { $sorter[$id] = $id; } array_multisort($sorter, SORT_ASC, $modules); return $modules; } }