dependencies.tpl
4.65 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
<h1>PHP Dependencies Check</h1>
<p class="description">
The wizard will review your system to determine whether you have the right PHP components in place to run KnowledgeTree. <br/>
Once the scan is completed, you’ll see whether your system has met the requirements or whether there are areas you need to address.
</p>
<div class="continue_message">
<?php
if(!$errors && $warnings) {
?>
Congratulations! Your system is ready to run KnowledgeTree. Press Next to continue.
<?php
}
?>
</div>
<div class="error_message">
<?php if($errors) { ?>
<span class='cross'> Your system is not quite ready to run KnowledgeTree. See the list below to determine which areas you need to address. <br/> Once you’ve fixed these items, return to this wizard and try again.</span><br/>
<?php } elseif ($warnings) { ?>
<span class='cross_orange'> KnowledgeTree Optional Dependencies not met, but you will be able to continue.</span><br/>
<?php } ?>
<?php
if($errors || $warnings) {
?>
<a href="http://wiki.knowledgetree.com/Web_Based_Installer#PHP_Dependencies" target="_blank">Click here for help on overcoming dependency issues</a>
<?php } ?>
</div>
<h3><?php echo "<span class='{$php}'> </span>"; ?>PHP Version Check</h3>
<?php if($silent) { ?>
<div id="options" class="onclick" onclick="javascript:{w.toggleClass('php_details');}">Show Details</div>
<div class="php_details" style="display:none">
<?php } ?>
<p class="description">
Your version of PHP must be between 5.0 and 5.3.2 to run optimally. Versions higher than 5.3.2 are not recommended.
</p>
<?php echo "<span class='{$version['class']}'> </span>{$version['version']}"; ?>
<?php if($silent) { ?>
</div>
<?php } ?>
<br />
<h3><?php echo "<span class='{$php_ext}'> </span>"; ?>PHP Extensions</h3>
<?php
if($silent) { ?>
<div id="options" class="onclick" onclick="javascript:{w.toggleClass('php_ext_details');}">Show Details</div>
<div class="php_ext_details" style="display:none">
<?php } ?>
<p class="description">
The extensions shown in red below are required for KnowledgeTree to run optimally. Items shown in yellow are optional, but recommended.
</p>
<table>
<?php
foreach($extensions as $ext) {
?>
<!-- $row = '<tr>';-->
<tr>
<?php
switch($ext['available']){
case 'yes':
$class = 'tick';
break;
case 'optional':
$class = 'cross_orange';
break;
case 'no':
default:
$class = 'cross';
}
?>
<td><div class='<?php echo $class; ?>'></div></td>
<td><?php echo $ext['name']; ?></td>
<?php echo ($ext['available'] != 'yes') ? "<td>{$ext['details']}</td>" : '<td></td>'; ?>
<?php echo isset($errors[$ext['extension']]) ? "<td><span class='error'>{$errors[$ext['extension']]}</span></td>" : '<td></td>'; ?>
<?php
if ($class == 'orange' || $class == 'cross') {
?>
<td><a href="javascript:this.location.reload();" class="refresh">Refresh</a></td>
<?php
}
?>
<?php
}
?>
</table>
<?php if($silent) { ?>
</div>
<?php } ?>
<br />
<h3><?php echo "<span class='{$php_con}'> </span>"; ?>PHP Configuration</h3>
<?php
if($silent) { ?>
<div id="options" class="onclick" onclick="javascript:{w.toggleClass('php_con_details');}">Show Details</div>
<div class="php_con_details" style="display:none">
<?php } ?>
<p class="description">
The configurations shown in red below are required for KnowledgeTree to run optimally. Items shown in yellow are optional, but recommended.
</p>
<table>
<tr>
<th>Setting</th>
<th>Recommended value</th>
<th>Current value</th>
</tr>
<?php
foreach($configurations as $config) {
?>
<tr>
<td><?php echo $config['name']; ?></td>
<td><?php echo $config['recommended']; ?></td>
<td class="<?php echo $config['class']; ?>"><?php echo $config['name']; ?></td>
<?php
if ($config['class'] == 'orange' || $config['class'] == 'cross') {
?>
<td><a href="javascript:this.location.reload();">Refresh</a></td>
<?php
}
?>
</tr>
<?php
}
?>
</table>
<br/>
B = Bytes, K = Kilobytes, M = Megabytes, G = Gigabytes
<?php if($silent) { ?>
</div>
<?php } ?>
<form action="index.php?step_name=dependencies" method="post">
<div class="buttons" style="top:14px;">
<input type="submit" name="Previous" value="Previous"/>
<input type="submit" name="Next" value="Next"/>
</div>
</form>