summaryrefslogtreecommitdiffstats
path: root/templates/show_install_check.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'templates/show_install_check.inc.php')
-rw-r--r--templates/show_install_check.inc.php153
1 files changed, 21 insertions, 132 deletions
diff --git a/templates/show_install_check.inc.php b/templates/show_install_check.inc.php
index 6b6e7247..5b6fd83d 100644
--- a/templates/show_install_check.inc.php
+++ b/templates/show_install_check.inc.php
@@ -21,162 +21,49 @@
*/
?>
<?php if (!defined('INSTALL')) { exit; } ?>
-<h4><?php echo T_('Required'); ?></h4>
+
<table border="0" cellspacing="0" cellpadding="3">
<tr>
-<td><?php echo sprintf(T_("%s is readable"),"ampache.cfg.php.dist"); ?></td>
-<td>
+ <td><font size="+1"><?php echo T_('CHECK'); ?></font></td>
+ <td>
+ <font size="+1"><?php echo T_('STATUS'); ?></font>
+ </td>
+ <td><font size="+1"><?php echo T_('DESCRIPTION'); ?></font></td>
+</tr>
+<?php require $prefix . '/templates/show_test_table.inc.php'; ?>
+<tr>
+<td><?php echo sprintf(T_('%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(T_("%s is readable"),"ampache.cfg.php.dist"));
+ echo debug_result('', false);
}
else {
- echo debug_result('',true);
+ echo debug_result('', true);
}
?>
+]
</td>
+<td><?php echo T_('This tests whether the configuration template can be read.'); ?></td>
</tr>
<tr>
<td><?php echo sprintf(T_('%s is readable'), 'ampache.sql'); ?></td>
-<td>
+<td>[
<?php
if (!is_readable($prefix . '/sql/ampache.sql')) {
echo debug_result('', false);
- Error::add('install', sprintf(T_('%s is readable'), 'ampache.sql'));
}
else {
echo debug_result('', true);
}
?>
+]
</td>
+<td><?php echo T_('This tests whether the file needed to initialise the database structure is available.'); ?></td>
</tr>
<tr>
-<td><?php echo T_('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 . T_('Hash Function Exists') . " " . print_bool(function_exists('hash_algos')) . " " . T_('SHA256 Support') . " " . print_bool(in_array('sha256',$algos));
- echo debug_result($string,false);
- Error::add('install', T_('PHP Version'));
- }
- else {
- echo debug_result(phpversion(),true);
- }
-?>
-</td>
-</tr><tr>
-<td><?php echo T_('PHP Session Support'); ?>:</td>
-<td>
-<?php
- if (!check_php_session()) {
- echo debug_result('',false);
- Error::add('install', T_('PHP Session Support'));
- }
- else {
- echo debug_result('',true);
- }
-?>
-</td>
-</tr><tr>
-<td><?php echo T_('PHP iconv Support'); ?>:</td>
-<td>
-<?php
- if (!UI::check_iconv()) {
- echo debug_result('',false);
- Error::add('install', T_('PHP iconv Support'));
- }
- else {
- echo debug_result('',true);
- }
-?>
-</td>
-</tr><tr>
-<td><?php echo T_('PHP PCRE Support'); ?>:</td>
-<td>
-<?php
- if (!check_php_pcre()) {
- echo debug_result('',false);
- Error::add('install', T_('PHP PCRE Support'));
- }
- else {
- echo debug_result('',true);
- }
-?>
-</td>
-</tr><tr>
-<th colspan="2"><h4><?php echo T_('Optional'); ?></h4></th>
-</tr><tr>
-<td><?php echo T_('PHP gettext Support'); ?>:</td>
-<td>
-<?php
- if (!check_gettext()) {
- echo debug_result(T_('gettext emulation will be used'), false);
- }
- else {
- echo debug_result('',true);
- }
-?>
-</td>
-</tr><tr>
-<td><?php echo T_('PHP mbstring Support'); ?>:</td>
-<td>
-<?php
- if (!check_mbstring()) {
- echo debug_result(T_('Multibyte character encodings may not be autodetected correctly'), false);
- }
- else {
- echo debug_result('',true);
- }
-?>
-</td>
-</tr><tr>
-<td><?php echo T_('PHP Safe Mode'); ?>:</td>
-<td>
-<?php
- if (!check_safemode()) {
- echo debug_result(T_('Safe mode enabled'), false);
- }
- else {
- echo debug_result(T_('Safe mode not enabled'), true);
- }
-?>
-</td>
-</tr><tr>
-<td><?php echo T_('PHP Memory Limit'); ?>:</td>
-<td>
-<?php
- if (!check_php_memory()) {
- echo debug_result(T_('Memory limit less than recommended size') . ' ' . ini_get('memory_limit'), false);
- }
- else {
- echo debug_result(ini_get('memory_limit'),true);
- }
-
-?>
-</td>
-</tr><tr>
-<td><?php echo T_('PHP Execution Time Limit'); ?>:</td>
-<td>
-<?php
- if (!check_php_timelimit()) {
- echo debug_result(sprintf(T_('Execution time limit is %s seconds, which is less than recommended'), ini_get('max_execution_time')), false);
- }
- else {
- echo debug_result(ini_get('max_execution_time') . ' ' . T_('seconds'),true);
- }
-?>
-</td>
-</tr><tr>
<td><?php echo T_('ampache.cfg.php is writable'); ?></td>
-<td>
+<td>[
<?php
if (!check_config_writable()) {
echo debug_result('', false);
@@ -185,6 +72,8 @@
echo debug_result('', true);
}
?>
+]
</td>
+<td><?php echo T_('This tests whether PHP can write to config/. This is not strictly necessary, but will help streamline the installation process.'); ?></td>
</tr>
</table>