Supprime fichiers obsoletes
This commit is contained in:
parent
975465232f
commit
b1e2ee653f
@ -1,56 +0,0 @@
|
||||
<?PHP
|
||||
/* Copyright (C) 2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
*
|
||||
* 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];
|
||||
}
|
||||
|
||||
?>
|
||||
@ -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) )
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user