index.php 2.14 KB
Newer Older
JULIO JARAMILLO's avatar
JULIO JARAMILLO committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta http-equiv="content-language" content="en"/>
<link rel="stylesheet" type="text/css" href="css/main.css" />
<title>Yii - Test prostredia</title>
</head>

<body>
<div id="page">

<div id="header">
<h1>Yii - Test prostredia</h1>
</div><!-- header-->

<div id="content">
<h2>Popis</h2>
<p>
Tento skript preverí, či je konfigurácia vášho servera postačujúca
pre korektné fungovanie aplikácii vytvorených pre <a href="http://www.yiiframework.com/">Yii framework</a>.
Test preveruje správnu verziu PHP, prítomnosť potrebných PHP rozšírení a správne nastavenie 
konfigurácie v php.ini.
</p>

<h2>Záver</h2>
<p>
<?php if($result>0): ?>
Gratulujem! Váš server spĺňa všetky požiadavky potrebné pre korektné fungovanie Yii.
<?php elseif($result<0): ?>
Váš server spĺňa minimálne požiadavky potrebné pre fungovanie Yii. 
Venujte prosím pozornosť upozorneniam uvedeným nižšie v prípade, že vaša aplikácia bude využívať potrebné funkcie.
<?php else: ?>
Bohužiaľ, váš server nespĺňa požiadavky potrebné pre fungovanie Yii.
<?php endif; ?>
</p>

<h2>Detaily</h2>

<table class="result">
<tr><th>Názov</th><th>Výsledok</th><th>Požadované od</th><th>Pozn.</th></tr>
<?php foreach($requirements as $requirement): ?>
<tr>
	<td>
	<?php echo $requirement[0]; ?>
	</td>
	<td class="<?php echo $requirement[2] ? 'passed' : ($requirement[1] ? 'failed' : 'warning'); ?>">
	<?php echo $requirement[2] ? 'OK' : ($requirement[1] ? 'Chyba' : 'Upozornenie'); ?>
	</td>
	<td>
	<?php echo $requirement[3]; ?>
	</td>
	<td>
	<?php echo $requirement[4]; ?>
	</td>
</tr>
<?php endforeach; ?>
</table>

<table>
<tr>
<td class="passed">&nbsp;</td><td>OK</td>
<td class="failed">&nbsp;</td><td>chyba</td>
<td class="warning">&nbsp;</td><td>upozornenie</td>
</tr>
</table>

</div><!-- content -->

<div id="footer">
<?php echo $serverInfo; ?>
</div><!-- footer -->

</div><!-- page -->
</body>
</html>