Add a check to see if utf8 functions availables
This commit is contained in:
parent
c51f1f7885
commit
53fb0b50f5
@ -19,10 +19,10 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
\file htdocs/install/check.php
|
||||
\ingroup install
|
||||
\brief Test si le fichier conf est modifiable et si il n'existe pas, test la possibilité de le créer
|
||||
\version $Id$
|
||||
* \file htdocs/install/check.php
|
||||
* \ingroup install
|
||||
* \brief Test si le fichier conf est modifiable et si il n'existe pas, test la possibilité de le créer
|
||||
* \version $Id$
|
||||
*/
|
||||
include_once("./inc.php");
|
||||
|
||||
@ -98,7 +98,7 @@ else
|
||||
}
|
||||
|
||||
|
||||
// Check if GD installed
|
||||
// Check if GD supported
|
||||
if (! function_exists("imagecreate"))
|
||||
{
|
||||
$langs->load("errors");
|
||||
@ -111,6 +111,19 @@ else
|
||||
}
|
||||
|
||||
|
||||
// Check if UTF8 supported
|
||||
if (! function_exists("utf8_encode"))
|
||||
{
|
||||
$langs->load("errors");
|
||||
print '<img src="../theme/eldy/img/warning.png" alt="Error"> '.$langs->trans("ErrorPHPDoesNotSupportUTF8")."<br>\n";
|
||||
// $checksok=0; // If image ko, just warning. So check must still be 1 (otherwise no way to install)
|
||||
}
|
||||
else
|
||||
{
|
||||
print '<img src="../theme/eldy/img/tick.png" alt="Ok"> '.$langs->trans("PHPSupportUTF8")."<br>\n";
|
||||
}
|
||||
|
||||
|
||||
// Check memory
|
||||
$memrequiredorig='16M';
|
||||
$memrequired=16*1024*1024;
|
||||
|
||||
@ -13,10 +13,13 @@ PHPSupportSessions=This PHP supports sessions.
|
||||
PHPSupportPOSTGETOk=This PHP supports variables POST and GET.
|
||||
PHPSupportPOSTGETKo=It's possible your PHP setup does not support variables POST and/or GET. Check your parameter <b>variables_order</b> in php.ini.
|
||||
PHPSupportGD=This PHP support GD graphical functions.
|
||||
PHPSupportUTF8=This PHP support UTF8 functions.
|
||||
PHPMemoryOK=Your PHP max session memory is set to <b>%s</b>. This should be enough.
|
||||
PHPMemoryTooLow=Your PHP max session memory is set to <b>%s</b> bytes. This should be too low. Change your <b>php.ini</b> to set <b>memory_limit</b> parameter to at least <b>%s</b> bytes.
|
||||
Recheck=Click here for a more significative test
|
||||
ErrorPHPDoesNotSupportSessions=Your PHP installation does not support sessions. This feature is required to make Dolibarr working. Check your PHP setup.
|
||||
ErrorPHPDoesNotSupportGD=Your PHP installation does not support graphical function GD. No graph will be available.
|
||||
ErrorPHPDoesNotSupportUTF8=Your PHP installation does not support UTF8 functions. Dolibarr can't work correctly. Solve this before installing Dolibarr.
|
||||
ErrorDirDoesNotExists=Directory %s does not exists.
|
||||
ErrorGoBackAndCorrectParameters=Go backward and correct wrong parameters.
|
||||
ErrorWrongValueForParameter=You may have typed a wrong value for parameter '%s'.
|
||||
|
||||
@ -13,11 +13,13 @@ PHPSupportSessions=Ce PHP supporte les sessions.
|
||||
PHPSupportPOSTGETOk=Ce PHP supporte bien les variables POST et GET.
|
||||
PHPSupportPOSTGETKo=Il est possible que ce PHP ne supporte pas les variables POST et/ou GET. Vérifier le paramètre <b>variables_order</b> du php.ini.
|
||||
PHPSupportGD=Ce PHP supporte les fonctions graphiques GD.
|
||||
PHPSupportUTF8=Ce PHP supporte les fonctions UTF8.
|
||||
PHPMemoryOK=Votre mémoire maximum de session PHP est défini à <b>%s</b>. Ceci devrait être suffisant.
|
||||
PHPMemoryTooLow=Votre mémoire maximum de session PHP est défini à <b>%s</b> octets. Ceci est trop faible. Il est recommandé de modifier le paramètre <b>memory_limit</b> de votre fichier <b>php.ini</b> à au moins <b>%s</b> octets.
|
||||
Recheck=Cliquez ici pour un test plus probant
|
||||
ErrorPHPDoesNotSupportSessions=Votre installation PHP ne supporte pas les sessions. Cette fonctionnalité est requise pour faire fonctionner Dolibarr. Vérifiez votre configuration de PHP.
|
||||
ErrorPHPDoesNotSupportGD=Ce PHP ne supporte pas les fonctions graphiques GD. Aucun graphique ne sera disponible.
|
||||
ErrorPHPDoesNotSupportUTF8=Ce PHP ne supporte pas les fonctions UTF8. Résolver le problème avant d'install Dolibarr car il ne pourra pas fonctionner correctement.
|
||||
ErrorDirDoesNotExists=Le répertoire <b>%s</b> n'existe pas ou n'est pas accessible.
|
||||
ErrorGoBackAndCorrectParameters=Revenez en arrière et corrigez les paramètres invalides.
|
||||
ErrorWrongValueForParameter=Vous avez peut-être saisi une mauvaise valeur pour le paramètre '%s'.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user