Rev 592 | Rev 641 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 592 | Rev 597 | ||
---|---|---|---|
Line 19... | Line 19... | ||
19 | 19 | ||
20 | use MatthiasMullie\Minify; |
20 | use MatthiasMullie\Minify; |
21 | 21 | ||
22 | require_once __DIR__ . '/includes/oidplus.inc.php'; |
22 | require_once __DIR__ . '/includes/oidplus.inc.php'; |
23 | 23 | ||
24 | require_once __DIR__ . '/3p/minify/src/Minify.php'; |
- | |
25 | require_once __DIR__ . '/3p/minify/src/JS.php'; |
- | |
26 | require_once __DIR__ . '/3p/minify/src/Exception.php'; |
- | |
27 | - | ||
28 | error_reporting(OIDplus::baseConfig()->getValue('DEBUG') ? E_ALL : 0); |
24 | error_reporting(OIDplus::baseConfig()->getValue('DEBUG') ? E_ALL : 0); |
29 | @ini_set('display_errors', OIDplus::baseConfig()->getValue('DEBUG') ? '1' : '0'); |
25 | @ini_set('display_errors', OIDplus::baseConfig()->getValue('DEBUG') ? '1' : '0'); |
30 | 26 | ||
31 | $files = array(); |
27 | $files = array(); |
32 | 28 | ||
33 | $do_minify = OIDplus::baseConfig()->getValue('MINIFY_JS', true); |
29 | $do_minify = OIDplus::baseConfig()->getValue('MINIFY_JS', true); |
34 | 30 | ||
35 | $files[] = process_file(__DIR__ . '/3p/jquery/jquery-3.6.0.js'); |
31 | $files[] = process_file(__DIR__ . '/vendor/components/jquery/jquery.js'); |
36 | $files[] = process_file(__DIR__ . '/3p/bootstrap4/js/bootstrap.js'); |
32 | $files[] = process_file(__DIR__ . '/vendor/twbs/bootstrap/dist/js/bootstrap.js'); |
37 | $files[] = process_file(__DIR__ . '/3p/jstree/jstree.js'); |
33 | $files[] = process_file(__DIR__ . '/vendor/vakata/jstree/dist/jstree.js'); |
38 | $files[] = process_file(__DIR__ . '/3p/tinymce/tinymce.js'); |
34 | $files[] = process_file(__DIR__ . '/vendor/tinymce/tinymce/tinymce.js'); |
39 | $files[] = process_file(__DIR__ . '/3p/jquery-ui/jquery-ui.js'); |
35 | $files[] = process_file(__DIR__ . '/vendor/components/jqueryui/jquery-ui.js'); |
40 | $files[] = process_file(__DIR__ . '/3p/layout/jquery.layout_and_plugins.js'); |
36 | $files[] = process_file(__DIR__ . '/vendor/gedmarc/layout/dist/jquery.layout_and_plugins.js'); |
41 | $files[] = process_file(__DIR__ . '/3p/spamspan/spamspan.js'); |
37 | $files[] = process_file(__DIR__ . '/vendor/spamspan/spamspan/spamspan.js'); |
42 | $files[] = process_file(__DIR__ . '/3p/bignumber.js/bignumber.js'); |
38 | $files[] = process_file(__DIR__ . '/vendor/mikemcl/bignumber.js/bignumber.js'); |
43 | $files[] = process_file(__DIR__ . '/3p/sha3_js/sha3.js'); |
39 | $files[] = process_file(__DIR__ . '/vendor/emn178/js-sha3/src/sha3.js'); |
44 | 40 | ||
45 | # --- |
41 | # --- |
46 | 42 | ||
47 | $files[] = 'var DEFAULT_LANGUAGE = '.json_encode(OIDplus::DEFAULT_LANGUAGE).';'; |
43 | $files[] = 'var DEFAULT_LANGUAGE = '.json_encode(OIDplus::DEFAULT_LANGUAGE).';'; |
48 | 44 |