-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.php
More file actions
111 lines (97 loc) · 3.03 KB
/
config.php
File metadata and controls
111 lines (97 loc) · 3.03 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<?php
/**
* The main Configuration file.
* Define all your constants here.
*
* @package PhpSSS
* @author @ckchaudhary
* @since 1.0.0
*/
// root directory
define('ABSPATH', __DIR__ . '/');
// If this website's address is yourdomain.com then the SUBDIRECTORY should be empty.
// If this website's address is yourdomain.com/myapp then the SUBDIRECTORY should be 'myapp'
define('SUBDIRECTORY', 'php-static-starter');
// Your website's root url.
define('HOME_URL', 'http://localhost/php-static-starter/');
define('ASSETS_URL', 'http://localhost/php-static-starter/public/assets/');
// Sub directory for uploads folder, relative to root folder of the domain, in which your website resides.
// All system generated ( e.g: log files ) and user uploads should go into this folder, or one its sub-folders.
define('UPLOADS_DIR', 'uploads');
// time zone, in which you want to display date and time by default.
define('TIME_ZONE', 'Asia/Kolkata');
// default date and time formats
define('DATE_FORMAT', 'd M Y');
define('TIME_FORMAT', 'H:i:s');
// go to https://www.recycleb.in/tools/keygen/ and copy the generated key from there.
// This key is used to generate security tokens( nonce ), used in forms.
// Nonce are helpful in preventing CSRF attacks
define('PUBLIC_ENCRYPTION_SECRET', '');
/**
* Optional: google recaptcha keys.
*
* This is needed only if you plan on using google recaptcha( e.g: in a contact form ).
*/
define('GOOGLE_RECAPTCHA_V2_SITE_KEY', '');
define('GOOGLE_RECAPTCHA_V2_SECRET_KEY', '');
/**
* Error reporting.
*
* Set to true to print errors.
*
* !important: This must be set to false in production.
*/
define('SS_PRINT_ERRORS', false);
/**
* Debug mode.
*
* When set to true it enables features like logging.
*
* !important: This should be set to false in production.
*/
define('SS_DEBUG', false);
/**
* SMTP Details.
*
* phpmailer is used when sending emails.( e.g: from a contact form ).
* php's default mail function is unreliable.
* we use SMTP to send emails.
*
* Enter the smtp details of the email account you wish to use to send emails.
* You can get all these details from your smtp provider
*/
define('SMTP_DETAILS', serialize([
'host' => '',
'port' => '465',// Accepted values 465 or 587
'user' => '',
'password' => '',
'sent_from' => [
'email' => '',
'name' => '',
],
'reply_to' => [
'email' => '',
'name' => '',
],
]));
/**
* By default all the emails( from contact forms for example ) are sent to the email addresses defined below.
*
* You can
*/
define('LMS_EMAIL_CONTACTS', serialize([
'to' => [
// e.g:
// [ 'john.doe@example.com', 'John Doe' ],
],
'cc' => [
// a list of recipients in the following format
// [ 'someone@example.com', 'Some One' ],
// [ 'someoneelse@example.com', 'Some One Else' ],
],
'bcc' => [
// a list of recipients in the following format
// [ 'someone@example.com', 'Some One' ],
// [ 'someoneelse@example.com', 'Some One Else' ],
],
]));