This repository has been archived by the owner on Aug 18, 2023. It is now read-only.
forked from payutc/server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.inc.dist.php
130 lines (113 loc) · 4.73 KB
/
config.inc.dist.php
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
<?php
/**
* payutc
* Copyright (C) 2011 BuckUTT <buckutt@utt.fr>
* Copyright (C) 2013 payutc <payutc@assos.utc.fr>
*
* This file is part of payutc
*
* payutc 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 3 of the License, or
* (at your option) any later version.
*
* payutc 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, see <http://www.gnu.org/licenses/>.
*/
// Paramètres de BDD
$_CONFIG['sql_host'] = "localhost";
$_CONFIG['sql_db'] = "buckutt";
$_CONFIG['sql_user'] = "root";
$_CONFIG['sql_pass'] = "root";
// Chemin vers le serveur CAS (avec le / final)
$_CONFIG['cas_url'] = "";
// URL publique http(s) du serveur (avec le / final)
$_CONFIG['server_url'] = "http://localhost/buckutt/";
// Méthode de cache côté serveur pour les wsdl (mettre WSDL_CACHE_BOTH en prod)
$_CONFIG['wsdl_cache'] = WSDL_CACHE_NONE;
// Montant maximum à autoriser sur un compte (en cts)
$_CONFIG['credit_max'] = 100000;
// Montant minimum d'un rechargement
$_CONFIG['rechargement_min'] = 1000;
// Adresse du proxy
$_CONFIG['proxy_host'] = null;
$_CONFIG['proxy_port'] = null;
$_CONFIG['proxy_login'] = "";
$_CONFIG['proxy_password'] = "";
/**
* PAYLINE
* Ces paramètres sont pré-configurés sur un compte de test, aucune garantie
* n'est apporté quand au fait qu'il restera accessible dans la durée.
* Vous pouvez ouvrir un compte de test sur le site www.payline.com
*/
$_CONFIG['payline_contract_number'] = "1234567";
$_CONFIG['payline_merchant_id'] = '70038023549152' ; // Merchant ID
$_CONFIG['payline_access_key'] = 'fAPFZ5vkg0K734953kKG' ; // Certificate key
$_CONFIG['payline_production'] = false ; // production mode
// Clé d'API Google pour envoyer des notifications
$_CONFIG['google_api_key'] = "";
// Configuration de ginger (outil cotisant)
// En environnement de dev, utiliser https://github.com/simde-utc/faux-ginger
$_CONFIG['ginger_key'] = "";
$_CONFIG['ginger_url'] = "";
// Configuration de Slim, les plus importants sont les 3 premiers paramètres
$_CONFIG['slim_config'] = array(
'mode' => 'developement',
'debug' => true,
);
// Mode maintenance
$_CONFIG['maintenance'] = false;
// Configuration des logs
$_CONFIG['log_mode'] = 'DEV';
$_CONFIG['log_filename'] = __DIR__.'/logs/logs.log';
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Papercut //
// Ne pas oublier d'avoir les droits RELOADPAPERCUT sur l'application casper pour la fondation papercut ! //
// Ne pas oublier de créer l'objet "Transfert argent vers compte papercut" à 0.01 centimes dans la fondation papercut !! //
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
$_CONFIG["papercut"] = [
'fun_id' => xx, // id fondation papercut
'obj_id' => xx, // id objet transfert argent avec un prix de 0.1 cts
];
$_CONFIG["reload_event"] = [
'fun_id' => 5, // id fondation papercut
'obj_id' => 'xxx',
];
///////////////////////////////////////////////////////////////////////////////////////////////////
// Ecocup //
// Ne pas oublier de créer les objets: //
// * éco cup à 1€ //
// * retour éco cup à 0€ //
// & d'ajouter le champ usr_credit_ecocup à la table usr: utiliser php db.php migrations:migrate //
///////////////////////////////////////////////////////////////////////////////////////////////////
$_CONFIG["ecocup"] = [
'fun_id' => 2, // id fun bar icam
'buy' => 279,
'return' => 280,
];
$_CONFIG["ecocup_soiree"] = [
'fun_id' => [1], // id fun bar icam
'buy' => [1395],
'return' => [1396],
];
$_CONFIG["papercut_mysql"] = [
'sql_host' => "localhost",
'sql_db' => "papercut_reloads",
'sql_user' => "root",
'sql_pass' => "root"
];
$_CONFIG["PHPMailer"] = array(
"Host" => "smtp.gmail.com",
"SMTPAuth" => true,
"Username" => "",
"Password" => "",
"SMTPSecure" => "ssl",
"Port" => 465,
"integrity_mail" => ""
)
$_CONFIG['event_on'] = false;