{namespace i=TYPO3\CMS\Install\ViewHelpers}

<h3>Main system information</h3>
<table class="table table-striped table-bordered">
	<tr>
		<td>Operating system:</td>
		<td><strong>{operatingSystem}</strong></td>
	</tr>
	<tr>
		<td>PHP version:</td>
		<td><strong><i:constant name="PHP_VERSION" /></strong></td>
	</tr>
	<tr>
		<td>PHP CGI detected:</td>
		<td><strong>{f:if(condition:cgiDetected, then:'Yes', else:'No')}</strong></td>
	</tr>
		<f:if condition="{connections -> f:count()} > 1">
			<tr>
				<td>Number of database connections:</td>
				<td><strong>{connections -> f:count()}</strong></td>
			</tr>
		</f:if>
	<f:for each="{connections}" as="connection">
		<tr>
			<td>Database connection <strong>'{connection.connectionName}'</strong></td>
			<td>
				<ul>
					<li><strong>Database name:</strong> {connection.databaseName}</li>
					<li><strong>Username:</strong> {connection.username}</li>
					<li><strong>Host:</strong> {connection.host}</li>
					<f:if condition="{connection.port}">
						<f:then>
							<li><strong>Port:</strong> {connection.port}</li>
						</f:then>
						<f:else>
							<li>
								<strong>Socket:</strong>
								{f:if(condition:connection.socket, then: '{connection.socket}', else:'<em>PHP default</em>')}
							</li>
						</f:else>
					</f:if>
					<li><strong>Version:</strong> {connection.version}</li>
					<li><strong>Tables:</strong> {connection.numberOfTables}</li>
					<f:if condition="{connection.numberOfMappedTables}">
						<f:then>
							<li><strong>Mapped tables:</strong> {connection.numberOfMappedTables}</li>
						</f:then>
					</f:if>
				</ul>
			</td>
		</tr>
	</f:for>
</table>
