-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.php
More file actions
45 lines (34 loc) · 980 Bytes
/
config.php
File metadata and controls
45 lines (34 loc) · 980 Bytes
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
<?php
/* ---- NOTE ----
* THIS PROJECT RUNS ON
* PHP Version 8.0.6 +
* ---------------
*/
// set Timezone
date_default_timezone_set("Europe/Prague");
// !!! Turn off displaying errors (FOR PRODUCTION ONLY) !!!
//error_reporting(0);
// Site settings
define("SITE_PATH", __DIR__);
define("SITE_TITLE", "SPŠEI BookMarket");
define("SITE_URL", "localhost");
define("SITE_IP", "127.0.0.1");
// Web sockets
define("WEBSOCKETS_PORT", 2021);
define("WEBSOCKETS_PROTOCOL", "http");
// Include path
set_include_path(SITE_PATH);
// Database credentials
define("DB_hostname", "localhost");
define("DB_username", "root");
define("DB_password", "");
define("DB_name", "spsei_marketplace");
// --- Constants ---
// OFFERS
define("OFFER_EXPIRATION_DAYS", 31);
define("MAX_OFFER_PRICE", 1500);
define("SUGGESTIONS_PRICE_TOLERANCE", 1000);
// AUCTIONS
define("AUCTION_BID_DELAY", 10);
// PASSWORD
define("RESET_PASSWORD_TOKEN_EXPIRATION", 1); // in hours