-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.php
68 lines (62 loc) · 2.42 KB
/
config.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
<?php
/**
* Copyright 2023-2024 Christophe LEMOINE
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the “Software”),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included
* in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
* DEALINGS IN THE SOFTWARE.
*/
declare(strict_types=1);
// Framework Syme
define('DEBUG', false);
define('CORE_NAME', 'Syme');
define('CORE_VERSION', '1.1.1');
define('ROOT_PATH', dirname($_SERVER['SCRIPT_NAME']));
define('ASSETS_PATH', __DIR__ . '/public');
define('USE_COMPRESSION', true);
define('USE_CACHE', true);
define('CACHE_DELAY', 3600);
define('ASSETS_PACKET_SIZE', 1024);
// composant: Session
define('SESSION_USE_COOKIES', 1);
define('SESSION_USE_ONLY_COOKIES', 1);
define('SESSION_USE_STRICT_MODE', 1);
define('SESSION_COOKIE_HTTPONLY', 1);
define('SESSION_COOKIE_SECURE', 1);
define('SESSION_COOKIE_SAMESITE', 'Strict');
define('SESSION_USE_TRANS_ID', 0);
define('SESSION_CACHE_LIMITER', 'nocache');
define('SESSION_URL_REWRITER_TAGS', 0);
define('SESSION_LIFETIME', 0);
define('SESSION_COOKIE_PATH', ROOT_PATH);
// composant: MySQL
define('MYSQL_HOST', 'localhost');
define('MYSQL_PORT', 3306);
define('MYSQL_DATABASE', 'syme');
define('MYSQL_USERNAME', 'user');
define('MYSQL_PASSWORD', '');
// composant: Mailler
define('SMTP_HOST', '');
define('SMTP_PORT', 587);
define('SMTP_AUTH', true);
define('SMTP_USERNAME', '');
define('SMTP_PASSWORD', '');
define('SMTP_SECURE', 'tls');
define('SMTP_FROM_NAME', 'Syme');
define('SMTP_FROM_MAIL', 'contact@syme.com');
define('SMTP_REPLY_NAME', 'Syme');
define('SMTP_REPLY_MAIL', 'contact@syme.com');