-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathexponent_constants.php
678 lines (615 loc) · 22.9 KB
/
exponent_constants.php
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
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
<?php
##################################################
#
# Copyright (c) 2004-2025 OIC Group, Inc.
#
# This file is part of Exponent
#
# Exponent is free software; you can redistribute
# it and/or modify it under the terms of the GNU
# General Public License as published by the Free
# Software Foundation; either version 2 of the
# License, or (at your option) any later version.
#
# GPL: http://www.gnu.org/licenses/gpl.txt
#
##################################################
if (!defined('USE_CDN')) {
// set USE_CDN to 1 to use CDN scripts instead of local scripts
define("USE_CDN",'1');
}
/**
* BASE Constant
*
* The BASE constant is the absolute path on the server filesystem, from the root (/ or C:\)
* to the Exponent directory.
*/
if (!defined('BASE')) {
define('BASE', __realpath(__DIR__) . '/');
}
/**
* PATH_RELATIVE Constant
*
* The PATH_RELATIVE constant is the web path to the Exponent directory,
* from the web root. It is related to the BASE constant, but different.
*/
if (!defined('PATH_RELATIVE')) {
if (isset($_SERVER['DOCUMENT_ROOT'])) {
define('PATH_RELATIVE', str_replace(__realpath($_SERVER['DOCUMENT_ROOT']), '', BASE));
} else {
// FIXME: PATH_RELATIVE definition will break in certain parts when the server does not offer the Document_root.
// FIXME: Notable, it breaks in the installer.
// This triggers on IIS, which has no DOCUMENT_ROOT.
define('PATH_RELATIVE', __realpath(dirname($_SERVER['SCRIPT_NAME']) . '/'));
}
}
/**
* HOSTNAME Constant
*
* The HOSTNAME constant is the host name, from the web server.
*/
if (!defined('HOSTNAME')) {
if (isset($_SERVER['HTTP_HOST'])) {
define('HOSTNAME', $_SERVER['HTTP_HOST']);
} elseif (isset($_SERVER['SERVER_NAME'])) {
define('HOSTNAME', $_SERVER['SERVER_NAME']);
} else {
define('HOSTNAME', '');
}
}
/**
* URL_BASE Constant
*
* The URL_BASE constant is the base URL of the domain hosting the Exponent site.
* It does not include the PATH_RELATIVE information. The automatic
* detection code can figure out if the server is running in SSL mode or not
*/
if (!defined('URL_BASE')) {
define('URL_BASE', (((!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') || $_SERVER['SERVER_PORT'] == 443) ? 'https://' : 'http://') . HOSTNAME);
}
/**
* URL_BASE_SECURE Constant
*
* The URL_BASE_SECURE constant is the secure base URL of the domain hosting the Exponent site.
* It does not include the PATH_RELATIVE information.
*/
if (!defined('URL_BASE_SECURE')) {
define('URL_BASE_SECURE', 'https://' . HOSTNAME);
}
/**
* URL_FULL Constant
*
* The URL_FULL constant is the full URL path to the Exponent directory. The automatic
* detection code can figure out if the server is running in SSL mode or not.
*/
if (!defined('URL_FULL')) {
define('URL_FULL', URL_BASE . PATH_RELATIVE);
}
/**
* UPLOAD_DIRECTORY Constant
*
* This is the directory where file uploads will go
*/
if (!defined('UPLOAD_DIRECTORY')) {
define('UPLOAD_DIRECTORY', BASE . 'files/');
}
/**
* UPLOAD_DIRECTORY Constant
*
* This is the directory where file uploads will go
*/
if (!defined('UPLOAD_DIRECTORY_RELATIVE')) {
define('UPLOAD_DIRECTORY_RELATIVE', 'files/');
}
// iconset base
if (!defined('ICON_RELATIVE')) {
define('ICON_RELATIVE', PATH_RELATIVE . 'framework/core/assets/images/');
}
if (!defined('MIMEICON_RELATIVE')) {
define('MIMEICON_RELATIVE', PATH_RELATIVE . 'framework/core/assets/images/mimetypes/');
}
if (defined('SCRIPT_EXP_RELATIVE')) {
define('SCRIPT_RELATIVE', PATH_RELATIVE . SCRIPT_EXP_RELATIVE);
define('SCRIPT_ABSOLUTE', BASE . SCRIPT_EXP_RELATIVE);
} else {
ob_start();
define('SCRIPT_RELATIVE', PATH_RELATIVE);
define('SCRIPT_ABSOLUTE', BASE);
}
if (!defined('SCRIPT_FILENAME')) {
define('SCRIPT_FILENAME', 'index.php');
}
/** exdoc
* Filesystem Error Response: Success
*
* @node Subsystems:Files
*/
define('SYS_FILES_SUCCESS', 0);
/** exdoc
* Filesystem Error Response: Found File at Destination
*
* @node Subsystems:Files
*/
define('SYS_FILES_FOUNDFILE', 1);
/** exdoc
* Filesystem Error Response: Found Directory at Destination
*
* @node Subsystems:Files
*/
define('SYS_FILES_FOUNDDIR', 2);
/** exdoc
* Filesystem Error Response: Destination not writable
*
* @node Subsystems:Files
*/
define('SYS_FILES_NOTWRITABLE', 3);
/** exdoc
* Filesystem Error Response: Destination not readable
*
* @node Subsystems:Files
*/
define('SYS_FILES_NOTREADABLE', 4);
/** exdoc
* Filesystem Error Response: Destination not deletable
* @node Subsystems:Files
*/
define('SYS_FILES_NOTDELETABLE', 5);
/** exdoc
* The EQL header string for object dump file formats.
* This header defines the version of EQL native to
* the current implementation of the Backup Subsystem.
*
* @node Subsystems:Backup
*/
define('EQL_HEADER', 'EQL-Exponent Query Language');
/** exdoc
* UI Level of Preview - No management links of any kind should be shown.
*
* @node Subsystems:Permissions
*/
define('UILEVEL_PREVIEW', 0);
/** exdoc
* UI Level of Normal - Only normal management links (edit, delete, etc.) should be shown.
*
* @node Subsystems:Permissions
*/
define('UILEVEL_NORMAL', 1);
/** exdoc
* UI Level of Permissions - Permission Management links (user and group perms) should be shown.
*
* @node Subsystems:Permissions
*/
define('UILEVEL_PERMISSIONS', 2);
/** exdoc
* UI Level of Structure - All management links are shown.
*
* @node Subsystems:Permissions
*/
define('UILEVEL_STRUCTURE', 3);
define('DATABASE_TABLE_EXISTED', 1);
define('DATABASE_TABLE_INSTALLED', 2);
define('DATABASE_TABLE_FAILED', 3);
define('DATABASE_TABLE_ALTERED', 4);
/**
* Database Field Type specifier
* An index for the Exponent Data Definition Language.
* This index indicates what type of column should be created
* in the table.
*/
define('DB_FIELD_TYPE', 0);
/**
* Database Field Length specifier
* An index for the Exponent Data Definition Language.
* This index indicates the length of the column. Currently,
* this is only applicable to textual field types.
*/
define('DB_FIELD_LEN', 1);
/**
* Database Field Default specifier
* An index for the Exponent Data Definition Language.
* This index indicates the default value of a field in the table.
*/
define('DB_DEFAULT', 2);
/**
* Database 'Incremental Field' specifier
* An index for the Exponent Data Definition Language.
* This index specifies that the field should automatically
* increment its value. This is ONLY applicable to ID fields
* that are marked as PRIMARY.
*
* @see DB_PRIMARY
* @see DB_DEF_ID
*/
define('DB_INCREMENT', 3);
/**
* Database 'Not Null' Field specifier
* Fields are set to allow NULL unless this is set.
*/
define('DB_NOTNULL', 4);
/**
* Database 'Primary Key' Field specifier
* An index for the Exponent Data Definition Language.
* This single unique index specifies that the field should be treated as
* the single primary key for the table. There can one or more fields
* marked as 'primary' to establish a composite primary key in the table.
*
* @see DB_DEF_ID
* @see DB_INCREMENT
*/
define('DB_PRIMARY', 5);
/**
* Database 'Unique Key' Field specifier
* An index for the Exponent Data Definition Language.
* This index specifies that the field should be treated as a
* unique key for the table. There can zero or multiple unique keys
* using single or multiple (composite) fields per table.
*/
define('DB_UNIQUE', 6);
/**
* Database 'Index' Field specifier
* An index or key for the Exponent Data Definition Language.
* This index specifies that the field should be treated as a
* key for the table for more efficient lookups. There can be
* multiple key fields per table but they will NOT be composite keys.
*/
define('DB_INDEX', 7); // note will hold index prefix length for string type fields
/**
* Database 'Full Text' Index Field specifier
* An index for the Exponent Data Definition Language.
* This index specifies that the field should be treated as a
* key for the table where full text searches will be performed.
* There is only one (composite) Full Text index per table.
*/
define('DB_FULLTEXT', 8);
/**
* ??????
*/
//define('DB_DEF_IGNORE', 100);
/**
* Field Type specifier: Numeric ID
* A value for the Exponent Data Definition Language.
* This value, specified for the DB_FIELD_TYPE index,
* denotes that the field should be a numeric ID.
*/
define('DB_DEF_ID', 101);
/**
* Field Type specifier: Text
* A value for the Exponent Data Definition Language.
* This value, specified for the DB_FIELD_TYPE index,
* denotes that the field should be a string of characters.
* If used, the DB_FIELD_LEN index must also be specified.
*
* @see DB_FIELD_TYPE
* @see DB_FIELD_LEN
*/
define('DB_DEF_STRING', 102);
/**
* Field Type specifier: Integer
* A value for the Exponent Data Definition Language.
* This value, specified for the DB_FIELD_TYPE index,
* denotes that the field should be an integer.
*/
define('DB_DEF_INTEGER', 103);
/**
* Field Type specifier: Boolean
* A value for the Exponent Data Definition Language.
* This value, specified for the DB_FIELD_TYPE index,
* denotes that the field should be a boolean (1 or 0, true or
* false).
*/
define('DB_DEF_BOOLEAN', 104);
/**
* Field Type specifier: Timestamp
* A value for the Exponent Data Definition Language.
* This value, specified for the DB_FIELD_TYPE index,
* denotes that the field should store a UNIX timestamp,
* in order to portably manage dates and/or times.
*/
define('DB_DEF_TIMESTAMP', 105);
/**
* Field Type specifier: Decimal
* A value for the Exponent Data Definition Language.
* This value, specified for the DB_FIELD_TYPE index,
* denotes that the field should store a decimal number.
*/
define('DB_DEF_DECIMAL', 106);
/**
* Field Type specifier: Datetime
* A value for the Exponent Data Definition Language.
* This value, specified for the DB_FIELD_TYPE index,
* denotes that the field should store a MySQL datetime,
* in order to portably manage dates and/or times.
*/
define('DB_DEF_DATETIME', 107);
/**
* Table Alteration Error Message - 200 : Alter Not Needed
* A message constant returned by parts of the Database Subsystem
* indicating that a table alteration need not take place.
*/
define('TABLE_ALTER_NOT_NEEDED', 200);
/**
* Table Alteration Error Message - 201 : Alter Succeeded
* A message constant returned by parts of the Database Subsystem
* indicating that a table alteration succeeded.
*/
define('TABLE_ALTER_SUCCEEDED', 201);
/**
* Table Alteration Error Message - 201 : Alter Succeeded
* A message constant returned by parts of the Database Subsystem
* indicating that a table alteration failed.
*/
define('TABLE_ALTER_FAILED', 202);
/**
* Table Meta Info : Table Comment
* If specified in a table info array, a comment will be inserted
* for the table (if the database engine in use supports table comments)
*/
define('DB_TABLE_COMMENT', 301);
/**
* Table Meta Info : Table Engine
* If specified in a table will be created or altered to this db engine
*/
define('DB_TABLE_ENGINE', 302);
/**
* Form Meta Info : Form Field Type
* This will specify what field type to use for a form. Handy for scaffolding
* when you have special needs for the form's input elements.
*/
define('FORM_FIELD_TYPE', 400);
define('FORM_FIELD_FILTER', 401);
define('FORM_FIELD_ONCLICK', 402);
define('FORM_FIELD_NAME', 403);
define('FORM_FIELD_LABEL', 404);
define('DECIMAL_MONEY', 405);
define('MONEY', 406);
/**
* External Calendar Type
* This will specify what type of external calendar feed is referenced
*/
define('ICAL_TYPE', 1);
define('GOOGLE_TYPE', 2);
if (!defined('TEMPLATE_FALLBACK_VIEW')) {
define('TEMPLATE_FALLBACK_VIEW', BASE . 'framework/core/views/viewnotfound.tpl');
}
// Determines platform (OS), browser and version of the user
// Based on a phpBuilder article:
// see http://www.phpbuilder.net/columns/tim20000821.php
if (empty($_SERVER['HTTP_USER_AGENT'])) {
$_SERVER['HTTP_USER_AGENT'] = '';
}
if (!defined('EXPONENT_USER_OS')) {
// 1. Platform
if (stripos($_SERVER['HTTP_USER_AGENT'], 'win') !== false) {
define('EXPONENT_USER_OS', 'Win');
} elseif (stripos($_SERVER['HTTP_USER_AGENT'], 'mac') !== false) {
define('EXPONENT_USER_OS', 'Mac');
} elseif (stripos($_SERVER['HTTP_USER_AGENT'], 'linux') !== false) {
define('EXPONENT_USER_OS', 'Linux');
} elseif (stripos($_SERVER['HTTP_USER_AGENT'], 'unix') !== false) {
define('EXPONENT_USER_OS', 'Unix');
} elseif (stripos($_SERVER['HTTP_USER_AGENT'], 'os/2') !== false) {
define('EXPONENT_USER_OS', 'OS/2');
} elseif (stripos($_SERVER['HTTP_USER_AGENT'], 'iphone') !== false) {
define('EXPONENT_USER_OS', 'iPhone');
} elseif (stripos($_SERVER['HTTP_USER_AGENT'], 'ipad') !== false) {
define('EXPONENT_USER_OS', 'iPad');
} elseif (stripos($_SERVER['HTTP_USER_AGENT'], 'android') !== false) {
define('EXPONENT_USER_OS', 'Android');
} elseif (stripos($_SERVER['HTTP_USER_AGENT'], 'webos') !== false) {
define('EXPONENT_USER_OS', 'Mobile');
} else {
define('EXPONENT_USER_OS', 'Other');
}
}
if (!defined('EXPONENT_USER_BROWSER')) {
// 2. browser and version
// (must check everything else before Mozilla)
$log_version = array();
if (preg_match('@Opera(/| )([0-9].[0-9]{1,2})@', $_SERVER['HTTP_USER_AGENT'], $log_version)) {
define('EXPONENT_USER_BROWSER_VERSION', $log_version[2]);
define('EXPONENT_USER_BROWSER', 'OPERA');
} elseif (preg_match('@MSIE ([0-9].[0-9]{1,2})@', $_SERVER['HTTP_USER_AGENT'], $log_version)) {
define('EXPONENT_USER_BROWSER_VERSION', $log_version[1]);
define('EXPONENT_USER_BROWSER', 'IE');
} elseif (preg_match('@OmniWeb/([0-9].[0-9]{1,2})@', $_SERVER['HTTP_USER_AGENT'], $log_version)) {
define('EXPONENT_USER_BROWSER_VERSION', $log_version[1]);
define('EXPONENT_USER_BROWSER', 'OMNIWEB');
} elseif (preg_match('@(Konqueror/)(.*)(;)@', $_SERVER['HTTP_USER_AGENT'], $log_version)) {
define('EXPONENT_USER_BROWSER_VERSION', $log_version[2]);
define('EXPONENT_USER_BROWSER', 'KONQUEROR');
} elseif (preg_match('@Mozilla/([0-9].[0-9]{1,2})@', $_SERVER['HTTP_USER_AGENT'], $log_version)
&& preg_match('@Safari/([0-9]*)@', $_SERVER['HTTP_USER_AGENT'], $log_version2)
&& preg_match('@Chrome/([0-9]*)@', $_SERVER['HTTP_USER_AGENT'], $log_version3)
) {
define('EXPONENT_USER_BROWSER_VERSION', $log_version[1] . '.' . $log_version2[1] . '.' . $log_version3[1]);
define('EXPONENT_USER_BROWSER', 'CHROME');
} elseif (preg_match('@Mozilla/([0-9].[0-9]{1,2})@', $_SERVER['HTTP_USER_AGENT'], $log_version)
&& preg_match('@Safari/([0-9]*)@', $_SERVER['HTTP_USER_AGENT'], $log_version2)
) {
define('EXPONENT_USER_BROWSER_VERSION', $log_version[1] . '.' . $log_version2[1]);
define('EXPONENT_USER_BROWSER', 'SAFARI');
} elseif (preg_match('@Mozilla/([0-9].[0-9]{1,2})@', $_SERVER['HTTP_USER_AGENT'], $log_version)) {
define('EXPONENT_USER_BROWSER_VERSION', $log_version[1]);
define('EXPONENT_USER_BROWSER', 'MOZILLA');
} else {
define('EXPONENT_USER_BROWSER_VERSION', 0);
define('EXPONENT_USER_BROWSER', 'OTHER');
}
}
if (!defined('JS_RELATIVE')) {
/** exdoc
* The relative path to Exponent's core javascript.
*/
define('JS_RELATIVE', PATH_RELATIVE . 'framework/core/assets/js/');
/** exdoc
* The absolute url to Exponent's core javascript.
*/
define('JS_URL', URL_FULL . 'framework/core/assets/js/');
}
/**
* YUI 3 Version Constants
* Changing the version here lets Exponent adjust where to look
*/
if (!defined('YUI3_RELATIVE')) {
define('YUI3_VERSION', '3.18.1');
if (USE_CDN) {
define('YUI3_RELATIVE', 'https://cdnjs.cloudflare.com/ajax/libs/yui/' . YUI3_VERSION . '/');
define('YUI3_URL', 'https://cdnjs.cloudflare.com/ajax/libs/yui/' . YUI3_VERSION . '/');
} else {
define('YUI3_RELATIVE', PATH_RELATIVE . 'external/yui/' . YUI3_VERSION . '/build/');
define('YUI3_URL', URL_FULL . 'external/yui/' . YUI3_VERSION . '/build/');
}
}
/**
* YUI 2 Version Constants
* Changing the version here lets Exponent adjust where to look
*/
if (!defined('YUI2_RELATIVE')) {
define('YUI2_VERSION', '2.9.0');
define('YUI2_RELATIVE', PATH_RELATIVE . 'external/yui/2in3/dist/' . YUI2_VERSION . '/build/');
define('YUI2_URL', URL_FULL . 'external/yui/2in3/dist/' . YUI2_VERSION . '/build/');
}
/**
* jQuery/jQueryUI Version Constants
* Changing the version here lets Exponent adjust where to look
*/
if (!defined('JQUERY_RELATIVE')) {
define('JQUERY_VERSION', '1.12.4');
define('JQUERY2_VERSION', '2.2.4');
define('JQUERY3_VERSION', '3.7.1');
define('JQUERY3_MIGRATE_VERSION', '3.5.2');
define('JQUERYUI_VERSION', '1.14.1');
define('JQUERY_RELATIVE', PATH_RELATIVE . 'external/jquery/');
define('JQUERY_PATH', BASE . 'external/jquery/');
define('JQUERY_URL', URL_FULL . 'external/jquery/');
if (USE_CDN) {
if (!defined('JQUERY_SCRIPT')) {
define('JQUERY_SCRIPT', 'https://code.jquery.com/jquery-' . JQUERY_VERSION . '.min.js');
} // cdn jQuery v1.x script
if (!defined('JQUERY2_SCRIPT')) {
define('JQUERY2_SCRIPT', 'https://code.jquery.com/jquery-' . JQUERY2_VERSION . '.min.js');
} // cdn jQuery v2.x script
if (!defined('JQUERY3_SCRIPT')) {
define('JQUERY3_SCRIPT', 'https://code.jquery.com/jquery-' . JQUERY3_VERSION . '.min.js');
define('JQUERY3_MIGRATE_SCRIPT', 'https://code.jquery.com/jquery-migrate-' . JQUERY3_MIGRATE_VERSION . '.min.js');
} // cdn jQuery v3.x script
if (!defined('JQUERYUI_SCRIPT')) {
define('JQUERYUI_SCRIPT', 'https://code.jquery.com/ui/' . JQUERYUI_VERSION . '/jquery-ui.min.js');
} // cdn jQueryUI script
} else {
if (!defined('JQUERY_SCRIPT')) {
define('JQUERY_SCRIPT', JQUERY_RELATIVE . 'js/jquery-' . JQUERY_VERSION . '.min.js');
} // local jQuery v1.x script
if (!defined('JQUERY2_SCRIPT')) {
define('JQUERY2_SCRIPT', JQUERY_RELATIVE . 'js/jquery-' . JQUERY2_VERSION . '.min.js');
} // local jQuery v2.x script
if (!defined('JQUERY3_SCRIPT')) {
define('JQUERY3_SCRIPT', JQUERY_RELATIVE . 'js/jquery-' . JQUERY3_VERSION . '.min.js');
define('JQUERY3_MIGRATE_SCRIPT', JQUERY_RELATIVE . 'js/jquery-migrate-' . JQUERY3_MIGRATE_VERSION . '.min.js');
} // local jQuery v3.x script
if (!defined('JQUERYUI_SCRIPT')) {
// define('JQUERYUI_SCRIPT', JQUERY_RELATIVE.'js/jquery-ui-'.JQUERYUI_VERSION.'.custom.min.js');
define('JQUERYUI_SCRIPT', JQUERY_RELATIVE . 'js/jquery-ui.min.js');
} // local jQueryUI script
}
if (!defined('JQUERYUI_THEME')) {
define('JQUERYUI_THEME', 'exponent');
} // jQueryUI theme
if (!defined('JQUERYUI_CSS')) {
define('JQUERYUI_CSS', JQUERY_RELATIVE . 'css/' . JQUERYUI_THEME . '/jquery-ui.min.css');
} // local jQueryUI stylesheet
}
//if (USE_CDN) {
/**
* Twitter Bootstrap CDN links
* Use the entire script tag to include integrity, etc...
*/
if (!defined('BS2_SCRIPT')) {
define('BS2_SCRIPT', '<script src="https://stackpath.bootstrapcdn.com/twitter-bootstrap/2.3.2/js/bootstrap.min.js" integrity="sha384-vOWIrgFbxIPzY09VArRHMsxned7WiY6hzIPtAIIeTFuii9y3Cr6HE6fcHXy5CFhc" crossorigin="anonymous"></script>');
} // cdn Bootstrap v2.x script
if (!defined('BS3_SCRIPT')) {
define('BS3_SCRIPT', '<script src="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha384-aJ21OjlMXNL5UyIl/XNwTMqvzeRMZH2w8c5cRVpzpU8Y5bApTppSuUkhZXN0VxHd" crossorigin="anonymous"></script>');
} // cdn Bootstrap v3.x script
if (!defined('BS4_SCRIPT')) {
define('BS4_SCRIPT', '<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-Fy6S3B9q64WdZWQUiU+q4/2Lc9npb8tCaSX9FK7E8HnRr0Jz8D6OP9dO5Vg3Q9ct" crossorigin="anonymous"></script>');
} // cdn Bootstrap v4.x script
if (!defined('BS5_SCRIPT')) {
define('BS5_SCRIPT', '<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>');
} // cdn Bootstrap v5.x script
/**
* Font-Awesome CDN links
* Use the CDN link
*/
if (!defined('FA4_SCRIPT')) {
define('FA4_SCRIPT', 'https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css');
} // cdn FontAwesome v4.x stylesheet
if (!defined('FA5_SCRIPT')) {
define('FA5_SCRIPT', 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css');
} // cdn FontAwesome v5.x stylesheet
if (!defined('FA6_SCRIPT')) {
define('FA6_SCRIPT', 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css');
} // cdn FontAwesome v6.x stylesheet
//}
/**
* Smarty Version Constants
* Changing the version here lets Exponent adjust where to look
*/
if (!defined('SMARTY_PATH')) {
if (version_compare(PHP_VERSION, '7.1.0', 'lt')) {
define('SMARTY_VERSION', '3.1.27');
} else {
define('SMARTY_VERSION', '4.4.1'); //note smarty v3.1.28+ won't work properly with php < v7.1+
}
define('SMARTY_PATH', BASE . 'external/smarty-' . SMARTY_VERSION . '/libs/');
// define('SMARTY_DEVELOPMENT', false);
}
/**
* Swift Mailer Version Constants
* Changing the version here lets Exponent adjust where to look
*/
if (!defined('SWIFT_PATH')) {
if (version_compare(PHP_VERSION, '7.0.0', 'lt')) {
define('SWIFT_VERSION', '5.4.12');
} else {
define('SWIFT_VERSION', '6.3.0'); //note v6.x requires php v7.x
}
define('SWIFT_PATH', BASE . 'external/swiftmailer-' . SWIFT_VERSION . '/lib/');
/**
* Lexer is needed for Swiftmailer v6
*/
define('LEXER_VERSION', '2.1.0'); // 2.1.1/3.0.1
define('SWIFT_LEXER_PATH', BASE . 'external/lexer-' . LEXER_VERSION . '/src/');
/**
* Deprecations is needed for Lexer v2
*/
define('DEPRECATIONS_VERSION', '1.1.2'); // 1.1.3
define('SWIFT_DEPRECATIONS_PATH', BASE . 'external/deprecations-' . DEPRECATIONS_VERSION . '/lib/Doctrine/Deprecations/');
/**
* EmailValidator is needed for Swiftmailer v6
*/
define('EMAIL_VALIDATOR_VERSION', '3.2.6'); // 4.0.2
define('SWIFT_EMAIL_PATH', BASE . 'external/EmailValidator-' . EMAIL_VALIDATOR_VERSION . '/EmailValidator/');
}
/**
* Optional expHTMLTOPDF Version Constants
* Changing the versions here lets Exponent adjust where to look
*/
if (!defined('MPDF7_VERSION')) {
define('MPDF7_VERSION', '7.1.9');
}
if (!defined('MPDF8_VERSION')) {
define('MPDF8_VERSION', '8.0.17');
}
if (!defined('MPDF81_VERSION')) {
define('MPDF81_VERSION', '8.2.5');
}
if (!defined('DOMPDF8_VERSION')) {
define('DOMPDF8_VERSION', '-1.2.2');
}
if (!defined('DOMPDF2_VERSION')) {
define('DOMPDF2_VERSION', '3.0.1');
}
if (!defined('HTML2PDF5_VERSION')) {
define('HTML2PDF5_VERSION', '5.2.8');
}
?>