diff --git a/htdocs/print.css b/htdocs/print.css deleted file mode 100644 index e925f9952fa..00000000000 --- a/htdocs/print.css +++ /dev/null @@ -1,24 +0,0 @@ -/* Copyright (C) 2003 Xavier DUTOIT - * - * $Id: - * $Source: - * - * 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 - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program 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 this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - * - */ -/* -Avec ces styles, on imprime pas les menus de gauches et celui du haut -*/ -.leftmenu,.menu,.noprint, #powered-by-dolibarr {display:none;} diff --git a/htdocs/public/adherents/new.php b/htdocs/public/adherents/new.php index df3e564a0ce..8c248af4344 100644 --- a/htdocs/public/adherents/new.php +++ b/htdocs/public/adherents/new.php @@ -31,36 +31,37 @@ $errmsg=''; $num=0; $error=0; -if ($HTTP_POST_VARS["action"] == 'add') +if ($_POST["action"] == 'add') { // test si le login existe deja - if(!isset($login) || $login=''){ + $login=$_POST["login"]; + if(!isset($_POST["login"]) || $_POST["login"]=''){ $error+=1; - $errmsg .="Login vide. Veuillez en positionner un
\n"; + $errmsg .="Login $login vide. Veuillez en positionner un
\n"; } - $sql = "SELECT login FROM llx_adherent WHERE login='$login';"; + $sql = "SELECT login FROM llx_adherent WHERE login='".$login."';"; $result = $db->query($sql); if ($result) { $num = $db->num_rows(); } - if (!isset($nom) || !isset($prenom) || $prenom=='' || $nom==''){ + if (!isset($_POST["nom"]) || !isset($_POST["prenom"]) || $_POST["prenom"]=='' || $_POST["nom"]==''){ $error+=1; $errmsg .="Nom et Prenom obligatoires
\n"; } - if (!isset($email) || $email == '' || !ereg('@',$email)){ + if (!isset($_POST["email"]) || $_POST["email"] == '' || !ereg('@',$_POST["email"])){ $error+=1; $errmsg .="Adresse Email invalide
\n"; } if ($num !=0){ $error+=1; - $errmsg .="Login deja utilise. Veuillez en changer
\n"; + $errmsg .="Login ".$login." deja utilise. Veuillez en changer
\n"; } - if (!isset($pass1) || !isset($pass2) || $pass1 == '' || $pass2 == '' || $pass1!=$pass2){ + if (!isset($_POST["pass1"]) || !isset($_POST["pass2"]) || $_POST["pass1"] == '' || $_POST["pass2"] == '' || $_POST["pass1"]!=$_POST["pass2"]){ $error+=1; $errmsg .="Password invalide
\n"; } - if (isset($naiss) && $naiss !=''){ - if (!preg_match("/^\d\d\d\d-\d\d-\d\d$/",$naiss)){ + if (isset($_POST["naiss"]) && $_POST["naiss"] !=''){ + if (!preg_match("/^\d\d\d\d-\d\d-\d\d$/",$_POST["naiss"])){ $error+=1; $errmsg .="Date de naissance invalide (Format AAAA-MM-JJ)
\n"; } @@ -74,23 +75,23 @@ if ($HTTP_POST_VARS["action"] == 'add') // email a peu pres correct et le login n'existe pas $adh = new Adherent($db); $adh->statut = -1; - $adh->public = $public; - $adh->prenom = $prenom; - $adh->nom = $nom; - $adh->societe = $societe; - $adh->adresse = $adresse; - $adh->cp = $cp; - $adh->ville = $ville; - $adh->email = $email; + $adh->public = $_POST["public"]; + $adh->prenom = $_POST["prenom"]; + $adh->nom = $_POST["nom"]; + $adh->societe = $_POST["societe"]; + $adh->adresse = $_POST["adresse"]; + $adh->cp = $_POST["cp"]; + $adh->ville = $_POST["ville"]; + $adh->email = $_POST["email"]; $adh->login = $login; - $adh->pass = $pass1; - $adh->naiss = $naiss; - $adh->photo = $photo; - $adh->note = $note; - $adh->pays = $pays; - $adh->typeid = $type; - $adh->commentaire = $HTTP_POST_VARS["comment"]; - $adh->morphy = $HTTP_POST_VARS["morphy"]; + $adh->pass = $_POST["pass1"]; + $adh->naiss = $_POST["naiss"]; + $adh->photo = $_POST["photo"]; + $adh->note = $_POST["note"]; + $adh->pays = $_POST["pays"]; + $adh->typeid = $_POST["type"]; + $adh->commentaire = $_POST["comment"]; + $adh->morphy = $_POST["morphy"]; foreach($_POST as $key => $value){ if (ereg("^options_",$key)){ @@ -146,7 +147,7 @@ print '
  • Les champs Commencant par un * sont obligat print '
  • Les champs Commencant par un * seront affiche sur la liste publique des membres. Si vous ne souhaite pas cela DECOCHEZ la case public ci dessous'; print "
  • Les login et password vous serviront a editer vos coordonnees ulterieurement
    \n"; print "
    \n"; -print "
    \n"; +print "\n"; print ''; print '';