dependency_check.tpl
1.47 KB
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
<h1>PHP Dependencies Check</h1>
<h3>PHP Version Check</h3>
<?php echo "<span class='{$version['class']}'> </span>{$version['version']}"; ?>
<br /><br />
<h3>PHP Extensions</h3>
<table>
<?php
foreach($extensions as $ext) {
$row = '<tr>';
switch($ext['available']){
case 'yes':
$class = 'tick';
break;
case 'optional':
$class = 'cross';
break;
case 'no':
default:
$class = 'cross';
}
$row .= "<td><div class='{$class}'></div></td>";
$row .= "<td>{$ext['name']}</td>";
$row .= ($ext['available'] != 'yes') ? "<td>{$ext['details']}</td>" : '<td></td>';
$row .= '</tr>';
echo $row."\n";
}
?>
</table>
<br /><br />
<h3>PHP Configuration</h3>
<table>
<tr>
<th>Setting</th>
<th>Recommended value</th>
<th>Current value</th>
</tr>
<?php
foreach($configurations as $config) {
$row = '<tr>';
$row .= "<td>{$config['name']}</td>";
$row .= "<td>{$config['recommended']}</td>";
$row .= "<td class='{$config['class']}'>{$config['setting']}</td>";
$row .= '</tr>';
echo $row."\n";
}
?>
</table>
<form action="index.php?step_name=dependency_check" method="post">
<div class="buttons">
<input type="submit" name="Previous" value="Previous"/>
<input type="submit" name="Next" value="Next"/>
</div>
</form>