-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathparam-dist.php
More file actions
91 lines (79 loc) · 2.56 KB
/
Copy pathparam-dist.php
File metadata and controls
91 lines (79 loc) · 2.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<?php
/**
* ApoSE param.php
* php version 7
*
* @category Education
* @package Apose
* @author 2014 - CRI Université Lille 2 <cri@univ-lille.fr>
* @author 2021-2024 - UniCA DSI <dsi.sen@univ-cotedazur.fr>
* @author 2022 - Université Toulouse 1 Capitole <dsi@univ-tlse1.fr>
* @license GNU GPL
* @link https://github.com/suipnice/apose
*/
// Set "YES" for mode test
// Set "NO" for mode prod.
define("APP_MODE_TEST", "NO");
// Set "YES" pour debug or "NO" pour cacher debug.
define("APP_MODE_DEBUG", "NO");
define("UNIV_NAME", "Université XXX");
if (APP_MODE_TEST === "YES") {
// #### MODE TEST ####
define("APP_NAME", "ApoSE TEST");
// CONNEXION MYSQL.
define("HOTE_MYSQL", "mysql.univ.fr");
define("USER_MYSQL", "aposetest");
define("PASSWD_MYSQL", "A_CHANGER");
define("MYSQL_BASE_DATAS", "APOSETEST");
} else {
// #### MODE PROD ####
define("APP_NAME", "ApoSE");
// PARAMETRES DE CONNEXION MYSQL.
define("HOTE_MYSQL", "mysql.univ.fr");
define("USER_MYSQL", "apose");
define("PASSWD_MYSQL", "A_CHANGER");
define("MYSQL_BASE_DATAS", "APOSE");
}
// PARAMETRES DE CONNEXION ORACLE.
define("BASE_ORACLE", "APOPROD");
define("PASSWD_ORACLE", "A_CHANGER");
define("USER_ORACLE", "apogee");
// Nombre d'années précédentes à afficher (et à synchro via cron)
// (N pour ajouter N ans passés, 0 pour uniquement l'année courante et la suivante).
define("NB_PREV_YEAR", 1);
// PARAMETRES CAS.
// Hostname of the CAS server.
define("CAS_HOST", "login.univ.fr");
// The port the CAS server is running on.
define("CAS_PORT", 443);
// The URI the CAS server is responding on.
define("CAS_URI", "");
// The base URL (protocol, host and the optional port) of the CAS client;
// pass in an array to use auto discovery with an allowlist;
// Similar to serverName config in other CAS clients.
define("SERVICE_BASE_URL", "");
// PARAMETRES LDAP.
define("LDAP_BASE_DN", "ou=people,dc=univ,dc=fr");
define("LDAP_SERVEUR", "ldap.univ.fr");
define("LDAP_PORT", 389);
define("LDAP_BIND_RDN", "cn=manager,dc=univ,dc=fr");
define("LDAP_BIND_PWD", "A_CHANGER");
// Affiliations autorisées à utiliser ApoSE.
define(
"AUTHORIZED",
[
"staff",
"teacher",
"faculty",
"researcher",
"employee",
]
);
define("CHEMIN_PUBLIC", "/var/www/public/");
// Lien vers un syllabus pour les éléments terminaux
// Il doit contenir les champs [[cod_elp]] et [[cod_anu]],
// qui seront remplacés par leur valeurs respectives.
define(
"SYLLABUS_LINK",
"https://syllabus.univ.fr/fr/course/router/[[cod_elp]]/[[cod_anu]]"
);