-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.php
More file actions
185 lines (156 loc) · 5.44 KB
/
Copy pathconfig.php
File metadata and controls
185 lines (156 loc) · 5.44 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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
<?php
define('INSTALLED', true);
$sql_details = array(
'host' => 'localhost',
'db' => 'test',
'user' => 'root',
'pass' => '',
'port' => '3306'
);
/*
* --------------------------------------------------------------------
* GLOBAL CONSTANTS
* --------------------------------------------------------------------
*/
define('FILE_READ_MODE', 0644);
define('FILE_WRITE_MODE', 0666);
define('DIR_READ_MODE', 0755);
define('DIR_WRITE_MODE', 0755);
define('ROOT', __DIR__);
define('ADMINDIRNAME', 'admin');
define('DIR_INCLUDE', ROOT.'/_inc/');
define('DIR_LIBRARY', DIR_INCLUDE.'/lib/');
define('DIR_MODEL', DIR_INCLUDE.'/model/');
define('DIR_VENDOR', DIR_INCLUDE.'/vendor/');
define('DIR_ADMIN', ROOT.'/'.ADMINDIRNAME.'/');
define('DIR_HELPER', ROOT.'/_inc/helper/');
define('DIR_LANGUAGE', ROOT.'/language/');
define('DIR_STORAGE', ROOT.'/storage/');
define('DIR_ASSET', ROOT.'/assets/');
define('DIR_EMAIL_TEMPLATE', DIR_INCLUDE.'template/email/');
define('DIR_BACKUP', DIR_STORAGE.'backups/');
define('DIR_LOG', DIR_STORAGE.'logs/');
/*
* --------------------------------------------------------------------
* OFFLINE-ONLINE SYNCHRONIZATION
* --------------------------------------------------------------------
*
* Toggling Offline Online Synchronization
*
*/
define('SYNCHRONIZATION', true);
define('SYNCSERVERURL', 'https://geoscanix.com/sultanpos/sync.php');
/*
* --------------------------------------------------------------------
* SUB-DIRECTORY
* --------------------------------------------------------------------
*
* This is usefull when you will host the app inside a subdirectory of root
*/
define('SUBDIRECTORY', 'sultanpos');
/*
* --------------------------------------------------------------------
* FILEMANAGER PATH
* --------------------------------------------------------------------
*
* If you use FTP for filemanger then just left it as blank
*/
define('FILEMANAGERPATH', ROOT.'/storage/filemanager/');
/*
* --------------------------------------------------------------------
* FILEMANAGER URL
* --------------------------------------------------------------------
*
* If you use FTP for filemanger then just left it as blank
* Example: https://sultan.com/storage directory
*/
define('FILEMANAGERURL', 'http://localhost/sultanpos/storage/filemanager');
/*
* --------------------------------------------------------------------
* ENABLE/DISABLE HOOKING SYSTEM
* --------------------------------------------------------------------
*/
define('HOOK', 1);
/*
* --------------------------------------------------------------------
* ENABLE/DISABLE LOGGING SYSTEM
*
* to work properly set HOOK as 1
* --------------------------------------------------------------------
*/
define('LOG', 1);
/*
* ----------------------------------------------------------------------------
* SUSPEND USER ACCOUNT FOR A SPECIFIC DURATION, IF LOGIN ATTEMPTS WERE FAILED
*-----------------------------------------------------------------------------
*/
define('TOTAL_LOGIN_TRY', 10);
/*
* --------------------------------------------------------------------
* IF ACCOUNT IS LOCKED, UNLOCK AFTER THE SPECIFIED TIME (MINUTES)
*---------------------------------------------------------------------
*/
define('UNLOCK_ACCOUNT_AFTER', 10);
/*
* --------------------------------------------------------------------
* INSTALLMENT SELLING
* --------------------------------------------------------------------
*
*/
define('INSTALLMENT', true);
/*
* --------------------------------------------------------------------
* MULTISTORE SELLING
* --------------------------------------------------------------------
*
*/
define('MULTISTORE', false);
/*
* --------------------------------------------------------------------
* ALLOWED THESE IPs ONLY, IF EMPTY THEN ALLOWES ALL IPs
* --------------------------------------------------------------------
*/
define('DENIED_IPS', array());
/*
* --------------------------------------------------------------------
* DENIED THESE IPs TO ACCESS THE SYSTEM
* --------------------------------------------------------------------
*/
define('ALLOWED_ONLY_IPS', array());
/*
* --------------------------------------------------------------------
* INVOICE PREFIXES
* --------------------------------------------------------------------
*/
$invoice_init_prefix = array(
'purchase' => 'P',
'due_paid' => 'F',
'expense' => 'E',
'withdraw' => 'W',
'deposit' => 'D',
);
/*
* --------------------------------------------------------------------
* ENABLE/DISABLE DEMO
* --------------------------------------------------------------------
*
* DEMO should always be set to false for production
* To restrict the instillation as demo set DEMO to true
*/
define('DEMO', false);
/*
* --------------------------------------------------------------------
* USE COMPILED ASSETS
* --------------------------------------------------------------------
*
* If true then system will use compileted assets, i.e. minified/combined js, css and images
*/
define('USECOMPILEDASSET', true);
/*
* --------------------------------------------------------------------
* Right to Left (RTL) Toggling V3.3.22.03.2021
* --------------------------------------------------------------------
*
* If true then system will use compileted assets, i.e. minified/combined js, css and images
*/
define('RTL', false);