Subversion Repositories Applications.gtt

Rev

Rev 2 | Rev 7 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2 Rev 5
Line 1... Line 1...
1
<?php
1
<?php
Line 2... Line 2...
2
 
2
 
-
 
3
/*fichier de definition */
-
 
4
error_reporting(E_ALL);
-
 
5
 
-
 
6
// Définition des constantes
-
 
7
define ('GESTION_TRAVAIL',1);
-
 
8
define ('GESTION_ADMIN_UTILISATEUR', 13);
-
 
9
define ('GESTION_EDITER_UTILISATEUR',14);
-
 
10
define ('GESTION_ADMIN_PROJET',15);
-
 
11
define ('GESTION_ADMIN_CATEGORIE',16);
-
 
12
define ('GESTION_ADMIN_MOTIF_ABSENCE',17);
-
 
13
define ('GESTION_ADMIN_STATUT',18);
-
 
14
define ('GESTION_ADMIN_FRAIS',19);
-
 
15
define ('GESTION_ADMIN_TACHE',20);
-
 
16
define ('GESTION_EDITER_PREFERENCES',21);
Line 3... Line 17...
3
/*fichier de definition */
17
define ('GESTION_DECONNEXION',22); 
4
 
18
 
5
//==================================== CHEMINS ==================================
19
//==================================== CHEMINS ==================================
6
/* definition des chemins d'acces
20
/* definition des chemins d'acces
Line 14... Line 28...
14
define("CHEMIN_CLASSES",CHEMIN.'classes/');
28
define("CHEMIN_CLASSES",CHEMIN.'classes/');
15
define("CHEMIN_LANGUES",CHEMIN.'langues/');
29
define("CHEMIN_LANGUES",CHEMIN.'langues/');
16
define("CHEMIN_MENU",CHEMIN.'menu/');
30
define("CHEMIN_MENU",CHEMIN.'menu/');
17
define("CHEMIN_CONTROLEUR",CHEMIN.'controleur/');
31
define("CHEMIN_CONTROLEUR",CHEMIN.'controleur/');
Line 18... Line -...
18
 
-
 
19
 
32
 
20
/**
33
/**
21
//==================================== CONSTANTES ==================================
34
//==================================== CONSTANTES ==================================
22
/* definition des constantes de plusieurs tests et divers
35
/* definition des constantes de plusieurs tests et divers
23
//==================================================================================
36
//==================================================================================
24
*/
37
*/
25
 //$GLOBALS['dsn']="mysql://shaheen:shaheen@162.38.234.6/gestion_test_v3";
38
 //$GLOBALS['dsn']="mysql://shaheen:shaheen@162.38.234.6/gestion_test_v3";
26
$GLOBALS['dsn']="mysql://shaheen:shaheen@localhost/gestion_test_v3";
39
$GLOBALS['dsn'] = 'mysql://root:0000@localhost/gestion';
27
$GLOBALS['urlBase']="http://test.tela-botanica.org/gestion/index.php?action=";
40
$GLOBALS['urlBase'] = 'http://localhost/gestion/index.php?action=';
28
//on suppose que le nombre d'heure maximum par jour de travail est 23
41
//on suppose que le nombre d'heure maximum par jour de travail est 23
29
$GLOBALS['limiteJourTravail']=24;
42
$GLOBALS['limiteJourTravail'] = 24;
30
//on suppose que le nombre d'heure maximumde par jour de recuperation partielle est 11
43
//on suppose que le nombre d'heure maximumde par jour de recuperation partielle est 11
31
$GLOBALS['limiteJourRecupPart']=12;
44
$GLOBALS['limiteJourRecupPart'] = 12;
32
/**
45
/**
33
//==================================== CONSTANTES ==================================
46
//==================================== CONSTANTES ==================================
34
/* definition des constantes de nom de table et de leurs champs
47
/* definition des constantes de nom de table et de leurs champs
35
//==================================================================================
48
//==================================================================================
36
*/
-
 
37
 
49
*/
38
//******************utilisateur***********************//
50
//******************utilisateur***********************//
39
define ("GEST_UTILISATEUR", "gestion_utilisateur");
51
define ("GEST_UTILISATEUR", "gestion_utilisateur");
40
define ("GEST_CHAMPS_ID_UTILISATEUR","gu_id_utilisateur");
52
define ("GEST_CHAMPS_ID_UTILISATEUR","gp_id_utilisateur");
41
define("GEST_CHAMPS_NOM","gu_nom");
53
define("GEST_CHAMPS_NOM","gu_nom");
42
define("GEST_CHAMPS_PRENOM", "gu_prenom");
54
define("GEST_CHAMPS_PRENOM", "gu_prenom");
43
define("GEST_CHAMPS_PASSWORD","gu_password");
55
define("GEST_CHAMPS_PASSWORD","gu_password");
44
define("GEST_CHAMPS_EMAIL","gu_email"); 
56
define("GEST_CHAMPS_EMAIL","gu_email");