Browse code

Initial commit

Benjamin Roth authored on21/03/2019 09:05:45
Showing1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,193 @@
1
+<?php if (!defined('TL_ROOT')) die('You cannot access this file directly!');
2
+
3
+/**
4
+ * Contao Open Source CMS
5
+ * Copyright (C) 2005-2011 Leo Feyer
6
+ *
7
+ * Formerly known as TYPOlight Open Source CMS.
8
+ *
9
+ * This program is free software: you can redistribute it and/or
10
+ * modify it under the terms of the GNU Lesser General Public
11
+ * License as published by the Free Software Foundation, either
12
+ * version 3 of the License, or (at your option) any later version.
13
+ * 
14
+ * This program is distributed in the hope that it will be useful,
15
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17
+ * Lesser General Public License for more details.
18
+ * 
19
+ * You should have received a copy of the GNU Lesser General Public
20
+ * License along with this program. If not, please visit the Free
21
+ * Software Foundation website at <http://www.gnu.org/licenses/>.
22
+ *
23
+ * PHP version 5
24
+ * @copyright  eSales Media 2012 
25
+ * @author     Benjamin Roth <www.esales-media.de> 
26
+ * @package    legalAgeCheck 
27
+ * @license    GNU/LGPL
28
+ * @filesource
29
+ */
30
+
31
+
32
+/**
33
+ * -------------------------------------------------------------------------
34
+ * BACK END MODULES
35
+ * -------------------------------------------------------------------------
36
+ *
37
+ * Back end modules are stored in a global array called "BE_MOD". Each module 
38
+ * has certain properties like an icon, an optional callback function and one 
39
+ * or more tables. Each module belongs to a particular group.
40
+ * 
41
+ *   $GLOBALS['BE_MOD'] = array
42
+ *   (
43
+ *       'group_1' => array
44
+ *       (
45
+ *           'module_1' => array
46
+ *           (
47
+ *               'tables'       => array('table_1', 'table_2'),
48
+ *               'key'          => array('Class', 'method'),
49
+ *               'callback'     => 'ClassName',
50
+ *               'icon'         => 'path/to/icon.gif',
51
+ *               'stylesheet'   => 'path/to/stylesheet.css',
52
+ *               'javascript'   => 'path/to/javascript.js'
53
+ *           )
54
+ *       )
55
+ *   );
56
+ * 
57
+ * Use function array_insert() to modify an existing modules array.
58
+ */
59
+
60
+
61
+/**
62
+ * -------------------------------------------------------------------------
63
+ * FRONT END MODULES
64
+ * -------------------------------------------------------------------------
65
+ *
66
+ * List all front end modules and their class names.
67
+ * 
68
+ *   $GLOBALS['FE_MOD'] = array
69
+ *   (
70
+ *       'group_1' => array
71
+ *       (
72
+ *           'module_1' => 'Contentlass',
73
+ *           'module_2' => 'Contentlass'
74
+ *       )
75
+ *   );
76
+ * 
77
+ * Use function array_insert() to modify an existing CTE array.
78
+ */
79
+ 
80
+
81
+/**
82
+ * -------------------------------------------------------------------------
83
+ * CONTENT ELEMENTS
84
+ * -------------------------------------------------------------------------
85
+ *
86
+ * List all content elements and their class names.
87
+ * 
88
+ *   $GLOBALS['TL_CTE'] = array
89
+ *   (
90
+ *       'group_1' => array
91
+ *       (
92
+ *           'cte_1' => 'Contentlass',
93
+ *           'cte_2' => 'Contentlass'
94
+ *       )
95
+ *   );
96
+ * 
97
+ * Use function array_insert() to modify an existing CTE array.
98
+ */
99
+ 
100
+
101
+/**
102
+ * -------------------------------------------------------------------------
103
+ * BACK END FORM FIELDS
104
+ * -------------------------------------------------------------------------
105
+ *
106
+ * List all back end form fields and their class names.
107
+ * 
108
+ *   $GLOBALS['BE_FFL'] = array
109
+ *   (
110
+ *       'input'  => 'Class',
111
+ *       'select' => 'Class'
112
+ *   );
113
+ * 
114
+ * Use function array_insert() to modify an existing FFL array.
115
+ */
116
+
117
+
118
+/**
119
+ * -------------------------------------------------------------------------
120
+ * FRONT END FORM FIELDS
121
+ * -------------------------------------------------------------------------
122
+ *
123
+ * List all form fields and their class names.
124
+ * 
125
+ *   $GLOBALS['TL_FFL'] = array
126
+ *   (
127
+ *       'input'  => Class,
128
+ *       'select' => Class
129
+ *   );
130
+ * 
131
+ * Use function array_insert() to modify an existing FFL array.
132
+ */
133
+
134
+
135
+/**
136
+ * -------------------------------------------------------------------------
137
+ * CACHE TABLES
138
+ * -------------------------------------------------------------------------
139
+ *
140
+ * These tables are used to cache data and can be truncated using back end 
141
+ * module "clear cache".
142
+ * 
143
+ *   $GLOBALS['TL_CACHE'] = array
144
+ *   (
145
+ *       'table_1',
146
+ *       'table_2'
147
+ *   );
148
+ * 
149
+ * Use function array_insert() to modify an existing cache array.
150
+ */
151
+
152
+
153
+/**
154
+ * -------------------------------------------------------------------------
155
+ * HOOKS
156
+ * -------------------------------------------------------------------------
157
+ *
158
+ * Hooking allows you to register one or more callback functions that are 
159
+ * called on a particular event in a specific order. Thus, third party 
160
+ * extensions can add functionality to the core system without having to
161
+ * modify the source code.
162
+ * 
163
+ *   $GLOBALS['TL_HOOKS'] = array
164
+ *   (
165
+ *       'hook_1' => array
166
+ *       (
167
+ *           array('Class', 'Method'),
168
+ *           array('Class', 'Method')
169
+ *       )
170
+ *   );
171
+ * 
172
+ * Use function array_insert() to modify an existing hooks array.
173
+ */
174
+$GLOBALS['TL_HOOKS']['generatePage'][] = array('LegalAgeCheck', 'performAgeCheck');
175
+$GLOBALS['TL_HOOKS']['dispatchAjax'][] = array('LegalAgeCheck', 'ajaxUnlockPage');
176
+
177
+/**
178
+ * -------------------------------------------------------------------------
179
+ * PAGE TYPES
180
+ * -------------------------------------------------------------------------
181
+ *
182
+ * Page types and their corresponding front end controller class.
183
+ * 
184
+ *   $GLOBALS['TL_PTY'] = array
185
+ *   (
186
+ *       'type_1' => 'PageType1',
187
+ *       'type_2' => 'PageType2'
188
+ *   );
189
+ * 
190
+ * Use function array_insert() to modify an existing page types array.
191
+ */
192
+ 
193
+?>
0 194
\ No newline at end of file