Qual: Quelques commentaires dans le code
This commit is contained in:
parent
bafa177b34
commit
001bc0c0c4
@ -39,7 +39,7 @@ pHeader($langs->trans("DolibarrWelcome"), "licence"); // Etape suivante = lice
|
|||||||
|
|
||||||
print $langs->trans("InstallEasy")."<br>";
|
print $langs->trans("InstallEasy")."<br>";
|
||||||
|
|
||||||
|
// Si fichier présent et lisible
|
||||||
if (is_readable($conffile))
|
if (is_readable($conffile))
|
||||||
{
|
{
|
||||||
$confexists=1;
|
$confexists=1;
|
||||||
@ -47,6 +47,7 @@ if (is_readable($conffile))
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
// Si non on le crée
|
||||||
$confexists=0;
|
$confexists=0;
|
||||||
$fp = @fopen("$conffile", "w");
|
$fp = @fopen("$conffile", "w");
|
||||||
if($fp)
|
if($fp)
|
||||||
@ -58,12 +59,13 @@ else
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Si fichier absent et n'a pu etre créé
|
||||||
if (!file_exists($conffile))
|
if (!file_exists($conffile))
|
||||||
{
|
{
|
||||||
print "<br /><br />";
|
print "<br /><br />";
|
||||||
print "Le fichier de configuration <b>conf.php</b> n'existe pas !";
|
print "Le fichier de configuration <b>conf.php</b> n'existe pas !";
|
||||||
print "<br />";
|
print "<br />";
|
||||||
print "Vous devez créer un fichier <b>htdocs/conf/conf.php</b> et donner les droits d'écriture dans celui-ci au serveur Apache.";
|
print "Vous devez créer un fichier <b>htdocs/conf/conf.php</b> et donner les droits d'écriture dans celui-ci au serveur web durant le processus d'installation.";
|
||||||
print "<br /><br />";
|
print "<br /><br />";
|
||||||
|
|
||||||
print 'Corrigez le problème et <a href="index.php">rechargez la page</a>.';
|
print 'Corrigez le problème et <a href="index.php">rechargez la page</a>.';
|
||||||
@ -72,9 +74,10 @@ if (!file_exists($conffile))
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
print "<br /><br />";
|
||||||
|
// Si ficiher présent mais ne peut etre modifié
|
||||||
if (!is_writable($conffile))
|
if (!is_writable($conffile))
|
||||||
{
|
{
|
||||||
print "<br /><br />";
|
|
||||||
if ($confexists) {
|
if ($confexists) {
|
||||||
print $langs->trans("ConfFileExists");
|
print $langs->trans("ConfFileExists");
|
||||||
}
|
}
|
||||||
@ -87,9 +90,9 @@ else
|
|||||||
|
|
||||||
$err++;
|
$err++;
|
||||||
}
|
}
|
||||||
|
// Si fichier présent et peut etre modifié
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
print "<br /><br />";
|
|
||||||
if ($confexists) {
|
if ($confexists) {
|
||||||
print $langs->trans("ConfFileExists");
|
print $langs->trans("ConfFileExists");
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user