Ajout initialisation de $err
This commit is contained in:
parent
03c4b686ae
commit
416ab0f683
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
/* Copyright (C) 2004-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
@ -22,11 +22,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
\file htdocs/install/check.php
|
\file htdocs/install/check.php
|
||||||
\ingroup install
|
\ingroup install
|
||||||
\brief Test si le fichier conf est modifiable et si il n'existe pas, test la possibilité de le créer
|
\brief Test si le fichier conf est modifiable et si il n'existe pas, test la possibilité de le créer
|
||||||
\version $Revision$
|
\version $Revision$
|
||||||
*/
|
*/
|
||||||
|
$err = 0;
|
||||||
|
|
||||||
include_once("./inc.php");
|
include_once("./inc.php");
|
||||||
|
|
||||||
@ -36,21 +37,20 @@ $langs->load("install");
|
|||||||
|
|
||||||
pHeader($langs->trans("DolibarrWelcome"), "licence"); // Etape suivante = license
|
pHeader($langs->trans("DolibarrWelcome"), "licence"); // Etape suivante = license
|
||||||
|
|
||||||
|
|
||||||
print $langs->trans("InstallEasy")."<br>";
|
print $langs->trans("InstallEasy")."<br>";
|
||||||
|
|
||||||
// Si fichier présent et lisible
|
// Si fichier présent et lisible
|
||||||
if (is_readable($conffile))
|
if (is_readable($conffile))
|
||||||
{
|
{
|
||||||
$confexists=1;
|
$confexists=1;
|
||||||
include_once($conffile);
|
include_once($conffile);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Si non on le crée
|
// Si non on le crée
|
||||||
$confexists=0;
|
$confexists=0;
|
||||||
$fp = @fopen("$conffile", "w");
|
$fp = @fopen("$conffile", "w");
|
||||||
if($fp)
|
if($fp)
|
||||||
{
|
{
|
||||||
@fwrite($fp, '<?php');
|
@fwrite($fp, '<?php');
|
||||||
@fputs($fp,"\n");
|
@fputs($fp,"\n");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user