-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconstants.inc.php
More file actions
42 lines (32 loc) · 1 KB
/
Copy pathconstants.inc.php
File metadata and controls
42 lines (32 loc) · 1 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
<?php
if (!defined('ABSPATH')) {
define('ABSPATH', __DIR__ . '/');
}
if (!defined('MEETINGS_START_TIME')) {
define('MEETINGS_START_TIME', '07:00');
}
if (!defined('MEETINGS_END_TIME')) {
define('MEETINGS_END_TIME', '20:00');
}
if (!defined('SITE_DIR')) {
define('SITE_DIR', $_ENV['SITE_DIR']);
}
if (!defined('SITE_NAME')) {
define('SITE_NAME', 'Schedule-It');
}
if (!defined('SITE_URL')) {
$protocol = $_SERVER['HTTPS'] == 'on' ? 'https' : 'http';
define('SITE_URL', $protocol . '://' . $_SERVER['HTTP_HOST'] . $_ENV['SITE_DIR']);
}
if (!defined('UPLOADS_ABSPATH')) {
define('UPLOADS_ABSPATH', ABSPATH . 'uploads/');
}
if (!defined('UPLOADS_URL')) {
define('UPLOADS_URL', $protocol . '://' . $_SERVER['HTTP_HOST'] . $_ENV['SITE_DIR'] . '/uploads/');
}
if (!defined('UPLOAD_ALLOWED_FILETYPES')) {
define('UPLOAD_ALLOWED_FILETYPES', serialize(['txt', 'zip', 'pdf', 'docx', 'xlsx' ,'pptx']));
}
if (!defined('UPLOAD_SIZE_LIMIT')) {
define('UPLOAD_SIZE_LIMIT', 5000000);
}