mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-14 08:54:21 +01:00
New: Ajout control sur config mmoire minimum 16M.
This commit is contained in:
@@ -107,6 +107,25 @@ else
|
||||
*/
|
||||
}
|
||||
|
||||
|
||||
// Check memory
|
||||
$memrequired=16*1024*1024;
|
||||
$memmax=ini_get("memory_limit");
|
||||
eregi('([0-9]+)([a-zA-Z]*)',$memmax,$reg);
|
||||
if ($reg[2])
|
||||
{
|
||||
if (strtoupper($reg[2]) == 'M') $memmax=$reg[1]*1024*1024;
|
||||
if (strtoupper($reg[2]) == 'K') $memmax=$reg[1]*1024;
|
||||
}
|
||||
if ($memmax >= $memrequired)
|
||||
{
|
||||
print '<img src="../theme/eldy/img/tick.png" alt="Ok"> '.$langs->trans("PHPMemoryOK",$memmax,$memrequired)."<br>\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
print '<img src="../theme/eldy/img/warning.png" alt="Warning"> '.$langs->trans("PHPMemoryTooLow",$memmax,$memrequired)."<br>\n";
|
||||
}
|
||||
|
||||
// Si fichier pr<70>sent et lisible et renseign<67>
|
||||
clearstatcache();
|
||||
if (is_readable($conffile) && filesize($conffile) > 8)
|
||||
|
||||
@@ -12,6 +12,8 @@ ConfFileIsWritable=Configuration file <b>%s</b> is writable.
|
||||
PHPSupportSessions=This PHP supports sessions.
|
||||
PHPSupportPOSTGETOk=This PHP supports variables POST and GET.
|
||||
PHPSupportPOSTGETKo=It's possible this PHP does not support variables POST and/or GET. Check your parameter <b>variables_order</b> in php.ini.
|
||||
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.
|
||||
ErrorDirDoesNotExists=Directory %s does not exists.
|
||||
|
||||
@@ -12,6 +12,8 @@ ConfFileIsWritable=Le fichier <b>%s</b> est modifiable.
|
||||
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<61>tre <b>variables_order</b> du php.ini.
|
||||
PHPMemoryOK=Votre m<>moire maximum de session PHP est d<>fini <20> <b>%s</b>. Ceci devrait <20>tre suffisant.
|
||||
PHPMemoryTooLow=Votre m<>moire maximum de session PHP est d<>fini <20> <b>%s</b> octets. Ceci est trop faible. Il est recommand<6E> de modifier le param<61>tre <b>memory_limit</b> de votre fichier <b>php.ini</b> <20> 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<69> est requise pour faire fonctionner Dolibarr. V<>rifiez votre configuration de PHP.
|
||||
ErrorDirDoesNotExists=Le r<>pertoire <b>%s</b> n'existe pas ou n'est pas accessible.
|
||||
|
||||
Reference in New Issue
Block a user