I N D E X

import_script.php alows to import in the database file on
csv format

example : /rec/utilisateur.txt

The transfer description is made in the file extension import_nomobjet.inc dans /rec:

example : import_script.php?obj=utilisateur

in import_utilisateur.inc , it is define:

- $import= "Insert user" : Message
- $table= "utilisateur" : inportation table
- $id="idutilisateur" : automatic numerotation field / or empty
- $verrou= 1 database modified = 0 database not modified
- $DEBUG =1 affichage des enregistrements � l ecran =0 pas d affichage
- $fic_erreur=1; // =0 no error file / =1 error file
- $fic_rejet=1; // =0 no relaunching file / = relaunching file
The file contain the rec=ords to relaunch the
treatment before manuel correction

$ligne1=1 => the first line contains the fields name / 0 otherwise

Compulsary fiels

$obligatoire['nom']=1;// compulsary = 1
$obligatoire['login']=1;// compulsary = 1

exist test

$exist['profil']=1 => 0=no / 1=yes
$sql_exist["profil"]= "select profil from profil where profil = '"

field list to insert
$zone['nom']='0' => la 1st field contains name
$zone['login']=1 => la 2nd field contains login
$zone['pwd']='2' => la 3rd field contains the password
$zone['profil']='3' => la 4 eme zone contient le profil

Default value If $zone['profil']="" we define a default profil
$defaut['profil']='5' => default profil =5