diff options
author | momo-i <momo-i@ampache> | 2008-08-29 07:07:13 +0000 |
---|---|---|
committer | momo-i <momo-i@ampache> | 2008-08-29 07:07:13 +0000 |
commit | 59a103e607811934c3d1213c48c58eb9a2748d77 (patch) | |
tree | 3bba6e6dca915accf48c1e0d6d9ee5f7ff74ce2a /templates/show_install_lang.inc.php | |
parent | fae2f92e98fdeecc69044933c509e17c7ad91fb6 (diff) | |
download | ampache-59a103e607811934c3d1213c48c58eb9a2748d77.tar.gz ampache-59a103e607811934c3d1213c48c58eb9a2748d77.tar.bz2 ampache-59a103e607811934c3d1213c48c58eb9a2748d77.zip |
Updated more translatable
Diffstat (limited to 'templates/show_install_lang.inc.php')
-rw-r--r-- | templates/show_install_lang.inc.php | 27 |
1 files changed, 8 insertions, 19 deletions
diff --git a/templates/show_install_lang.inc.php b/templates/show_install_lang.inc.php index 7e790af2..630fc552 100644 --- a/templates/show_install_lang.inc.php +++ b/templates/show_install_lang.inc.php @@ -26,6 +26,7 @@ <head> <title>Ampache :: Pour l'Amour de la Musique - Install</title> <link rel="stylesheet" href="templates/install.css" type="text/css" media="screen" /> +<meta http-equiv="Content-Type" Content="text/html; Charset=<?php echo $charset; ?>" /> </head> <body> <script src="lib/javascript-base.js" language="javascript" type="text/javascript"></script> @@ -52,7 +53,7 @@ <h4><?php echo _('Requirements'); ?></h4> <p><?php echo _('PHP Version:'); ?> <?php - if(strcmp('5.1.0',phpversion()) > 0) { + if(!check_php_ver()) { echo " <font color=\"red\">ERROR</font> " . phpversion(); $results = $results + 1; } else { @@ -62,7 +63,7 @@ </p> <p><?php echo _('Mysql for PHP:'); ?> <?php - if (!function_exists('mysql_query')) { + if (!check_php_mysql()) { echo " <font color=\"red\">ERROR</font> "; $results = $results + 1; } else { @@ -76,7 +77,7 @@ </p> <p><?php echo _('PHP Session Support:'); ?> <?php - if (!function_exists('session_set_save_handler')) { + if (!check_php_session()) { echo " <font color=\"red\">ERROR</font> "; $results = $results + 1; } else { @@ -86,7 +87,7 @@ </p> <p><?php echo _('PHP ICONV Support:'); ?> <?php - if (!function_exists('iconv')) { + if (!check_php_iconv()) { echo " <font color=\"red\">ERROR</font> "; $results = $results + 1; } else { @@ -96,7 +97,7 @@ </p> <p><?php echo _('PHP PCRE Support:'); ?> <?php - if (!function_exists('preg_match')) { + if (!check_php_pcre()) { echo " <font color=\"red\">ERROR</font> "; $results = $results + 1; } else { @@ -106,10 +107,7 @@ </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)) { + if (!check_putenv()) { echo " <font color=\"red\">ERROR</font> "; $results = $results + 1; } else { @@ -117,21 +115,12 @@ } ?> </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> "; + echo " <font color=\"#FF6600\">" . _('WARNING: This server will use gettext emulator.') . "</font> "; } else { echo " <font color=\"green\"> OK </font> "; } |