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