forked from Molajo/Molajo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemp.php
474 lines (407 loc) · 21.5 KB
/
temp.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
# $Id: tables.sql
#
# ACL
#
#
# Table structure for table `amy_actions`
#
# Contains a definitive list of ACL Actions that can be defined within Molajo
# Login is the only action associated with Client. Client has no other actions beyond login.
# View and Create permissions for an asset do not imply any other permissions.
# Edit permission includes permission to View the asset.
# Delete permission includes permission to View and Edit the asset.
# Admin permission includes all other permissions for that asset and configuration permission.
#
CREATE TABLE IF NOT EXISTS `amy_actions` (
`id` INT (11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Actions Primary Key' ,
`title` VARCHAR(255) NOT NULL DEFAULT '',
PRIMARY KEY (`id`) )
AUTO_INCREMENT = 1
DEFAULT CHARACTER SET = utf8;
#
# Table structure for table `amy_assets`
#
# An Asset ID is a unique key assigned to any item (asset) subject to ACL control
# The ACL Assets table contains a list of assigned ids and associated component_option
# The asset id must be stored in the item using the column named asset_id
#
CREATE TABLE IF NOT EXISTS `amy_assets` (
`id` INT(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Assets Primary Key' ,
`content_table` VARCHAR(100) NOT NULL DEFAULT '' ,
`content_id` INT (11) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'Content Primary Key',
`access` INT (11) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'FK to the amy_groupings table',
PRIMARY KEY (`id`) )
AUTO_INCREMENT = 1
DEFAULT CHARACTER SET = utf8;
#
# CLIENTS (Applications)
#
#
# Table structure for table `amy_applications`
#
CREATE TABLE `amy_applications` (
`id` INT (11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Application Primary Key',
`application_id` INT (11) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'Numeric value associated with the application',
`name` VARCHAR(255) NOT NULL DEFAULT ' ' COMMENT 'Title',
`path` VARCHAR(255) NOT NULL DEFAULT ' ' COMMENT 'URL Alias',
`description` mediumtext NOT NULL,
`asset_id` INT (11) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'FK to the amy_assets table.',
`metakey` text COMMENT 'Meta Key',
`metadesc` text COMMENT 'Meta Description',
`metadata` text COMMENT 'Meta Data',
`attribs` text COMMENT 'Attributes (Custom Fields)',
`params` MEDIUMTEXT COMMENT 'Configurable Parameter Values',
PRIMARY KEY (`id`),
UNIQUE KEY `idx_asset_id` (`asset_id`)
) DEFAULT CHARSET=utf8;
#
# USERS AND GROUPS
#
#
# Table structure for table `amy_users`
#
CREATE TABLE IF NOT EXISTS `amy_users` (
`id` INT(11) UNSIGNED NOT NULL AUTO_INCREMENT ,
`name` VARCHAR(255) NOT NULL DEFAULT '' ,
`username` VARCHAR(150) NOT NULL DEFAULT '' ,
`email` VARCHAR(255) NOT NULL DEFAULT '' ,
`password` VARCHAR(100) NOT NULL DEFAULT '' ,
`block` TINYINT(4) NOT NULL DEFAULT 0 ,
`sendEmail` TINYINT(4) NULL DEFAULT 0 ,
`registerDate` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00' ,
`lastvisitDate` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00' ,
`activation` VARCHAR(100) NOT NULL DEFAULT '' ,
`params` MEDIUMTEXT NULL DEFAULT NULL COMMENT 'Configurable Parameter Values' ,
`asset_id` INT(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'FK to the amy_assets table.',
PRIMARY KEY (`id`) )
DEFAULT CHARACTER SET = utf8;
#
# Table structure for table `amy_user_profiles`
#
CREATE TABLE IF NOT EXISTS `amy_user_profiles` (
`user_id` INT(11) NOT NULL ,
`profile_key` VARCHAR(100) NOT NULL ,
`profile_value` VARCHAR(255) NOT NULL ,
`ordering` INT(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'Ordering' )
DEFAULT CHARACTER SET = utf8;
#
# Table structure for table `amy_groups`
#
# A group is a structure for defining a set of user(s) for the purpose of assigning permissions or other applications
# When a user is assigned to a Group, that user is also a member of existing and future child groups
# Each user is also assigned a special group that can be used to assign "Edit Own", "View Own" or "Delete Own" Permissions
# "User Groups" are also a good tool to add someone to a specific item, rather than all assets associated with a Group
# In smaller implementations or social networks, "User Groups" provides support for friending, etc.
#
CREATE TABLE IF NOT EXISTS `amy_groups` (
`id` INT(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Group Primary Key' ,
`parent_id` INT(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'Parent ID' ,
`lft` INT(11) NOT NULL DEFAULT 0 COMMENT 'Nested set lft.' ,
`rgt` INT(11) NOT NULL DEFAULT 0 COMMENT 'Nested set rgt.' ,
`title` VARCHAR(255) NOT NULL DEFAULT '' ,
`subtitle` VARCHAR(255) NOT NULL DEFAULT '',
`description` MEDIUMTEXT NOT NULL ,
`type_id` INT(11) UNSIGNED NOT NULL DEFAULT '1' COMMENT 'Users: 0, Groups: 1' ,
`asset_id` INT(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'FK to the amy_assets table.' ,
`protected` TINYINT(1) NOT NULL DEFAULT 0 COMMENT 'If true, protects group from system removal via the interface.' ,
PRIMARY KEY (`id`) )
AUTO_INCREMENT = 1
DEFAULT CHARACTER SET = utf8;
#
# Table structure for table `amy_user_groups`
#
# Groups to which users belong
#
CREATE TABLE IF NOT EXISTS `amy_user_groups` (
`user_id` INT(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'Foreign Key to amy_users.id' ,
`group_id` INT(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'Foreign Key to amy_groups.id' ,
PRIMARY KEY (`user_id`, `group_id`) )
DEFAULT CHARACTER SET = utf8;
#
# Table structure for table `amy_groupings`
#
# A collection of groups which have been defined for a specific action and asset id
# These are created by Molajo ACL and used for efficiency with database queries
# Replaces viewlevel table and provides this structure for view and other ACL actions
#
CREATE TABLE IF NOT EXISTS `amy_groupings` (
`id` INT(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Groupings Primary Key' ,
`group_name_list` TEXT NOT NULL ,
`group_id_list` TEXT NOT NULL ,
PRIMARY KEY (`id`) )
AUTO_INCREMENT = 1
DEFAULT CHARACTER SET = utf8;
#
# Table structure for table `amy_group_to_groupings`
#
# A listing of groups that belong to the group
#
CREATE TABLE IF NOT EXISTS `amy_group_to_groupings` (
`id` INT(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Group to Group Primary Key' ,
`group_id` INT(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'FK to the amy_group table.' ,
`grouping_id` INT(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'FK to the amy_groupings table.' ,
PRIMARY KEY (`id`) )
AUTO_INCREMENT = 1
DEFAULT CHARACTER SET = utf8;
#
# Table structure for table `amy_user_groupings`
#
# Groupings of groups to which users belong
#
CREATE TABLE IF NOT EXISTS `amy_user_groupings` (
`user_id` INT(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'Foreign Key to amy_users.id' ,
`grouping_id` INT(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'Foreign Key to amy_groupings.id' ,
PRIMARY KEY (`user_id`, `grouping_id`) )
DEFAULT CHARACTER SET = utf8;
#
# Table structure for table `amy_user_applications`
#
# Applications to which users belong
#
CREATE TABLE IF NOT EXISTS `amy_user_applications` (
`user_id` INT(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'Foreign Key to amy_users.id' ,
`application_id` INT(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'Foreign Key to amy_applications.id' ,
PRIMARY KEY (`user_id`, `application_id`) )
DEFAULT CHARACTER SET = utf8;
#
# Table structure for table `amy_permissions_groups`
# A complete list of assigned actions by asset id for groups
#
CREATE TABLE IF NOT EXISTS `amy_permissions_groups` (
`id` INT(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Permissions Primary Key' ,
`group_id` INT(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'Foreign Key to #_groups.id' ,
`asset_id` INT(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'Foreign Key to amy_assets.id' ,
`action_id` INT(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'Foreign Key to amy_actions.id' ,
PRIMARY KEY (`id`) )
AUTO_INCREMENT = 1
DEFAULT CHARACTER SET = utf8;
#
# Table structure for table `amy_permissions_groupings`
#
# A complete list of assigned actions by asset id for groupings of groups
#
CREATE TABLE IF NOT EXISTS `amy_permissions_groupings` (
`id` INT(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Permissions Primary Key' ,
`grouping_id` INT(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'Foreign Key to amy_groups.id' ,
`asset_id` INT(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'Foreign Key to amy_assets.id' ,
`action_id` INT(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'Foreign Key to amy_actions.id' ,
PRIMARY KEY (`id`) )
AUTO_INCREMENT = 1
DEFAULT CHARACTER SET = utf8;
#
# CONTENT
#
#
# Table structure for table `amy_categories`
#
CREATE TABLE `amy_categories` (
`id` INT (11) NOT NULL auto_increment,
`asset_id` INT (11) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'FK to the amy_assets table.',
`parent_id` INT (11) UNSIGNED NOT NULL DEFAULT 0,
`lft` INT (11) NOT NULL DEFAULT 0,
`rgt` INT (11) NOT NULL DEFAULT 0,
`level` INT (11) UNSIGNED NOT NULL DEFAULT 0,
`path` VARCHAR(255) NOT NULL DEFAULT '',
`extension` VARCHAR(50) NOT NULL DEFAULT '',
`title` VARCHAR(255) NOT NULL,
`subtitle` VARCHAR(255) NOT NULL DEFAULT '',
`alias` VARCHAR(255) NOT NULL DEFAULT '',
`note` VARCHAR(255) NOT NULL DEFAULT '',
`description` MEDIUMTEXT NOT NULL DEFAULT '',
`published` INT (11) UNSIGNED NOT NULL DEFAULT 0,
`checked_out` INT (11) UNSIGNED NOT NULL DEFAULT 0,
`checked_out_time` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
`params` MEDIUMTEXT COMMENT 'Configurable Parameter Values',
`metadesc` VARCHAR(1024) NOT NULL DEFAULT ' ' COMMENT 'The meta description for the page.',
`metakey` VARCHAR(1024) NOT NULL DEFAULT ' ' COMMENT 'The meta keywords for the page.',
`metadata` VARCHAR(2048) NOT NULL DEFAULT ' ' COMMENT 'JSON encoded metadata properties.',
`created_user_id` INT (11) UNSIGNED NOT NULL DEFAULT 0,
`created_time` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
`modified_user_id` INT (11) UNSIGNED NOT NULL DEFAULT 0,
`modified_time` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
`hits` INT (11) UNSIGNED NOT NULL DEFAULT 0,
`language` CHAR(7) NOT NULL,
PRIMARY KEY (`id`),
KEY `cat_idx` (`extension`,`published`),
KEY `idx_checkout` (`checked_out`),
KEY `idx_path` (`path`),
KEY `idx_left_right` (`lft`,`rgt`),
KEY `idx_alias` (`alias`),
INDEX `idx_language` (`language`)
) DEFAULT CHARSET=utf8;
#
# Table structure for table `amy_articles`
#
CREATE TABLE IF NOT EXISTS `amy_articles` (
`id` INT (11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Primary Key',
`catid` INT (11) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'Category ID associated with the Primary Key',
`title` VARCHAR (255) NOT NULL DEFAULT ' ' COMMENT 'Title',
`subtitle` VARCHAR(255) NOT NULL DEFAULT '' COMMENT 'Subtitle',
`alias` VARCHAR (255) NOT NULL DEFAULT ' ' COMMENT 'URL Alias',
`content_type` tinyint(3) NOT NULL DEFAULT 0 COMMENT 'Content Type: Links to amy_configuration.option_id = 10 and component_option values matching ',
`content_text` MEDIUMTEXT NULL COMMENT 'Content Primary Text Field, can include break to designate Introductory and Full text',
`content_link` VARCHAR (2083) NULL COMMENT 'Content Link for Weblink or Newsfeed Field',
`content_email_address` VARCHAR (255) NULL COMMENT 'Content Email Field',
`content_numeric_value` TINYINT (3) NULL COMMENT 'Content Numeric Value, ex. vote on poll',
`content_file` VARCHAR (255) NOT NULL DEFAULT '' COMMENT 'Content Network Path to File',
`featured` boolean NOT NULL DEFAULT 0 COMMENT 'Featured 1-Featured 0-Not Featured',
`stickied` boolean NOT NULL DEFAULT 0 COMMENT 'Stickied 1-Stickied 0-Not Stickied',
`user_default` boolean NOT NULL DEFAULT 0 COMMENT 'User DEFAULT 1-DEFAULT 0-Not DEFAULT',
`category_default` boolean NOT NULL DEFAULT 0 COMMENT 'Category DEFAULT 1-DEFAULT 0-Not DEFAULT',
`language` CHAR (7) NOT NULL DEFAULT '' COMMENT 'Language',
`ordering` INT (11) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'Ordering',
`state` TINYINT (3) NOT NULL DEFAULT 0 COMMENT 'Published State 2: Archived 1: Published 0: Unpublished -1: Trashed -2: Spam -10 Version',
`publish_up` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT 'Publish Begin Date and Time',
`publish_down` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT 'Publish End Date and Time',
`version` INT (11) UNSIGNED NOT NULL DEFAULT '1' COMMENT 'Version Number',
`version_of_id` INT (11) NULL COMMENT 'Primary ID for this Version',
`state_prior_to_version` INT (11) UNSIGNED NULL COMMENT 'State value prior to creating this version copy and changing the state to Version',
`created` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT 'Created Date and Time',
`created_by` INT (11) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'Created by User ID',
`created_by_alias` VARCHAR (255) NOT NULL DEFAULT '' COMMENT 'Created by Alias',
`created_by_email` VARCHAR (255) NULL COMMENT 'Created By Email Address',
`created_by_website` VARCHAR (255) NULL COMMENT 'Created By Website',
`created_by_ip_address` CHAR(15) NULL COMMENT 'Created By IP Address',
`created_by_referer` VARCHAR (255) NULL COMMENT 'Created By Referer',
`modified` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT 'Modified Date',
`modified_by` INT (11) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'Modified By User ID',
`checked_out` INT (11) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'Checked out by User Id',
`checked_out_time` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT 'Checked out Date and Time',
`asset_id` INT (11) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'FK to the amy_assets table.',
`component_option` VARCHAR(50) NOT NULL DEFAULT 'com_articles' COMMENT 'Component Option Value',
`component_id` INT (11) UNSIGNED NOT NULL DEFAULT 2 COMMENT 'Primary Key for Component Content',
`parent_id` INT (11) NULL COMMENT 'Nested set parent',
`lft` INT (11) NULL COMMENT 'Nested set lft',
`rgt` INT (11) NULL COMMENT 'Nested set rgt',
`level` INT (11) NULL DEFAULT 0 COMMENT 'The cached level in the nested tree',
`metakey` TEXT NULL COMMENT 'Meta Key',
`metadesc` TEXT NULL COMMENT 'Meta Description',
`metadata` TEXT NULL COMMENT 'Meta Data',
`attribs` TEXT NULL COMMENT 'Attributes (Custom Fields)',
`params` MEDIUMTEXT COMMENT 'Configurable Parameter Values',
PRIMARY KEY (`id`),
KEY `idx_component_component_id_id` (`component_option`, `component_id`, `id`),
KEY `idx_checkout` (`checked_out`),
KEY `idx_state` (`state`),
KEY `idx_catid` (`catid`),
KEY `idx_createdby` (`created_by`),
KEY `idx_featured_catid` (`featured`,`catid`),
KEY `idx_stickied_catid` (`stickied`,`catid`),
KEY `idx_language` (`language`)
) DEFAULT CHARSET=utf8;
#
# Table structure for table `amy_common`
#
CREATE TABLE IF NOT EXISTS `amy_common` (
`id` INT (11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Primary Key',
`catid` INT (11) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'Category ID associated with the Primary Key',
`title` VARCHAR (255) NOT NULL DEFAULT ' ' COMMENT 'Title',
`subtitle` VARCHAR(255) NOT NULL DEFAULT '' COMMENT 'Subtitle',
`alias` VARCHAR (255) NOT NULL DEFAULT ' ' COMMENT 'URL Alias',
`content_type` tinyint(3) NOT NULL DEFAULT 0 COMMENT 'Content Type: Links to amy_configuration.option_id = 10 and component_option values matching ',
`content_text` MEDIUMTEXT NULL COMMENT 'Content Primary Text Field, can include break to designate Introductory and Full text',
`content_link` VARCHAR (2083) NULL COMMENT 'Content Link for Weblink or Newsfeed Field',
`content_email_address` VARCHAR (255) NULL COMMENT 'Content Email Field',
`content_numeric_value` TINYINT (3) NULL COMMENT 'Content Numeric Value, ex. vote on poll',
`content_file` VARCHAR (255) NOT NULL DEFAULT '' COMMENT 'Content Network Path to File',
`featured` boolean NOT NULL DEFAULT 0 COMMENT 'Featured 1-Featured 0-Not Featured',
`stickied` boolean NOT NULL DEFAULT 0 COMMENT 'Stickied 1-Stickied 0-Not Stickied',
`user_default` boolean NOT NULL DEFAULT 0 COMMENT 'User DEFAULT 1-DEFAULT 0-Not DEFAULT',
`category_default` boolean NOT NULL DEFAULT 0 COMMENT 'Category DEFAULT 1-DEFAULT 0-Not DEFAULT',
`language` CHAR (7) NOT NULL DEFAULT '' COMMENT 'Language',
`ordering` INT (11) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'Ordering',
`state` TINYINT (3) NOT NULL DEFAULT 0 COMMENT 'Published State 2: Archived 1: Published 0: Unpublished -1: Trashed -2: Spam -10 Version',
`publish_up` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT 'Publish Begin Date and Time',
`publish_down` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT 'Publish End Date and Time',
`version` INT (11) UNSIGNED NOT NULL DEFAULT '1' COMMENT 'Version Number',
`version_of_id` INT (11) NULL COMMENT 'Primary ID for this Version',
`state_prior_to_version` INT (11) UNSIGNED NULL COMMENT 'State value prior to creating this version copy and changing the state to Version',
`created` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT 'Created Date and Time',
`created_by` INT (11) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'Created by User ID',
`created_by_alias` VARCHAR (255) NOT NULL DEFAULT '' COMMENT 'Created by Alias',
`created_by_email` VARCHAR (255) NULL COMMENT 'Created By Email Address',
`created_by_website` VARCHAR (255) NULL COMMENT 'Created By Website',
`created_by_ip_address` CHAR(15) NULL COMMENT 'Created By IP Address',
`created_by_referer` VARCHAR (255) NULL COMMENT 'Created By Referer',
`modified` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT 'Modified Date',
`modified_by` INT (11) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'Modified By User ID',
`checked_out` INT (11) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'Checked out by User Id',
`checked_out_time` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT 'Checked out Date and Time',
`asset_id` INT (11) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'FK to the amy_assets table.',
`component_option` VARCHAR(50) NOT NULL DEFAULT ' ' COMMENT 'Component Option Value',
`component_id` INT (11) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'Primary Key for Component Content',
`parent_id` INT (11) NULL COMMENT 'Nested set parent',
`lft` INT (11) NULL COMMENT 'Nested set lft',
`rgt` INT (11) NULL COMMENT 'Nested set rgt',
`level` INT (11) NULL DEFAULT 0 COMMENT 'The cached level in the nested tree',
`metakey` TEXT NULL COMMENT 'Meta Key',
`metadesc` TEXT NULL COMMENT 'Meta Description',
`metadata` TEXT NULL COMMENT 'Meta Data',
`attribs` TEXT NULL COMMENT 'Attributes (Custom Fields)',
`params` MEDIUMTEXT COMMENT 'Configurable Parameter Values',
PRIMARY KEY (`id`),
KEY `idx_component_component_id_id` (`component_option`, `component_id`, `id`),
KEY `idx_checkout` (`checked_out`),
KEY `idx_state` (`state`),
KEY `idx_catid` (`catid`),
KEY `idx_createdby` (`created_by`),
KEY `idx_featured_catid` (`featured`,`catid`),
KEY `idx_stickied_catid` (`stickied`,`catid`),
KEY `idx_language` (`language`)
) DEFAULT CHARSET=utf8;
#
# EXTENSIONS
#
#
# Table structure for table `amy_extensions`
#
CREATE TABLE `amy_extensions` (
`extension_id` INT (11) NOT NULL AUTO_INCREMENT,
`name` VARCHAR(100) NOT NULL,
`type` VARCHAR(20) NOT NULL,
`element` VARCHAR(100) NOT NULL,
`folder` VARCHAR(100) NOT NULL,
`application_id` INT (11) NOT NULL,
`enabled` TINYINT(3) NOT NULL DEFAULT '1',
`asset_id` INT (11) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'FK to the amy_assets table.',
`protected` TINYINT(3) NOT NULL DEFAULT 0,
`manifest_cache` MEDIUMTEXT NOT NULL,
`params` MEDIUMTEXT COMMENT 'Configurable Parameter Values',
`custom_data` MEDIUMTEXT COMMENT 'Available for Custom Data needed by the Extension',
`system_data` MEDIUMTEXT COMMENT 'Configurable Parameter Values',
`checked_out` INT (11) UNSIGNED NOT NULL DEFAULT 0,
`checked_out_time` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
`ordering` INT (11) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'Ordering',
`state` TINYINT (3) NOT NULL DEFAULT 0 COMMENT 'Published State 2: Archived 1: Published 0: Unpublished -1: Trashed -2: Spam -10 Version',
PRIMARY KEY (`extension_id`),
INDEX `element_application_id`(`element`, `application_id`),
INDEX `element_folder_application_id`(`element`, `folder`, `application_id`),
INDEX `extension`(`type`,`element`,`folder`,`application_id`)
) AUTO_INCREMENT=1 CHARACTER SET utf8;
#
# SCHEMAS
#
CREATE TABLE `amy_schemas` (
`extension_id` int(11) NOT NULL,
`version_id` varchar(20) NOT NULL,
PRIMARY KEY (`extension_id`, `version_id`)
) DEFAULT CHARSET=utf8;
# -------------------------------------------------------
/* 300 MOLAJO_CONFIG_OPTION_ID_LIST_TOOLBAR_BUTTONS */;
INSERT INTO `#__configuration` (`component_option`, `option_id`, `option_value`, `option_value_literal`, `ordering`) VALUES
('com_cristina', 300, '', '', 0),
('com_cristina', 300, 'archive', 'MOLAJO_CONFIG_MANAGER_OPTION_BUTTON_ARCHIVE', 1),
('com_cristina', 300, 'checkin', 'MOLAJO_CONFIG_MANAGER_OPTION_BUTTON_CHECKIN', 2),
('com_cristina', 300, 'delete', 'MOLAJO_CONFIG_MANAGER_OPTION_BUTTON_DELETE', 3),
('com_cristina', 300, 'edit', 'MOLAJO_CONFIG_MANAGER_OPTION_BUTTON_EDIT', 4),
('com_cristina', 300, 'feature', 'MOLAJO_CONFIG_MANAGER_OPTION_BUTTON_FEATURE', 5),
('com_cristina', 300, 'help', 'MOLAJO_CONFIG_MANAGER_OPTION_BUTTON_HELP', 6),
('com_cristina', 300, 'new', 'MOLAJO_CONFIG_MANAGER_OPTION_BUTTON_NEW', 7),
('com_cristina', 300, 'options', 'MOLAJO_CONFIG_MANAGER_OPTION_BUTTON_OPTIONS', 8),
('com_cristina', 300, 'publish', 'MOLAJO_CONFIG_MANAGER_OPTION_BUTTON_PUBLISH', 9),
('com_cristina', 300, 'restore', 'MOLAJO_CONFIG_MANAGER_OPTION_BUTTON_RESTORE', 10),
('com_cristina', 300, 'separator', 'MOLAJO_CONFIG_MANAGER_OPTION_BUTTON_SEPARATOR', 11),
('com_cristina', 300, 'spam', 'MOLAJO_CONFIG_MANAGER_OPTION_BUTTON_SPAM', 12),
('com_cristina', 300, 'sticky', 'MOLAJO_CONFIG_MANAGER_OPTION_BUTTON_STICKY', 13),
('com_cristina', 300, 'trash', 'MOLAJO_CONFIG_MANAGER_OPTION_BUTTON_TRASH', 14),
('com_cristina', 300, 'unpublish', 'MOLAJO_CONFIG_MANAGER_OPTION_BUTTON_UNPUBLISH', 15);