Ajout d'un test pour afficher erreur si ni authentification apache, ni pear n'est install.
This commit is contained in:
parent
405190c3c2
commit
99a7ec890d
@ -92,6 +92,24 @@ else
|
||||
}
|
||||
else
|
||||
{
|
||||
// TODO
|
||||
// Tester si auth est installé, et si non renvoyé erreur demandant install
|
||||
// d'une area d'authentification apache ou de auth.
|
||||
$modules_list = get_loaded_extensions();
|
||||
|
||||
$ispearinstalled=0;
|
||||
foreach ($modules_list as $module) {
|
||||
if ($module == 'pear') { $ispearinstalled=1; }
|
||||
}
|
||||
|
||||
if (! $ispearinstalled) {
|
||||
print "Pour fonctionner, Dolibarr a besoin :<br>\n";
|
||||
print "- Soit du module PHP 'pear' (actuellement, votre php contient les modules suivant: ".join($modules_list,',')."<br>\n";
|
||||
print "- Soit d'avoir son répertoire htdocs protégé par une authentification Web basique (Exemple pour Apache: Utilisation des directives Authxxx dans la configuration, ou utilisation du fichier .htaccess).<br>\n";
|
||||
print "<br><br>Vous devez respecter un de ces pré-requis pour continuer.\n";
|
||||
exit ;
|
||||
}
|
||||
|
||||
require_once "Auth/Auth.php";
|
||||
|
||||
$params = array(
|
||||
@ -267,7 +285,6 @@ if (defined("MAIN_MODULE_SOCIETE") && MAIN_MODULE_SOCIETE)
|
||||
$conf->societe = 1 ;
|
||||
}
|
||||
|
||||
|
||||
if (defined("MAIN_MODULE_COMMERCIAL"))
|
||||
{
|
||||
$conf->commercial->enabled=MAIN_MODULE_COMMERCIAL;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user