From 67213126a832dd38addb7fc385da2a96f82acb39 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Sun, 11 Mar 2007 15:03:05 +0000 Subject: [PATCH] =?UTF-8?q?augmentation=20de=2030sec=20de=20set=5Ftime=5Fl?= =?UTF-8?q?imit=20mise=20en=20commentaire=20de=20la=20recherche=20du=20cod?= =?UTF-8?q?e=20dans=20l'=E9tape=205=20de=20l'installation=20vu=20que=20le?= =?UTF-8?q?=20champ=20code=20a=20=E9t=E9=20supprim=E9,=20sinon=20l'admin?= =?UTF-8?q?=20n'est=20pas=20cr=E9=E9=20=E0=20l'installation.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/install/etape2.php | 2 +- htdocs/install/etape5.php | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/htdocs/install/etape2.php b/htdocs/install/etape2.php index 5a79558a4f3..6a89891def7 100644 --- a/htdocs/install/etape2.php +++ b/htdocs/install/etape2.php @@ -41,7 +41,7 @@ $ok = 0; // Ne fonctionne que si on est pas en safe_mode. $err=error_reporting(); error_reporting(0); -set_time_limit(90); +set_time_limit(120); error_reporting($err); $setuplang=isset($_POST["selectlang"])?$_POST["selectlang"]:(isset($_GET["selectlang"])?$_GET["selectlang"]:'auto'); diff --git a/htdocs/install/etape5.php b/htdocs/install/etape5.php index ea080f50e86..2cea1d681b9 100644 --- a/htdocs/install/etape5.php +++ b/htdocs/install/etape5.php @@ -100,6 +100,8 @@ if ($_POST["action"] == "set" || $_POST["action"] == "upgrade") { $conf->setValues($db); +// todo: a supprimer ou modifier car le champs code n'existe plus +/* $code=0; // Recherche du code AD99 le plus élevé. @@ -121,11 +123,11 @@ if ($_POST["action"] == "set" || $_POST["action"] == "upgrade") $code++; $code=sprintf("%02d",$code); - - $sql = "INSERT INTO llx_user(datec,login,pass,admin,name,code) VALUES (now()"; +*/ + $sql = "INSERT INTO llx_user(datec,login,pass,admin,name) VALUES (now()"; $sql.= ",'".$_POST["login"]."'"; $sql.= ",'".($conf->password_encrypted?md5($_POST["pass"]):$_POST["pass"])."'"; - $sql.= ",1,'Administrateur','AD".$code."')"; + $sql.= ",1,'Administrateur')"; //print "sql=".$sql." ".mysql_errno($db->db); $resql=$db->query($sql); if ($resql)