From 7350e31efadb728107fae8c1d0a241125f50caec Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 27 Jun 2005 19:48:50 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20Possibilit=E9=20de=20d=E9finir=20le=20r?= =?UTF-8?q?=E9pertoire=20documents=20=E0=20une=20autre=20valeur=20que=20do?= =?UTF-8?q?cuments.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/install/etape1.php | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/htdocs/install/etape1.php b/htdocs/install/etape1.php index daa510cd300..a4b358f2262 100644 --- a/htdocs/install/etape1.php +++ b/htdocs/install/etape1.php @@ -1,8 +1,8 @@ - * Copyright (C) 2004 Laurent Destailleur - * Copyright (C) 2004 Benoit Mortier - * Copyright (C) 2004 Sebastien Di Cintio + * Copyright (C) 2004-2005 Laurent Destailleur + * Copyright (C) 2004 Benoit Mortier + * Copyright (C) 2004 Sebastien Di Cintio * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -45,15 +45,10 @@ $main_dir=isset($_POST["main_dir"])?$_POST["main_dir"]:''; // Répertoire des documents générés (factures, etc...) $main_data_dir=isset($_POST["main_data_dir"])?$_POST["main_data_dir"]:''; - -// En attendant que le main_data_dir soit géré de manière autonome, -// on le force à sa valeur fixe des anciennes versions. -// Eric Seigne 2004 -$main_data_dir=ereg_replace("htdocs","documents",$main_dir); - -// Quand ça sera géré ! if (! $main_data_dir) { $main_data_dir="$main_dir/documents"; } + + if ($_POST["action"] == "set") { umask(0);