From cce45d454f7a4ab1795e1fa38b233559689c121e Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Sat, 30 Jan 2016 22:54:10 +0100 Subject: [PATCH] =?UTF-8?q?Test=C3=A9=20avec=20MonoDossier=20et=20MultiDos?= =?UTF-8?q?sier?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- html/install.php | 15 +++++++-------- include/config.inc | 35 ++++++++--------------------------- 2 files changed, 15 insertions(+), 35 deletions(-) diff --git a/html/install.php b/html/install.php index 166cbd378..25dd70e3f 100644 --- a/html/install.php +++ b/html/install.php @@ -591,7 +591,7 @@ if ($account == 0 ) { if ( ! DEBUG) ob_end_clean(); echo '

'._('Important').'

'; -echo '

'._('Utilisateur administrateur'),' ',$cadmin,'

'; +echo '

'._('Utilisateur administrateur'),' ',NOALYSS_ADMINISTRATOR,'

'; echo '

',_('Mot de passe'),' phpcompta','

'; }// end if // Add a french accountancy model @@ -613,11 +613,7 @@ if (defined("MULTI") && MULTI == 0) if ( ! DEBUG) ob_end_clean(); } - /* update name administrator */ - if ( isset ($_REQUEST['cadmin'])) { - $db->exec_sql("update ac_users set use_login=$1 where use_id=1", - array($cadmin)); - } + if ($db->exist_table("version") == false) { @@ -647,9 +643,12 @@ if (defined("MULTI") && MULTI == 0) $db->execute_script(NOALYSS_INCLUDE.'/sql/patch/ac-upgrade'.$i.'.sql'); } } + + $db->exec_sql("update ac_users set use_login=$1 where use_id=1", + array(strtolower(NOALYSS_ADMINISTRATOR))); echo '

'._('Important').'

'; - echo '

'._('Utilisateur administrateur'),' ',$cadmin,'

'; - echo '

',_('Mot de passe'),' phpcompta','

'; + echo '

'._('Utilisateur administrateur'),' ',NOALYSS_ADMINISTRATOR,'

'; + echo '

',_('Mot de passe par défaut à l\'installation'),' phpcompta','

'; echo "

"; printf (" VOUS DEVEZ EFFACER CE FICHIER %s",__FILE__); echo "

"; diff --git a/include/config.inc b/include/config.inc index 2afcaf57c..9f352406c 100644 --- a/include/config.inc +++ b/include/config.inc @@ -1,28 +1,4 @@ -