Fixed issue #56.

This commit is contained in:
Rooty 2021-04-05 16:07:32 +02:00
parent 6e8f8ad1d0
commit 8f5360c534

View File

@ -304,7 +304,6 @@ function datasource($POST="")
$chaine = "";
if($_POST)
{
foreach($_POST as $cle=>$val)
{
if($val=="" && ($cle !="PwdServeur" && $cle !="NameServeur" && $cle !="PrefxBdServeur" && $cle !="helpdesc"))
@ -325,7 +324,6 @@ function datasource($POST="")
}
else
{
$dbhost = (!empty($_POST['NameServeur'])) ? $_POST['NameServeur'] : 'localhost';
$dbuser = (!empty($_POST['LoginServeur'])) ? $_POST['LoginServeur']: "";
$dbpasswd = (!empty($_POST['PwdServeur'])) ? $_POST['PwdServeur'] : "";
@ -687,6 +685,11 @@ function admin($POST="")
if( !file_exists($GLOBALS["CONF_LIB_PATH"]."data/upload/install/packagesrc") )
createDirectory($GLOBALS["CONF_LIB_PATH"]."data/upload/install/packagesrc", 700);
// Création du répertoire de stockage des packages disponible sur la plateforme
// Nécessaire pour l'outil installmanager.
if( !file_exists($GLOBALS["CONF_LIB_PATH"]."data/template/cache") )
createDirectory($GLOBALS["CONF_LIB_PATH"]."data/template/cache", 700);
if ( updateStringInFile(array(
"{_CONF_ADMIN_MAIL_}"=>$_POST['Mail']),
$CONF_LIB_PATH.'config/config.php',