1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-05 10:49:37 +02:00
ampache/templates/show_test_table.inc.php
Lawrence Brown 60a653daf4 copyright 2014 -> 2015
janitorial services
2015-01-04 21:36:41 +00:00

231 lines
8 KiB
PHP

<?php
/* vim:set softtabstop=4 shiftwidth=4 expandtab: */
/**
*
* LICENSE: GNU General Public License, version 2 (GPLv2)
* Copyright 2001 - 2015 Ampache.org
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License v2
* as published by the Free Software Foundation.
*
* 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.
*
*/
?>
<tr>
<td valign="top"><?php echo T_('PHP version'); ?></td>
<td valign="top">
<?php echo debug_result(check_php_version()); ?>
</td>
<td>
<?php echo T_('This tests whether you are running at least the minimum version of PHP required by Ampache.'); ?>
</td>
</tr>
<tr>
<td valign="top"><?php echo T_('PHP hash extension'); ?></td>
<td valign="top">
<?php echo debug_result(check_php_hash()); ?>
</td>
<td>
<?php echo T_('This tests whether you have the hash extension enabled. This extension is required by Ampache.'); ?>
</td>
</tr>
<tr>
<td valign="top"><?php echo T_('SHA256'); ?></td>
<td valign="top">
<?php echo debug_result(check_php_hash_algo()); ?>
</td>
<td>
<?php echo T_('This tests whether the hash extension supports SHA256. This algorithm is required by Ampache.'); ?>
</td>
</tr>
<tr>
<td valign="top"><?php echo T_('PHP PDO extension'); ?></td>
<td valign="top">
<?php echo debug_result(check_php_pdo()); ?>
</td>
<td>
<?php echo T_('This tests whether you have the PDO extension enabled. This extension is required by Ampache.'); ?>
</td>
</tr>
<tr>
<td valign="top"><?php echo T_('MySQL'); ?></td>
<td valign="top">
<?php echo debug_result(check_php_pdo_mysql()); ?>
</td>
<td>
<?php echo T_('This tests whether the MySQL driver for PDO is enabled. This driver is required by Ampache.'); ?>
</td>
</tr>
<tr>
<td valign="top"><?php echo T_('PHP session extension'); ?></td>
<td valign="top">
<?php echo debug_result(check_php_session()); ?>
</td>
<td>
<?php echo T_('This tests whether you have the session extension enabled. This extension is required by Ampache.'); ?>
</td>
</tr>
<tr>
<td valign="top"><?php echo T_('PHP iconv extension'); ?></td>
<td valign="top">
<?php echo debug_result(UI::check_iconv()); ?>
</td>
<td>
<?php echo T_('This tests whether you have the iconv extension enabled. This extension is required by Ampache.'); ?>
</td>
</tr>
<tr>
<td valign="top"><?php echo T_('PHP JSON extension'); ?></td>
<td valign="top">
<?php echo debug_result(check_php_json()); ?>
</td>
<td>
<?php echo T_('This tests whether you have the JSON extension enabled. This extension is required by Ampache.'); ?>
</td>
</tr>
<tr>
<td valign="top"><?php echo T_('PHP curl extension'); ?></td>
<td valign="top">
<?php echo debug_wresult(check_php_curl()); ?>
</td>
<td>
<?php echo T_('This tests whether you have the curl extension enabled. This is not strictly necessary, but may result in a better experience.'); ?>
</td>
</tr>
<tr>
<td valign="top"><?php echo T_('PHP zlib extension'); ?></td>
<td valign="top">
<?php echo debug_wresult(check_php_zlib()); ?>
</td>
<td>
<?php echo T_('This tests whether you have the zlib extension enabled. This is not strictly necessary, but may result in a better experience (zip download).'); ?>
</td>
</tr>
<tr>
<td valign="top"><?php echo T_('PHP simplexml extension'); ?></td>
<td valign="top">
<?php echo debug_wresult(check_php_simplexml()); ?>
</td>
<td>
<?php echo T_('This tests whether you have the simplexml extension enabled. This is not strictly necessary, but may result in a better experience.'); ?>
</td>
</tr>
<tr>
<td valign="top"><?php echo T_('PHP safe mode disabled'); ?></td>
<td valign="top">
<?php echo debug_result(check_php_safemode()); ?>
</td>
<td>
<?php echo T_('This test makes sure that PHP is not running in safe mode. Some features of Ampache will not work correctly in safe mode.'); ?>
</td>
</tr>
<tr>
<td valign="top"><?php echo T_('PHP memory limit override'); ?></td>
<td valign="top">
<?php echo debug_wresult(check_override_memory()); ?>
</td>
<td>
<?php echo T_('This tests whether Ampache can override the memory limit. This is not strictly necessary, but may result in a better experience.'); ?>
</td>
</tr>
<tr>
<td valign="top"><?php echo T_('PHP execution time override'); ?></td>
<td valign="top">
<?php echo debug_wresult(check_override_exec_time()); ?>
</td>
<td>
<?php echo T_('This tests whether Ampache can override the limit on maximum execution time. This is not strictly necessary, but may result in a better experience.'); ?>
</td>
</tr>
<tr>
<td valign="top"><?php echo T_('PHP max upload size'); ?></td>
<td valign="top">
<?php echo debug_wresult(check_upload_size()); ?>
</td>
<td>
<?php echo T_('This tests whether Ampache can upload medium files (>= 20M). This is not strictly necessary, but may result in a better experience.'); ?>
</td>
</tr>
<tr>
<td valign="top"><?php echo T_('PHP Integer Size'); ?></td>
<td valign="top">
<?php echo debug_wresult(check_php_int_size()); ?>
</td>
<td>
<?php echo T_('This tests whether Ampache can manage large files (> 2GB). This is not strictly necessary, but may result in a better experience. This generally requires 64-bit operating system.'); ?>
</td>
</tr>
<?php
if (!defined('INSTALL')) {
?>
<tr>
<td valign="top"><?php echo T_('Configuration file readability'); ?></td>
<td valign="top">
<?php echo debug_result(is_readable($configfile)); ?>
</td>
<td width="350px">
<?php echo T_('This test attempts to read config/ampache.cfg.php. If this fails the file either is not in the correct location or is not currently readable.'); ?>
</td>
</tr>
<tr>
<td valign="top">
<?php echo T_('Configuration file validity'); ?>
</td>
<td valign="top">
<?php
$results = @parse_ini_file($configfile);
AmpConfig::set_by_array($results);
echo debug_result(check_config_values($results));
?>
</td>
<td>
<?php echo T_("This test makes sure that you have set all of the required configuration variables and that we are able to completely parse your config file."); ?>
</td>
</tr>
<tr>
<td valign="top"><?php echo T_("Database connection"); ?></td>
<td valign="top">
<?php echo debug_result(check_php_pdo() && Dba::check_database()); ?>
</td>
<td>
<?php echo T_('This attempts to connect to your database using the values read from your configuration file.'); ?>
</td>
</tr>
<tr>
<td valign="top"><?php echo T_('Database tables'); ?></td>
<td valign="top">
<?php echo debug_result(check_php_pdo() && Dba::check_database_inserted()); ?>
</td>
<td>
<?php echo T_('This checks a few key tables to make sure that you have successfully inserted the Ampache database and that the user has access to the database'); ?>
</td>
</tr>
<tr>
<td valign="top"><?php echo T_('Web path'); ?></td>
<td valign="top">
<?php
if (check_config_values($results)) {
echo "&nbsp;&nbsp;&nbsp;<img src=\"" . AmpConfig::get('web_path') ."/images/icon_enable.png\" />&nbsp;&nbsp;&nbsp;";
} else {
echo debug_result(false, "SKIPPED");
}
?>
</td>
<td>
<?php echo T_('This test makes sure that your web_path variable is set correctly and that we are able to get to the index page. If you do not see a check mark here then your web_path is not set correctly.'); ?>
</td>
</tr>
<?php
}
?>