This repository has been archived by the owner on Nov 19, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ext_localconf.php
executable file
·83 lines (57 loc) · 2.07 KB
/
ext_localconf.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
<?php
if (!defined ('TYPO3_MODE')) die ('Access denied.');
$emClass = '\\TYPO3\\CMS\\Core\\Utility\\ExtensionManagementUtility';
if (
class_exists($emClass) &&
method_exists($emClass, 'extPath')
) {
// nothing
} else {
$emClass = 't3lib_extMgm';
}
if (!defined ('ADDONS_TT_PRODUCTS_EXT')) {
define('ADDONS_TT_PRODUCTS_EXT', $_EXTKEY);
}
if (!defined ('PATH_BE_ADDONS_TT_PRODUCTS')) {
define('PATH_BE_ADDONS_TT_PRODUCTS', call_user_func($emClass . '::extPath', $_EXTKEY));
}
if (!defined ('PATH_BE_ADDONS_TT_PRODUCTS_REL')) {
define('PATH_BE_ADDONS_TT_PRODUCTS_REL', call_user_func($emClass . '::extRelPath', $_EXTKEY));
}
if (!defined ('PATH_FE_ADDONS_TT_PRODUCTS_REL')) {
define('PATH_FE_ADDONS_TT_PRODUCTS_REL', call_user_func($emClass . '::siteRelPath', $_EXTKEY));
}
if (!defined ('PATH_FE_ADDONS_TT_PRODUCTS_ICON_REL')) {
define('PATH_FE_ADDONS_TT_PRODUCTS_ICON_REL', PATH_FE_ADDONS_TT_PRODUCTS_REL . 'res/icons/fe/');
}
// deprecated constants:
if (!defined ('ADDONS_EXTKEY')) {
define('ADDONS_EXTKEY', 'addons_tt_products');
}
if (!defined ('PATH_BE_ADDONS')) {
define('PATH_BE_ADDONS', call_user_func($emClass . '::extPath', $_EXTKEY));
}
if (!defined ('PATH_BE_ADDONS_REL')) {
define('PATH_BE_ADDONS_REL', call_user_func($emClass . '::extRelPath', $_EXTKEY));
}
if (!defined ('PATH_FE_ADDONS_REL')) {
define('PATH_BE_ADDONS_REL', call_user_func($emClass . '::siteRelPath', $_EXTKEY));
}
if (!defined ('PATH_FE_ADDONS_ICON_REL')) {
define('PATH_FE_ADDONS_ICON_REL', PATH_FE_ADDONS_REL . 'res/icons/fe/');
}
if (!defined ('ADDONS_EXTkey')) {
define('ADDONS_EXTkey','addons_tt_products');
}
if (!defined ('PATH_BE_addons')) {
define('PATH_BE_addons', call_user_func($emClass . '::extPath', $_EXTKEY));
}
if (!defined ('PATH_BE_addons_rel')) {
define('PATH_BE_addons_rel', call_user_func($emClass . '::extRelPath', $_EXTKEY));
}
if (!defined ('PATH_FE_addons_rel')) {
define('PATH_FE_addons_rel', call_user_func($emClass . '::siteRelPath', $_EXTKEY));
}
if (!defined ('PATH_FE_addons_icon_rel')) {
define('PATH_FE_addons_icon_rel', PATH_FE_addons_rel . 'res/icons/fe/');
}