Testé avec MonoDossier et MultiDossier

This commit is contained in:
Dany De Bontridder 2016-01-30 22:54:10 +01:00
parent 7cebed6612
commit cce45d454f
2 changed files with 15 additions and 35 deletions

View file

@ -591,7 +591,7 @@ if ($account == 0 ) {
if ( ! DEBUG) ob_end_clean();
echo '<h1>'._('Important').'</h1>';
echo '<p>'._('Utilisateur administrateur'),' ',$cadmin,'</p>';
echo '<p>'._('Utilisateur administrateur'),' ',NOALYSS_ADMINISTRATOR,'</p>';
echo '<p>',_('Mot de passe'),' phpcompta','</p>';
}// 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 '<h1>'._('Important').'</h1>';
echo '<p>'._('Utilisateur administrateur'),' ',$cadmin,'</p>';
echo '<p>',_('Mot de passe'),' phpcompta','</p>';
echo '<p>'._('Utilisateur administrateur'),' ',NOALYSS_ADMINISTRATOR,'</p>';
echo '<p>',_('Mot de passe par défaut à l\'installation'),' phpcompta','</p>';
echo "<h2 class=\"warning\">";
printf (" VOUS DEVEZ EFFACER CE FICHIER %s",__FILE__);
echo "</h2>";

View file

@ -1,28 +1,4 @@
<?php
/*
* This file is part of NOALYSS.
*
* NOALYSS is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* NOALYSS is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with NOALYSS; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
/* $Revision$ */
// Copyright Author Dany De Bontridder danydb@aevalys.eu
/*!\file
* \brief user setting
*/
<?php
date_default_timezone_set ('Europe/Brussels');
$_ENV['TMP']='/tmp';
define("PG_PATH","/usr/bin");
@ -33,6 +9,10 @@ define ("noalyss_user","noalyss_sql");
define ("noalyss_password","dany");
define ("noalyss_psql_port","5432");
define ("noalyss_psql_host","localhost");
// If you change the NOALYSS_ADMINISTRATOR , you will need to rerun http://..../noalyss/html/install.php
// But it doesn't change the password
define ("NOALYSS_ADMINISTRATOR","admin");
define ("LOCALE",1);
define ("domaine","");
define ("MULTI",1);
@ -50,7 +30,8 @@ define ("dbname","");
// define ("NOALYSS_PLUGIN","");
// define ("NOALYSS_INCLUDE","");
// define ("NOALYSS_TEMPLATE","");
// Fix an issue with PDF when exporting receipt in PDF in ANCGL
// define ("FIX_BROKEN_PDF","NO");
// Uncomment if you don't want
// to be informed when a new release is
@ -60,4 +41,4 @@ define ("dbname","");
// To allow to access the Info system
// define ("SYSINFO_DISPLAY",true);
// For developpement
// define ("NOALYSS_VERSION",9999);
// define ("NOALYSS VERSION",9999);