summaryrefslogtreecommitdiffstats
path: root/templates/show_test.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'templates/show_test.inc.php')
-rw-r--r--templates/show_test.inc.php84
1 files changed, 42 insertions, 42 deletions
diff --git a/templates/show_test.inc.php b/templates/show_test.inc.php
index 17572e5d..20fe97c5 100644
--- a/templates/show_test.inc.php
+++ b/templates/show_test.inc.php
@@ -38,7 +38,7 @@
<tr>
<td><font size="+1"><?php echo _('CHECK'); ?></font></td>
<td>
- <font size="+1"><?php echo _('STATUS'); ?></font>
+ <font size="+1"><?php echo _('STATUS'); ?></font>
</td>
<td><font size="+1"><?php echo _('DESCRIPTION'); ?></font></td>
</tr>
@@ -46,13 +46,13 @@
<td valign="top"><?php echo _('PHP Version'); ?></td>
<td valign="top">[
<?php
- if (!check_php_ver()) {
+ if (!check_php_ver()) {
echo debug_result('',false);
- if (function_exists('hash_algos')) { $algos = hash_algos(); }
- $string = "<strong>" . phpversion() . " " . _('Hash Function Exists') . " " . print_boolean(function_exists('hash_algos')) . " " . _('SHA256 Support') . " " . print_boolean(in_array('sha256',$algos)) . "</strong>";
+ if (function_exists('hash_algos')) { $algos = hash_algos(); }
+ $string = "<strong>" . phpversion() . " " . _('Hash Function Exists') . " " . print_boolean(function_exists('hash_algos')) . " " . _('SHA256 Support') . " " . print_boolean(in_array('sha256',$algos)) . "</strong>";
}
else {
- echo debug_result('',true);
+ echo debug_result('',true);
}
?>
]
@@ -67,10 +67,10 @@
<td valign="top">[
<?php
if (!check_php_mysql()) {
- echo debug_result('',false);
+ echo debug_result('',false);
}
else {
- echo debug_result('',true);
+ echo debug_result('',true);
}
?>
]
@@ -83,11 +83,11 @@
<td valign="top"><?php echo _('PHP Session Support'); ?></td>
<td valign="top">[
<?php
- if (!check_php_session()) {
- echo debug_result('',false);
+ if (!check_php_session()) {
+ echo debug_result('',false);
}
else {
- echo debug_result('',true);
+ echo debug_result('',true);
}
?>
]
@@ -100,11 +100,11 @@
<td valign="top"><?php echo _('PHP ICONV Support'); ?></td>
<td valign="top">[
<?php
- if (!check_php_iconv()) {
- echo debug_result('',false);
+ if (!check_php_iconv()) {
+ echo debug_result('',false);
}
else {
- echo debug_result('',true);
+ echo debug_result('',true);
}
?>]
</td>
@@ -116,11 +116,11 @@
<td valign="top"><?php echo _('PHP PCRE Support'); ?></td>
<td valign="top">[
<?php
- if (!check_php_pcre()) {
- echo debug_result('',false);
+ if (!check_php_pcre()) {
+ echo debug_result('',false);
}
- else {
- echo debug_result('',true);
+ else {
+ echo debug_result('',true);
}
?>]
</td>
@@ -132,27 +132,27 @@
<td valign="top"><?php echo _('PHP PutENV Support'); ?></td>
<td valign="top">[
<?php
- if (!check_putenv()) {
- echo debug_result('',false);
+ if (!check_putenv()) {
+ echo debug_result('',false);
+ }
+ else {
+ echo debug_result('',true);
}
- else {
- echo debug_result('',true);
- }
?>]
</td>
<td>
<?php echo _('This test makes sure that PHP isn\'t running in SafeMode and that we are able to modify the memory limits. While not required, without these abilities some features of ampache may not work correctly'); ?>
</td>
-</tr>
+</tr>
<tr>
<td valign="top"><?php echo sprintf(_("%s is readable"),"ampache.cfg.php"); ?></td>
- <td valign="top">[
+ <td valign="top">[
<?php
- if (!is_readable($configfile)) {
- echo debug_result('',false);
+ if (!is_readable($configfile)) {
+ echo debug_result('',false);
}
else {
- echo debug_result('',true);
+ echo debug_result('',true);
}
?>
]
@@ -166,15 +166,15 @@
<td valign="top">
<?php echo _('Ampache.cfg.php Configured?'); ?>
</td>
- <td valign="top">[
+ <td valign="top">[
<?php
$results = @parse_ini_file($configfile);
Config::set_by_array($results);
- if (!check_config_values($results)) {
- echo debug_result('',false);
+ if (!check_config_values($results)) {
+ echo debug_result('',false);
}
else {
- echo debug_result('',true);
+ echo debug_result('',true);
}
?>
]
@@ -188,12 +188,12 @@
<td valign="top">[
<?php
$db = check_database($results['database_hostname'], $results['database_username'], $results['database_password'],$results['database_name']);
- if (!$db) {
- echo debug_result('',false);
+ if (!$db) {
+ echo debug_result('',false);
}
else {
- echo debug_result('',true);
- }
+ echo debug_result('',true);
+ }
?>
]
</td>
@@ -206,11 +206,11 @@
<td valign="top">[
<?php
$db_inserted = check_database_inserted($db,$results['local_db']);
- if (!$db_inserted) {
- echo debug_result('',false);
+ if (!$db_inserted) {
+ echo debug_result('',false);
}
else {
- echo debug_result('',true);
+ echo debug_result('',true);
}
?>
]
@@ -227,18 +227,18 @@
/*
Check to see if this is Http or https
*/
- if ($_SERVER['HTTPS'] == 'on') {
+ if ($_SERVER['HTTPS'] == 'on') {
$http_type = "https://";
}
- else {
+ else {
$http_type = "http://";
}
$results['web_path'] = $http_type . $_SERVER['SERVER_NAME'] . ":" . $_SERVER['SERVER_PORT'] . Config::get('web_path');
- if (check_config_values($results)) {
+ if (check_config_values($results)) {
echo "&nbsp;&nbsp;&nbsp;<img src=\"" . $results['web_path'] ."/images/icon_enable.png\" />&nbsp;&nbsp;&nbsp;";
}
else {
- echo debug_result('',false);
+ echo debug_result('',false);
}
?>