· 6 years ago · Apr 27, 2019, 06:22 PM
1<?php
2
3/**#@+
4 * Application Settings
5 *
6 * This section includes settings for Database connectivity, base url, email config, and more.
7 * These settings are MANDATORY. If they are not configured properly OpenCAD will not function correctly.
8 * When you save this file, rename it to 'oc-config.php', as it will not work as it is.
9 * When editing configuration constants be sure to only edit the contents of the second set of quotes in each.
10 * @since 1.0a RC2
11 **/
12
13/**#@+
14 * Community Name
15 *
16 * This is where you will change the community name to suit your Community.
17 * Only change the variable named 'My Community'
18 *
19 * @since 1.0a RC1
20 **/
21define('COMMUNITY_NAME', 'AllegianceRP');
22
23/**#@+
24 *
25 * Database connection variables
26 * These are viable to the CAD system, and must be correct.
27 * DB_NAME will typically have a subdirectory, such as 'OpenCAD_(database name)'
28 * DB_USER is sometimes different, it can have a subdirectory and sometimes it doesn't. An example would be 'opencad_(username)'
29 * DB_PASSWORD will be your password that you created with the user. This has no subdirectory.
30 * DB_HOST can vary, it can be localhost or '127.0.0.1', if these do not work then please contact our support desk.
31 *
32 * @since 1.0a RC1
33 *
34 **/
35define('DB_NAME', 'vortexon_allegianceRP');
36define('DB_USER', 'Cadtest');
37define('DB_PASSWORD', 'gavin092003');
38define('DB_HOST', '127.0.0.1');
39
40/**#@+
41 * Base URL Settings
42 *
43 * BASE_URL - The URL to your installation of OpenCAD inlcuding,
44 * if utilized, it's subdirectory
45 *
46 * Valid Examples include:
47 * //example.com - Root domain, no subdirectory
48 * //subdomain.example.com - subdomain, no subdirectory
49 * //subdomain.example.com/subdir - subdomain with subdirectory
50 * //example.com/subdir - root domain with subdirectory
51 *
52 * The OpenCAD team does not recommend including the trailing / on any of the above examples.
53 * It won't necessarily break anything but just makes reference look strange having
54 * two slashed when it isn't needed.
55 *
56 * @since 1.0a RC1
57 **/
58define('BASE_URL', '//http://allegiancerp.net/');
59
60/**#@+
61 * To & From emails for system generated emails
62 * To be used in a later version for notificaton emails
63 *
64 * @since 1.0a RC2
65 *
66 **/
67define('CAD_FROM_EMAIL', 'cad@community.com');
68define('CAD_FROM_NAME', COMMUNITY_NAME.' CAD');
69define('CAD_TO_EMAIL', 'admins@community.com');
70define('CAD_TO_NAME', COMMUNITY_NAME.' Administrators');
71
72/**#@+
73 * Authentication Unique Keys and Salts.
74 *
75 * Change these to different unique phrases!
76 * You can generate these using the {@link WordPress.org secret-key service}
77 * You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again.
78 *
79 * UTILIZIATION TO BE IMPLEMENTED
80 *
81 * @since 1.0a RC2
82 *
83 * These do nothing so far, we are working on this.
84 **/
85define('AUTH_KEY', 'put your unique phrase here');
86define('SECURE_AUTH_KEY', 'put your unique phrase here');
87define('LOGGED_IN_KEY', 'put your unique phrase here');
88define('NONCE_KEY', 'put your unique phrase here');
89define('AUTH_SALT', 'put your unique phrase here');
90define('SECURE_AUTH_SALT', 'put your unique phrase here');
91define('LOGGED_IN_SALT', 'put your unique phrase here');
92define('NONCE_SALT', 'put your unique phrase here');
93
94/**#@+
95 * Feature Settings
96 *
97 * These settings effect OpenCAD's core functions
98 *
99 * These setting will likely be moved to an *_options table in a future version.
100 *
101 * @since OpenCAD 1804
102 **/
103
104/**#@+
105 * OpenCAD Feature Settings - LEO
106 *
107 * This section controls settings for OpenCAD's core features for LEO
108 *
109 * These setting will likely be moved to an *_options table in a future version.
110 *
111 * @since OpenCAD 0.2.3
112 **/
113
114 /**#@+
115 * POLICE_NCIC
116 *
117 * Shows or hides NCIC functionality on MDT console.
118 * If 'true' then LEO will be able to use NCIC functions without the need for
119 * a dispatcher, else if 'false' then LEO will require the presence of
120 * dispatcher to use the NCIC function.
121 *
122 * These settings will likely be moved to an *_options table in a future version.
123 *
124 * @since OpenCAD 1804
125 **/
126define('POLICE_NCIC', true);
127
128/**#@+
129 * POLICE_CALL_SELFASSIGN
130 *
131 * Enables or disables the Self Assign functionality on the MDT console for Police.
132 * If 'true', then it enables the self assign function , if 'false', then the self assign function will be disabled.
133 * These settings will likely be moved to a *_options table in a future version
134 *
135 * since OpenCAD Version 0.2.6
136 **/
137define('POLICE_CALL_SELFASSIGN', false);
138
139
140/**#@+
141 * OpenCAD Feature Settings - Fire
142 *
143 * This section controls settings for OpenCAD's core features for Fire
144 *
145 * These setting will likely be moved to an *_options table in a future version.
146 *
147 * @since OpenCAD version 0.2.3
148 **/
149
150 /**#@+
151 * FIRE_PANIC
152 *
153 * Shows or hides Panic functionality on MDT console for Fire
154 * If 'true' then Fire personnel will be able to use the Panic button,
155 * else if 'false' then Fire personnel will not be able to use the Panic button.
156 *
157 * These settings will likely be moved to an *_options table in a future version.
158 *
159 * @since OpenCAD version 0.2.3
160 **/
161 define('FIRE_PANIC', false);
162
163
164 /**#@+
165 * FIRE_BOLO
166 *
167 * Shows or Hides BOLO functionality on MDT console for Fire
168 * If 'true' then Fire personnel will be able to view the BOLO board,
169 * if 'false' then Fire personnel will not be able to view the BOLO board
170 *.
171 * These settings will likely be moved to an *_options table in a future version.
172 *
173 * @since OpenCAD version 0.2.3
174 **/
175 define('FIRE_BOLO', false);
176
177/**#@+
178 * FIRE_NCIC_NAME
179 *
180 * Shows or hides NCIC name functionality on MDT console for Fire
181 * If 'true' then Fire personnel will be able to use the NCIC name name lookup,
182 * else if 'false' then Fire personnel will not be able to use
183 * NCIC name lookup.
184 *
185 * These settings will likely be moved to an *_options table in a future version.
186 *
187 * @since OpenCAD version 0.2.3
188 **/
189 define('FIRE_NCIC_NAME', false);
190
191/**#@+
192 * FIRE_NCIC_PLATE
193 *
194 * Shows or hides NCIC plate functionality on MDT console for Fire
195 * If 'true' then Fire personnel will be able to use the NCIC plate lookup
196 * function, if 'false' then Fire personnel will not be
197 * able to use the NCIC plate look-up function.
198 *
199 * These settings will likely be moved to an *_options table in a future version.
200 *
201 * @since OpenCAD version 0.2.3
202 **/
203 define('FIRE_NCIC_PLATE', false);
204
205 /**#@+
206 * FIRE_CALL_SELFASSIGN
207 *
208 * Enables or disables the Self Assign functionality on the MDT console for the Fire Department.
209 * If 'true', then it enables the self assign function , if 'false', then the self assign function will be disabled.
210 * These settings will likely be moved to a *_options table in a future version
211 *
212 * since OpenCAD Version 0.2.6
213 **/
214define('FIRE_CALL_SELFASSIGN', false);
215
216/**#@+
217 * OpenCAD Feature Settings - EMS
218 *
219 * This section controls settings for OpenCAD's core features for EMS
220 *
221 * These setting will likely be moved to an *_options table in a future version.
222 *
223 * @since OpenCAD version 0.2.3
224 **/
225
226/**#@+
227 * EMS_PANIC
228 *
229 * Shows or hides Panic functionality on MDT console for EMS
230 * If 'true' then EMS personnel will be able to use the Panic button,
231 * else if 'false' then EMS personnel will not be able to use the Panic button.
232 * These settings will likely be moved to an *_options table in a future version.
233 *
234 * @since OpenCAD version 0.2.3
235 **/
236 define('EMS_PANIC', false);
237
238/**#@+
239 * EMS_BOLO
240 *
241 * Shows or hides BOLO functionality on MDT console for EMS
242 * If 'true' then EMS personnel will be able to view the BOLO board.
243 * else if 'false' then EMS personnel will not be able to view the BOLO board.
244 * These settings will likely be moved to an *_options table in a future version.
245 *
246 * @since OpenCAD version 0.2.3
247 **/
248 define('EMS_BOLO', false);
249
250
251/**#@+
252 * EMS_NCIC_NAME
253 *
254 * Shows or hides NCIC name functionality on MDT console for EMS
255 * If 'true' then EMS personnel will be able to use the NCIC name lookup
256 * funcion, else if 'false' then EMS personnel will not be
257 * to use the NCIC name lookup function.
258 *
259 * These settings will likely be moved to an *_options table in a future version.
260 *
261 * @since OpenCAD version 0.2.3
262 **/
263 define('EMS_NCIC_NAME', false);
264
265/**#@+
266 * EMS_NCIC_PLATE
267 *
268 * Shows or hides NCIC plate functionality on MDT console for EMS
269 * If 'true' then EMS personnel will be able to use the NCIC plate function,
270 * else if 'false' then EMS personnel will not be able to use the NCIC plate function.
271 * These settings will likely be moved to an *_options table in a future version.
272 *
273 * @since OpenCAD version 0.2.3
274 **/
275 define('EMS_NCIC_PLATE', false);
276
277 /**#@+
278 * EMS_CALL_SELFASSIGN
279 *
280 * Enables or disables the Self Assign functionality on the MDT console for EMS.
281 * If 'true', then it enables the self assign function , if 'false', then the self assign function will be disabled.
282 * These settings will likely be moved to a *_options table in a future version
283 *
284 * since OpenCAD Version 0.2.6
285 **/
286define('EMS_CALL_SELFASSIGN', false);
287
288
289/**#@+
290 * OpenCAD Feature Settings - Roadside Assistance / Tow
291 *
292 * This section controls settings for OpenCAD's core features for Roadside Assistance
293 * These setting will likely be moved to an *_options table in a future version.
294 *
295 * @since OpenCAD version 0.2.3
296 **/
297
298/**#@+
299 * ROADSIDE_PANIC
300 *
301 * Shows or hides the Panic functionality on MDT console for Roadside Assistance
302 * If 'true' then Roadside Assistance Operator will be able to use the Panic button,
303 * else if 'false' then the roadside assistance operator will not be able to use the Panic button.
304 * These settings will likely be moved to an *_options table in a future version.
305 *
306 * @since OpenCAD version 0.2.3
307 **/
308define('ROADSIDE_PANIC', false);
309
310/**#@+
311 * ROADSIDE_BOLO
312 *
313 * Shows or hides the BOLO functionality on MDT console for Roadside Assistance
314 * If 'true' then a Roadside Assitance Operator will be able to use the BOLO function,
315 * if 'false' then the Roadside Assistance Operator will not be able to use the BOLO function.
316 * These settings will likely be moved to an *_options table in a future version.
317 *
318 * @since OpenCAD version 0.2.3
319 **/
320define('ROADSIDE_BOLO', false);
321
322/**#@+
323 * ROADSIDE_NCIC_NAME
324 *
325 * Shows or hides NCIC Name functionality on MDT console for Roadside Assistance
326 * If 'true' then the Roadside Assistance Operator will be able to use NCIC name query without the need for
327 * a dispatcher, if 'false' then the Roadside Assistance Operator will require the presence of
328 * dispatcher to use NCIC name query functions.
329 * These settings will likely be moved to an *_options table in a future version.
330 *
331 * @since OpenCAD version 0.2.3
332 **/
333define('ROADSIDE_NCIC_NAME', false);
334
335/**#@+
336 * ROADSIDE_NCIC_PLATE
337 *
338 * Shows or hides NCIC Plate functionality on MDT console for Roadside Assistance
339 * If 'true' then Roadside Assistance Operators will be able to use NCIC plate query without the need for
340 * a dispatcher, else if 'false' then the Roadside Assistance Operators will require the presence of
341 * dispatcher to use NCIC plate query funcationality.
342 * These settings will likely be moved to an *_options table in a future version.
343 *
344 * @since OpenCAD version 0.2.3
345 **/
346define('ROADSIDE_NCIC_PLATE', false);
347
348/**#@+
349 * ROADSIDE_CALL_SELFASSIGN
350 *
351 * Enables or disables the Self Assign functionality on the MDT console for Roadside Assistance.
352 * If 'true', then it enables the self assign function , if 'false', then the self assign function will be disabled.
353 * These settings will likely be moved to a *_options table in a future version
354 *
355 * since OpenCAD Version 0.2.6
356 **/
357define('ROADSIDE_CALL_SELFASSIGN', false);
358
359/**#@+
360 * OpenCAD Feature Settings - Civilian
361 *
362 * This section controls settings for OpenCAD's core features for Civilian.
363 *
364 * These setting will likely be moved to an *_options table in a future version.
365 *
366 * @since OpenCAD 0.2.4
367 **/
368
369/**#@+
370 * CIV_WARRANT
371 *
372 * Allow/Disallow Civilians from managing their warrants. If set to 'true'
373 * then Civs will be able to delete warrants from their profile, else if set
374 * to 'false' then Civs will not have the ability to remove warrants.
375 * These settings will likely be moved to an *_options table in a future version.
376 *
377 * @since OpenCAD 1803
378 **/
379define('CIV_WARRANT', true);
380
381/**#@+
382 * CIV_REG
383 *
384 * Allow/Disallow direct registration for Civillians.
385 * If set to 'true' then civillians will not require admin approval, esle if
386 * set to 'false' then Civillian registartion will require Admin approval.
387 * Allow/Disallow immediate regitration for civilians.
388 * If 'true' then civilian registartion will require Administrator approval
389 * else if 'false' then civilian registrations will NOT require
390 * Administrator approval.
391 * These settings will likely be moved to an *_options table in a future version.
392 *
393 * @since OpenCAD 1803
394 **/
395define('CIV_REG', true);
396
397/**#@+
398 * Administrative Settings
399 *
400 * These setting will likely be moved to an *_options table in a future version.
401 *
402 * @since OpenCAD 0.2.3
403 **/
404
405/**#@+
406 * Moderator Settings - Approve User
407 *
408 * If 'true' then Moderators will be able to approve new user requests
409 * else, if 'false' then Moderators will not be able to approve new
410 * user requests.
411 *
412 * These setting will likely be moved to an *_options table in a future version.
413 *
414 * @since OpenCAD version 0.2.3
415 **/
416define('MODERATOR_APPROVE_USER', true);
417
418/**#@+
419 * Moderator Settings - Edit User
420 *
421 * If 'true' then Moderators will be able to edit users,
422 * if 'false' then Moderators will not be able to edit users.
423 *
424 * These setting will likely be moved to an *_options table in a future version.
425 *
426 * @since OpenCAD version 0.2.3
427 **/
428define('MODERATOR_EDIT_USER', true);
429
430/**#@+
431 * Moderator Settings - Suspend With Reason
432 *
433 * If 'true' then Moderators will be able Suspend users with a reason,
434 *if 'false' Moderators will not be able to do so.
435 *
436 * These setting will likely be moved to an *_options table in a future version.
437 *
438 * @since OpenCAD version 0.2.3
439 **/
440define('MODERATOR_SUSPEND_WITH_REASON', true);
441
442/**#@+
443 * Moderator Settings - Approve User
444 *
445 * If 'true' then Moderators will be able Suspend users without a reason,
446 * if 'false' Moderators will not be able to do so.
447 *
448 * These setting will likely be moved to an *_options table in a future version.
449 *
450 * @since OpenCAD version 0.2.3
451 **/
452define('MODERATOR_SUSPEND_WITHOUT_REASON', true);
453
454/**#@+
455 * Moderator Settings - Reactivate User
456 *
457 * If 'true' then Moderators will be able to ractvate users else,
458 * if 'false' Moderators will not be able to reactivate users.
459 *
460 * These setting will likely be moved to an *_options table in a future version.
461 *
462 * @since OpenCAD version 0.2.3
463 **/
464define('MODERATOR_REACTIVATE_USER', true);
465
466/**#@+
467 * Moderator Settings - Remove Group
468 *
469 * If 'true' then Moderators will be able to ractvate users else,
470 * if 'false' Moderators will not be able to reactivate users.
471 *
472 * These setting will likely be moved to an *_options table in a future version.
473 *
474 * @since OpenCAD version 0.2.3
475 **/
476define('MODERATOR_REMOVE_GROUP', true);
477
478/**#@+
479 * Moderator Settings - Delete User
480 *
481 * If 'true' then Moderators will be able to delete users,
482 * if 'false' Moderators will not be able to delete users.
483 *
484 * These setting will likely be moved to an *_options table in a future version.
485 *
486 * @since OpenCAD version 0.2.3
487 **/
488define('MODERATOR_DELETE_USER', true);
489
490/**#@+
491 * Moderator Settings - NCIC Editor
492 *
493 * If 'true' then Moderators will be able to access the NCIC editor,
494 * if 'false' Moderators will not be able to access the NCCIC editor.
495 *
496 * These setting will likely be moved to an *_options table in a future version.
497 *
498 * @since OpenCAD version 0.2.3
499 **/
500define('MODERATOR_NCIC_EDITOR', true);
501
502/**#@+
503 * Extra Settings
504 *
505 * These setting will likely be moved to an *_options table in a future version.
506 *
507 * @since OpenCAD version 0.2.3
508 **/
509
510/**#@+
511 * Demo Mode
512 *
513 * If 'true' then various user management features of OpenCAD will be
514 * locked down, else if 'false' then OpenCAD's full functionality
515 * will be available to use.
516 *
517 * it will use the default generic avatar image included with OpenCAD .
518 *
519 * These setting will likely be moved to an *_options table in a future version.
520 *
521 * @since OpenCAD version 0.2.3
522 **/
523define('DEMO_MODE', false);
524
525
526/**#@+
527 * Gravatar Fetch
528 *
529 * OpenCAD will dynamically retrieve your avatar from {@link Gravatar http://en.gravatar.com/} if you have an account. Otherwise
530 * it will use the default generic avatar image included with OpenCAD .
531 *
532 * These setting will likely be moved to an *_options table in a future version.
533 *
534 * @since 1.0a RC1
535 **/
536
537define('USE_GRAVATAR', true);
538
539/** That's all, stop editing! Happy roleplaying. **/
540/** Absolute path to the OpenCAD directory. **/
541if ( !defined('ABSPATH') )
542 define('ABSPATH', dirname(__FILE__) . '/');
543
544include ABSPATH . "oc-functions.php";
545?>