summaryrefslogtreecommitdiffstats
path: root/templates/show_install_lang.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'templates/show_install_lang.inc.php')
-rw-r--r--templates/show_install_lang.inc.php114
1 files changed, 12 insertions, 102 deletions
diff --git a/templates/show_install_lang.inc.php b/templates/show_install_lang.inc.php
index a079708c..f2bc46a1 100644
--- a/templates/show_install_lang.inc.php
+++ b/templates/show_install_lang.inc.php
@@ -36,7 +36,7 @@
</div>
<div id="text-box">
<div class="notify">
- <strong><?php echo _('Requirements'); ?></strong>
+ <h3><?php echo _('Requirements'); ?></h3>
<p>
<?php echo _('This Page handles the installation of the Ampache database and the creation of the ampache.cfg.php file. Before you continue please make sure that you have the following pre-requisites'); ?>
</p>
@@ -47,103 +47,19 @@
<p>
<?php echo _("Once you have ensured that you have the above requirements please fill out the information below. You will only be asked for the required config values. If you would like to make changes to your ampache install at a later date simply edit /config/ampache.cfg.php"); ?>
</p>
- </div>
+<?php require_once 'templates/show_install_check.inc.php'; ?>
+</div>
+<?php if (Error::occurred()) { ?>
<div class="content">
- <h3><?php echo _('System Checks'); ?></h3>
- <h4><?php echo _('Requirements'); ?></h4>
- <p><?php echo _('PHP Version'); ?>:
- <?php
- if(!check_php_ver()) {
- echo " <font color=\"red\">ERROR</font> " . phpversion() . " " . _('Hash Function Exists') . " "
- . print_boolean(function_exists('hash_algos')) . " " . _('SHA256 Support') . " " . print_boolean(in_array('sha256',$algos));
- $results = $results + 1;
- } else {
- echo " <font color=\"green\">&nbsp;&nbsp;&nbsp;OK&nbsp;&nbsp;&nbsp;&nbsp;</font><i>" . phpversion() . "</i>";
- }
- ?>
- </p>
- <p><?php echo _('Mysql for PHP'); ?>:
- <?php
- if (!check_php_mysql()) {
- echo " <font color=\"red\">ERROR</font> ";
- $results = $results + 1;
- } else {
- if(strcmp('5.0.0',mysql_get_client_info()) > 0) {
- echo " <font color=\"#FF6600\">&nbsp;&nbsp;&nbsp;WARNING&nbsp;&nbsp;&nbsp;&nbsp;</font> " . mysql_get_client_info() . "<strong>We recommend MySQL version more than 5.0.0</strong>";
- } else {
- echo " <font color=\"green\">&nbsp;&nbsp;&nbsp;OK&nbsp;&nbsp;&nbsp;&nbsp;</font>";
- echo "<i>" . mysql_get_client_info() . "</i>";
- }
- }
- ?>
- </p>
- <p><?php echo _('PHP Session Support'); ?>:
- <?php
- if (!check_php_session()) {
- echo " <font color=\"red\">ERROR</font> ";
- $results = $results + 1;
- } else {
- echo " <font color=\"green\">&nbsp;&nbsp;&nbsp;OK&nbsp;&nbsp;&nbsp;&nbsp;</font> ";
- }
- ?>
- </p>
- <p><?php echo _('PHP ICONV Support'); ?>:
- <?php
- if (!check_php_iconv()) {
- echo " <font color=\"red\">ERROR</font> ";
- $results = $results + 1;
- } else {
- echo " <font color=\"green\">&nbsp;&nbsp;&nbsp;OK&nbsp;&nbsp;&nbsp;&nbsp;</font> ";
- }
- ?>
- </p>
- <p><?php echo _('PHP PCRE Support'); ?>:
- <?php
- if (!check_php_pcre()) {
- echo " <font color=\"red\">ERROR</font> ";
- $results = $results + 1;
- } else {
- echo " <font color=\"green\">&nbsp;&nbsp;&nbsp;OK&nbsp;&nbsp;&nbsp;&nbsp;</font> ";
- }
- ?>
- </p>
- <p><?php echo _('PHP PutENV Support'); ?>:
- <?php
- if (!check_putenv()) {
- echo " <font color=\"red\">ERROR</font> ";
- $results = $results + 1;
- } else {
- echo " <font color=\"green\">&nbsp;&nbsp;&nbsp;OK&nbsp;&nbsp;&nbsp;&nbsp;</font> ";
- }
- ?>
- </p>
- <hr />
- <h4><?php echo _('Optional'); ?></h4>
- <p><?php echo _('Gettext Support'); ?>:
- <?php
- if (!function_exists('gettext')) {
- echo " <font color=\"#FF6600\">" . _('WARNING: This server will use gettext emulator.') . "</font> ";
- } else {
- echo " <font color=\"green\">&nbsp;&nbsp;&nbsp;OK&nbsp;&nbsp;&nbsp;&nbsp;</font> ";
- }
- ?>
- </p>
- <p><?php echo _('Mbstring Support'); ?>:
- <?php
- if (!function_exists('mb_check_encoding')) {
- echo " <font color=\"#FF6600\">WARNING</font> ";
- } else {
- echo " <font color=\"green\">&nbsp;&nbsp;&nbsp;OK&nbsp;&nbsp;&nbsp;&nbsp;</font> ";
- }
- ?>
- </p>
+ <span class="fatalerror"><?php echo _('Minimum Requirements not met. Unable to Install Ampache.'); ?></span>
</div>
- <?php if($results == 0) { ?>
- <div class="content">
- <strong><?php echo _('Choose installation language.'); ?></strong>
- <p>
- <?php Error::display('general'); ?>
- </p>
+<?php } ?>
+
+<div class="content">
+ <strong><?php echo _('Choose installation language.'); ?></strong>
+ <p>
+ <?php Error::display('general'); ?>
+ </p>
<form method="post" action="<?php echo WEB_PATH . "?action=init"; ?>" enctype="multipart/form-data" >
<?php
@@ -165,12 +81,6 @@ echo "</select>\n";
</form>
</div>
- <?php } else { /* if results */ ?>
- <div class="content">
- <?php echo _('Ampache does not <strong>run</strong> correctly by this server.'); ?><br />
- <?php echo _('Please contact your server administrator, and fix them.'); ?>
- </div>
- <?php } /* if results */ ?>
<div id="bottom">
<p><strong>Ampache Installation.</strong><br />
For the love of Music.</p>