diff --git a/html/install.php b/html/install.php
index c770c844a..bb6f51995 100644
--- a/html/install.php
+++ b/html/install.php
@@ -319,73 +319,33 @@ echo "
";
echo "";
}
+//---------------------------------------------------------------------------------------
+// Check php modules
+//---------------------------------------------------------------------------------------
$module=get_loaded_extensions();
-echo "";
$str_error_message=_('Vous devez installer ou activer l\'extension').' %s ';
-if ( in_array('mbstring',$module) == false ){
- echo 'module mbstring '.$failed;
- echo '',
- sprintf($str_error_message, "mbstring"),
- ' ';
- $flag_php++;
-} else echo 'module mbstring '.$succeed;
-echo "";
-echo "";
-if ( in_array('pgsql',$module) == false )
-{
- echo 'module PGSQL '.$failed;
- echo '',
- sprintf($str_error_message, "psql"),
- ' ';
- $flag_php++;
-} else echo 'module PGSQL '.$succeed;
-echo "";
+$a_need_module=array("mbstring","pgsql","bcmath","gettext","zip","gd","dom","xml","SimpleXML","xmlwriter","xmlreader");
-echo "";
-if ( in_array('bcmath',$module) == false )
-{
- echo 'module BCMATH ok '.$failed;
- echo '',
- sprintf($str_error_message, "bcmath"),
- ' ';
- $flag_php++;
-} else echo 'module BCMATH '.$succeed;
-echo "";
+$nb_need_module=count($a_need_module);
-echo "";
-if (in_array('gettext',$module) == false )
+for ($m=0;$m<$nb_need_module;$m++)
{
- echo 'module GETTEXT '.$failed;
- echo '',
- sprintf($str_error_message, "gettext"),
- ' ';
- $flag_php++;
-} else echo 'module GETTEXT '.$succeed;
-echo "";
-
-echo "";
-if ( in_array('zip',$module) == false )
-{
- echo 'module ZIP '.$failed;
- echo '',
- sprintf($str_error_message, "zip"),
- ' ';
- $flag_php++;
-} else echo 'module ZIP '.$succeed;
-echo "";
-echo "";
-if ( in_array('gd',$module) == false )
-{
- echo 'module GD '.$failed;
- echo '',
- sprintf($str_error_message, "gd"),
- ' ';
- $flag_php++;
-} else echo 'module GD '.$succeed;
-echo "";
-
+
+ echo "";
+ if ( in_array($a_need_module[$m],$module) == false ){
+ echo 'module '.$a_need_module[$m].$failed;
+ echo '',
+ sprintf($str_error_message, $a_need_module[$m]),
+ ' ';
+ $flag_php++;
+ } else echo 'module '.$a_need_module[$m].$succeed;
+ echo "";
+}
+//---------------------------------------------------------------------------------------
+// Max_execution_time , can be overriden
+//---------------------------------------------------------------------------------------
if ( ini_get("max_execution_time") < 60 ) {
echo "";
echo _('Avertissement').' : '.$failed;