From 1c7b39339cab7a0e8f878339287559c803512b1f Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 12 Mar 2008 22:24:12 +0000 Subject: [PATCH] New: Minor change to allow a new windows .exe setup wizard --- htdocs/install/etape4.php | 2 +- htdocs/install/etape5.php | 12 +++++------- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/htdocs/install/etape4.php b/htdocs/install/etape4.php index 10bee1e926a..43207912ef0 100644 --- a/htdocs/install/etape4.php +++ b/htdocs/install/etape4.php @@ -69,7 +69,7 @@ if ($db->ok == 1) { print ''.$langs->trans("DolibarrAdminLogin").' :'; - print ''; + print ''; print ''.$langs->trans("Password").' :'; print ''; print ''.$langs->trans("PasswordAgain").' :'; diff --git a/htdocs/install/etape5.php b/htdocs/install/etape5.php index a206a032c1d..ea25392c65e 100644 --- a/htdocs/install/etape5.php +++ b/htdocs/install/etape5.php @@ -1,6 +1,6 @@ - * Copyright (C) 2004-2007 Laurent Destailleur + * Copyright (C) 2004-2008 Laurent Destailleur * Copyright (C) 2004 Benoit Mortier * Copyright (C) 2004 Sebastien DiCintio * @@ -17,14 +17,12 @@ * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - * - * $Id$ */ /** \file htdocs/install/etape5.php \brief Page de fin d'installation ou de migration - \version $Revision$ + \version $Id$ */ include_once("./inc.php"); @@ -48,19 +46,19 @@ if ($_POST["action"] == "set" || $_POST["action"] == "upgrade") { if ($_POST["pass"] <> $_POST["pass_verif"]) { - Header("Location: etape4.php?error=1&selectlang=$setuplang"); + Header("Location: etape4.php?error=1&selectlang=$setuplang".(isset($_POST["login"])?'&login='.$_POST["login"]:'')); exit; } if (strlen(trim($_POST["pass"])) == 0) { - Header("Location: etape4.php?error=2&selectlang=$setuplang"); + Header("Location: etape4.php?error=2&selectlang=$setuplang".(isset($_POST["login"])?'&login='.$_POST["login"]:'')); exit; } if (strlen(trim($_POST["login"])) == 0) { - Header("Location: etape4.php?error=3&selectlang=$setuplang"); + Header("Location: etape4.php?error=3&selectlang=$setuplang".(isset($_POST["login"])?'&login='.$_POST["login"]:'')); exit; } }