From b1e2ee653f5e0b0e49c4cdc909b9aa2acd079c4c Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 11 Feb 2007 16:51:54 +0000 Subject: [PATCH] Supprime fichiers obsoletes --- dev/datas.php | 56 ---------------------------------------- dev/generate-societe.php | 6 ++--- 2 files changed, 3 insertions(+), 59 deletions(-) delete mode 100644 dev/datas.php diff --git a/dev/datas.php b/dev/datas.php deleted file mode 100644 index b41298fdbcf..00000000000 --- a/dev/datas.php +++ /dev/null @@ -1,56 +0,0 @@ - - * - * 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. - * - * $Id$ - * $Source$ - * - */ - -function DevelPrenomAleatoire() -{ - $prenoms = array( - "Aïsha","Arianne","Angie","Arnon","Armando", - "Bachir","Boris","Bernard", - "Constance","Claudine","Charles","Christobald", - "Daniel","Diego","Dimitri", - "Edgar","Edouard","Edmond","Ernest","Emilie","Emerito", - "François","Farid","Florence", - "Gaspard","Guiseppe","Gavin","Griselle", - "Hakim","Hocine","Hernan","Hélène", - "Igor","Ibrahim","Isidore","Ingrid", - "José","Joseph","Joséphine","Jocelyne","James","Juan","Juliette","Javier", - "Kevin", - "Li","Laure","Laurent","Luka", - "Martin","Manuel","Moshe","Mao","Mohamed","Michel","Marwan","Mickaël","Miguel","Medhi","Mustapha", - "Norbert","Noémie","Nicole","Nadia", - "Olivier","Oscar","Orlando", - "Paulo","Peter","Pablo", - "Quentin", - "Raoul","Roméo","Romuald","Rafael","Rosa","Rosalind","Rogelio","Raïssa","Rodrigue", - "Sylvain","Sylvie","Samir","Susie","Samantha", - "Théodore", - "Ursule", - "Victoire","Vincente","Victor", - "Yann","Youssef","Yahcine", - "Zao","Zora","Zaïra"); - - $x = rand(0,sizeof($prenoms)); - - return $prenoms[$x]; -} - -?> diff --git a/dev/generate-societe.php b/dev/generate-societe.php index 2008644eb9f..bc916f4b047 100644 --- a/dev/generate-societe.php +++ b/dev/generate-societe.php @@ -39,7 +39,10 @@ include_once(DOL_DOCUMENT_ROOT."/product.class.php"); include_once(DOL_DOCUMENT_ROOT."/paiement.class.php"); include_once(DOL_DOCUMENT_ROOT."/contrat/contrat.class.php"); +$villes = array("Auray","Baden","Vannes","Pirouville","Haguenau","Souffelweiersheim","Illkirch-Graffenstaden","Lauterbourg","Picauville","Sainte-Mère Eglise","Le Bono"); +$prenoms = array("Joe","Marc","Steve","Laurent","Nico","Isabelle","Dorothee","Saby","Brigitte","Karine","Jose-Anne","Celine","Virginie"); + /* * Parametre */ @@ -65,8 +68,6 @@ while ($i < $num) { $row = $db->fetch_row($i); $commandesid[$i] = $row[0]; print "Génère ".GEN_NUMBER_SOCIETE." sociétés\n"; for ($s = 0 ; $s < GEN_NUMBER_SOCIETE ; $s++) { - $villes = array("Auray","Baden","Vannes","Pirouville","Haguenau","Souffelweiersheim","Illkirch-Graffenstaden","Lauterbourg","Picauville","Sainte-Mère Eglise","Le Bono"); - print "Société $s\n"; $soc = new Societe($db); $soc->nom = "Société num ".time()."$s"; @@ -91,7 +92,6 @@ for ($s = 0 ; $s < GEN_NUMBER_SOCIETE ; $s++) $contact = new Contact($db); $contact->socid = $soc->id; $contact->name = "NomFamille".$c; - $prenoms = array("Joe","Marc","Steve","Laurent","Nico","Isabelle","Dorothee","Saby","Brigitte","Karine","Jose-Anne","Celine","Virginie"); $contact->firstname = $prenoms[rand(0,sizeof($prenoms)-1)]; if ( $contact->create($user) ) {