diff --git a/Faq b/Faq index c2b84dea8..e094d0c14 100644 --- a/Faq +++ b/Faq @@ -16,5 +16,5 @@ session.cookie_lifetime = 0 ; lifetime in seconds of cookie session.cookie_path = /tmp ; the path the cookie is valid for 2. Quand on réinitialise le mot de passe, que vaut-il ? -Le mot de passe par défaut est webcompta +Le mot de passe par défaut est phpcompta diff --git a/INSTALL b/INSTALL index c99556fab..7b2ff60b9 100644 --- a/INSTALL +++ b/INSTALL @@ -48,7 +48,7 @@ vous permettra de r Ce fichier doit au moins contenir la ligne: # TYPE DATABASE USER IP-ADDRESS IP-MASK METHOD -host all webcompta 172.16.30.0 255.255.255.0 trust +host all phpcompta 172.16.30.0 255.255.255.0 trust Il vaut mieux remplacer 172.16.30.0 par l'adresse du server HTTP, dans le cas où vous utilisez un VirtualHost avec une adresse IP, c'est diff --git a/html/admin_repo.php b/html/admin_repo.php index 8f16e7658..48daa5658 100644 --- a/html/admin_repo.php +++ b/html/admin_repo.php @@ -1,23 +1,23 @@ /* - * This file is part of WCOMPTA. + * This file is part of PhpCompta. * - * WCOMPTA is free software; you can redistribute it and/or modify + * PhpCompta 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. * - * WCOMPTA is distributed in the hope that it will be useful, + * PhpCompta 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 WCOMPTA; if not, write to the Free Software + * along with PhpCompta; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -// Auteur Dany De Bontridder ddebontridder@yahoo.fr +// Copyright Author Dany De Bontridder ddebontridder@yahoo.fr include_once("ac_common.php"); include_once("postgres.php"); @@ -101,6 +101,10 @@ if ( isset ($_GET["action"]) ) { if ( isset ($_POST["DATABASE"]) ) { $cn=DbConnect(); $dos=trim($_POST["DATABASE"]); + if (strlen($dos)==0) { + echo ("Dataname is empty"); + exit -1; + } $desc=FormatString($_POST["DESCRIPTION"]); $Res=ExecSql($cn,"insert into ac_dossier(dos_name,dos_description) values ('".$dos."','$desc')"); @@ -121,6 +125,9 @@ if ( isset ($_GET["action"]) ) { $cn=DbConnect(); $Res=ShowDossier('all'); $compteur=1; +$template=""; + + // show all dossiers if ( $Res != null ) { echo "