Added new (clean) yii boilerplate
This commit is contained in:
76
requirements/views/pl/index.php
Normal file
76
requirements/views/pl/index.php
Normal file
@@ -0,0 +1,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>Sprawdzanie wymagań przez Yii</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="page">
|
||||
|
||||
<div id="header">
|
||||
<h1>Sprawdzanie wymagań stawianych przez Yii</h1>
|
||||
</div><!-- header-->
|
||||
|
||||
<div id="content">
|
||||
<h2>Opis</h2>
|
||||
<p>
|
||||
Skrypt ten sprawdza czy konfiguracja Twojego serwera spełnia wymagania
|
||||
pozwalające uruchomić aplikację napisaną przy użyciu <a href="http://www.yiiframework.com/">Yii</a>.
|
||||
Sprawdza on, czy serwer używa poprawnej wersji PHP,
|
||||
czy zostały załadowane odpowiednie rozszerzenia PHP oraz czy ustawienia w pliku php.ini są prawidłowe.
|
||||
</p>
|
||||
|
||||
<h2>Rozstrzygnięcie</h2>
|
||||
<p>
|
||||
<?php if($result>0): ?>
|
||||
Gratulacje! Konfiguracja Twojego serwera spełnia wszystkie wymagania stawiane przez Yii.
|
||||
<?php elseif($result<0): ?>
|
||||
Konfiguracja Twojego serwera spełnia minimalne wymagania stawiane przez Yii.
|
||||
Zwróć uwagę na ostrzeżenia wyświetlone poniżej jeśli Twoja aplikacja będzie używała odpowiadających im funkcjonalności.
|
||||
<?php else: ?>
|
||||
Niestety konfiguracja Twojego serwera nie spełnia wymagań stawianych przez Yii.
|
||||
<?php endif; ?>
|
||||
</p>
|
||||
|
||||
<h2>Szczegóły</h2>
|
||||
|
||||
<table class="result">
|
||||
<tr><th>Nazwa</th><th>Rezultat</th><th>Wymagana przez</th><th>Notka</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] ? 'Passed' : 'Failed'; ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo $requirement[3]; ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo $requirement[4]; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="passed"> </td><td>powiódł się</td>
|
||||
<td class="failed"> </td><td>nie powiódł się</td>
|
||||
<td class="warning"> </td><td>ostrzeżenie</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</div><!-- content -->
|
||||
|
||||
<div id="footer">
|
||||
<?php echo $serverInfo; ?>
|
||||
</div><!-- footer -->
|
||||
|
||||
</div><!-- page -->
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user