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 '
'._('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 ''._('Utilisateur administrateur'),' ',$cadmin,'
'; - echo '',_('Mot de passe'),' phpcompta','
'; + echo ''._('Utilisateur administrateur'),' ',NOALYSS_ADMINISTRATOR,'
'; + echo '',_('Mot de passe par défaut à l\'installation'),' phpcompta','
'; echo "