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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
|
<?php
/* vim:set tabstop=8 softtabstop=8 shiftwidth=8 noexpandtab: */
/*
Copyright (c) Ampache.org
All rights reserved.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
?>
<?php if (INSTALL != '1') { exit; } ?>
<h4><?php echo _('Required'); ?></h4>
<table border="0" cellspacing="0" cellpadding="3">
<tr>
<td><?php echo sprintf(_("%s is readable"),"ampache.cfg.php.dist"); ?></td>
<td>
<?php
if (!is_readable($prefix . '/config/ampache.cfg.php.dist')) {
echo debug_result('',false);
Error::add('install',sprintf(_("%s is readable"),"ampache.cfg.php.dist"));
}
else {
echo debug_result('',true);
}
?>
</td>
</tr>
<tr>
<td><?php echo _('PHP Version'); ?>:</td>
<td>
<?php
if(!check_php_ver()) {
if (function_exists('hash_algos')) { $algos = hash_algos(); }
if (strtoupper(substr(PHP_OS,0,3)) == 'WIN') {
$version_string = phpversion() . " < PHP 5.3 ";
}
else {
$version_string = phpversion() . " ";
}
$string = $version_string . _('Hash Function Exists') . " " . print_boolean(function_exists('hash_algos')) . " " . _('SHA256 Support') . " " . print_boolean(in_array('sha256',$algos));
echo debug_result($string,false);
Error::add('install',_('PHP Version'));
}
else {
echo debug_result(phpversion(),true);
}
?>
</td>
</tr><tr>
<td><?php echo _('Mysql for PHP'); ?>:</td>
<td>
<?php
if (!check_php_mysql()) {
echo debug_result('',false);
Error::add('install',_('Mysql for PHP'));
}
else {
echo debug_result(mysql_get_client_info(),true);
}
?>
</td>
</tr><tr>
<td><?php echo _('PHP Session Support'); ?>:</td>
<td>
<?php
if (!check_php_session()) {
echo debug_result('',false);
Error::add('install',_('PHP Session Support'));
}
else {
echo debug_result('',true);
}
?>
</td>
</tr><tr>
<td><?php echo _('PHP ICONV Support'); ?>:</td>
<td>
<?php
if (!check_php_iconv()) {
echo debug_result('',false);
Error::add('install',_('PHP ICONV Support'));
}
else {
echo debug_result('',true);
}
?>
</td>
</tr><tr>
<td><?php echo _('PHP PCRE Support'); ?>:</td>
<td>
<?php
if (!check_php_pcre()) {
echo debug_result('',false);
Error::add('install',_('PHP PCRE Support'));
}
else {
echo debug_result('',true);
}
?>
</td>
</tr><tr>
<td><?php echo _('PHP PutENV Support'); ?>:</td>
<td>
<?php
if (!check_putenv()) {
echo debug_result('',false);
Error::add('install',_('PHP PutENV Support'));
}
else {
echo debug_result('',true);
}
?>
</td>
</tr><tr>
<th colspan="2"><h4><?php echo _('Optional'); ?></h4></th>
</tr><tr>
<td><?php echo _('Gettext Support'); ?>:</td>
<td>
<?php
if (!check_gettext()) {
echo debug_result(_('Gettext Emulator will be used'),false);
}
else {
echo debug_result('',true);
}
?>
</td>
</tr><tr>
<td><?php echo _('Mbstring Support'); ?>:</td>
<td>
<?php
if (!check_mbstring()) {
echo debug_result(_('Multibyte Character may not detect correct'),false);
}
else {
echo debug_result('',true);
}
?>
</td>
</tr><tr>
<td><?php echo _('PHP Memory Limit'); ?>:</td>
<td>
<?php
if (!check_php_memory()) {
echo debug_result(_('Memory Limit less then recommended size') . ' ' . ini_get('memory_limit'),false);
}
else {
echo debug_result(ini_get('memory_limit'),true);
}
?>
</td>
</tr><tr>
<td><?php echo _('PHP Execution timelimit'); ?>:</td>
<td>
<?php
if (!check_php_timelimit()) {
echo debug_result(_('Execution timelimit less the recommended') . ' ' . ini_get('max_execution_time'),false);
}
else {
echo debug_result(ini_get('max_execution_time') . ' ' . _('seconds'),true);
}
?>
</td>
</tr>
</table>
|