diff options
author | momo-i <momo-i@ampache> | 2008-08-27 00:59:11 +0000 |
---|---|---|
committer | momo-i <momo-i@ampache> | 2008-08-27 00:59:11 +0000 |
commit | 7d8db9b0ec124fc0708492486a375f09291f3a8f (patch) | |
tree | c75a63be3854a8e7dd5649dc1e192e316684568a /templates/show_install_lang.inc.php | |
parent | de6d146ca3ee28541aad998a422b20311597e0d1 (diff) | |
download | ampache-7d8db9b0ec124fc0708492486a375f09291f3a8f.tar.gz ampache-7d8db9b0ec124fc0708492486a375f09291f3a8f.tar.bz2 ampache-7d8db9b0ec124fc0708492486a375f09291f3a8f.zip |
Updated tempalate, po files, and Install process.
Diffstat (limited to 'templates/show_install_lang.inc.php')
-rw-r--r-- | templates/show_install_lang.inc.php | 115 |
1 files changed, 111 insertions, 4 deletions
diff --git a/templates/show_install_lang.inc.php b/templates/show_install_lang.inc.php index 4ec20405..7e790af2 100644 --- a/templates/show_install_lang.inc.php +++ b/templates/show_install_lang.inc.php @@ -20,6 +20,7 @@ */ ?> <?php if (INSTALL != '1') { exit; } ?> +<?php $results = 0; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $htmllang; ?>" lang="<?php echo $htmllang; ?>"> <head> @@ -34,7 +35,7 @@ </div> <div id="text-box"> <div class="notify"> - <b><?php echo _('Requirements'); ?></b> + <strong><?php echo _('Requirements'); ?></strong> <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> @@ -46,9 +47,109 @@ <?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> - <div class="content"> - <b>Choose installation language.</b> + <h3><?php echo _('System Checks'); ?></h3> + <h4><?php echo _('Requirements'); ?></h4> + <p><?php echo _('PHP Version:'); ?> + <?php + if(strcmp('5.1.0',phpversion()) > 0) { + echo " <font color=\"red\">ERROR</font> " . phpversion(); + $results = $results + 1; + } else { + echo " <font color=\"green\"> OK </font> " . phpversion(); + } + ?> + </p> + <p><?php echo _('Mysql for PHP:'); ?> + <?php + if (!function_exists('mysql_query')) { + echo " <font color=\"red\">ERROR</font> "; + $results = $results + 1; + } else { + if(strcmp('5.0.0',mysql_get_server_info()) > 0) { + echo " <font color=\"#FF6600\"> WARNING </font> " . mysql_get_server_info() . "<strong>We recommend MySQL version more than 5.0.0</strong>"; + } else { + echo " <font color=\"green\"> OK </font> " . mysql_get_server_info(); + } + } + ?> + </p> + <p><?php echo _('PHP Session Support:'); ?> + <?php + if (!function_exists('session_set_save_handler')) { + echo " <font color=\"red\">ERROR</font> "; + $results = $results + 1; + } else { + echo " <font color=\"green\"> OK </font> "; + } + ?> + </p> + <p><?php echo _('PHP ICONV Support:'); ?> + <?php + if (!function_exists('iconv')) { + echo " <font color=\"red\">ERROR</font> "; + $results = $results + 1; + } else { + echo " <font color=\"green\"> OK </font> "; + } + ?> + </p> + <p><?php echo _('PHP PCRE Support:'); ?> + <?php + if (!function_exists('preg_match')) { + echo " <font color=\"red\">ERROR</font> "; + $results = $results + 1; + } else { + echo " <font color=\"green\"> OK </font> "; + } + ?> + </p> + <p><?php echo _('PHP PutENV Support:'); ?> + <?php + $current = ini_get('memory_limit'); + $current = substr($current_memory,0,strlen($current_memory)-1); + $new_limit = ($current+1) . "M"; + if (!ini_set(memory_limit,$new_limit)) { + echo " <font color=\"red\">ERROR</font> "; + $results = $results + 1; + } else { + echo " <font color=\"green\"> OK </font> "; + } + ?> + </p> + <p><?php echo _('PHP Safe Mode:'); ?> + <?php + if (ini_get('safe_mode')) { + echo " <font color=\"red\">Using Safe Mode.</font> "; + } else { + echo " <font color=\"green\"> OK </font> "; + } + ?> + </p> + <hr /> + <h4><?php echo _('Optional'); ?></h4> + <p><?php echo _('PHP GetText Support:'); ?> + <?php + if (!function_exists('gettext')) { + echo " <font color=\"#FF6600\">WARNING: This server will use gettext emulator.</font> "; + } else { + echo " <font color=\"green\"> OK </font> "; + } + ?> + </p> + <p><?php echo _('PHP Mbstring Support:'); ?> + <?php + if (!function_exists('mb_check_encoding')) { + echo " <font color=\"#FF6600\">WARNING</font> "; + } else { + echo " <font color=\"green\"> OK </font> "; + } + ?> + </p> + </div> + <?php if($results == 0) { ?> + <div class="content"> + <strong><?php echo _('Choose installation language.'); ?></strong> <p> <?php Error::display('general'); ?> </p> @@ -73,8 +174,14 @@ 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><b>Ampache Installation.</b><br /> + <p><strong>Ampache Installation.</strong><br /> For the love of Music.</p> </div> </div> |