-
Notifications
You must be signed in to change notification settings - Fork 0
/
hfpm_webapp.sql
2105 lines (1859 loc) · 324 KB
/
hfpm_webapp.sql
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
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
-- phpMyAdmin SQL Dump
-- version 3.5.1
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Oct 02, 2013 at 06:33 PM
-- Server version: 5.5.24-log
-- PHP Version: 5.4.3
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
--
-- Database: `hfpm_webapp`
--
-- --------------------------------------------------------
--
-- Table structure for table `luacm_assets`
--
CREATE TABLE IF NOT EXISTS `luacm_assets` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Primary Key',
`parent_id` int(11) NOT NULL DEFAULT '0' COMMENT 'Nested set parent.',
`lft` int(11) NOT NULL DEFAULT '0' COMMENT 'Nested set lft.',
`rgt` int(11) NOT NULL DEFAULT '0' COMMENT 'Nested set rgt.',
`level` int(10) unsigned NOT NULL COMMENT 'The cached level in the nested tree.',
`name` varchar(50) NOT NULL COMMENT 'The unique name for the asset.\n',
`title` varchar(100) NOT NULL COMMENT 'The descriptive title for the asset.',
`rules` varchar(5120) NOT NULL COMMENT 'JSON encoded access control.',
PRIMARY KEY (`id`),
UNIQUE KEY `idx_asset_name` (`name`),
KEY `idx_lft_rgt` (`lft`,`rgt`),
KEY `idx_parent_id` (`parent_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=61 ;
--
-- Dumping data for table `luacm_assets`
--
INSERT INTO `luacm_assets` (`id`, `parent_id`, `lft`, `rgt`, `level`, `name`, `title`, `rules`) VALUES
(1, 0, 0, 119, 0, 'root.1', 'Root Asset', '{"core.login.site":{"6":1,"2":1},"core.login.admin":{"6":1},"core.login.offline":{"6":1},"core.admin":{"8":1},"core.manage":{"7":1},"core.create":{"6":1,"3":1},"core.delete":{"6":1},"core.edit":{"6":1,"4":1},"core.edit.state":{"6":1,"5":1},"core.edit.own":{"6":1,"3":1}}'),
(2, 1, 1, 2, 1, 'com_admin', 'com_admin', '{}'),
(3, 1, 3, 6, 1, 'com_banners', 'com_banners', '{"core.admin":{"7":1},"core.manage":{"6":1},"core.create":[],"core.delete":[],"core.edit":[],"core.edit.state":[]}'),
(4, 1, 7, 8, 1, 'com_cache', 'com_cache', '{"core.admin":{"7":1},"core.manage":{"7":1}}'),
(5, 1, 9, 10, 1, 'com_checkin', 'com_checkin', '{"core.admin":{"7":1},"core.manage":{"7":1}}'),
(6, 1, 11, 12, 1, 'com_config', 'com_config', '{}'),
(7, 1, 13, 16, 1, 'com_contact', 'com_contact', '{"core.admin":{"7":1},"core.manage":{"6":1},"core.create":[],"core.delete":[],"core.edit":[],"core.edit.state":[],"core.edit.own":[]}'),
(8, 1, 17, 70, 1, 'com_content', 'com_content', '{"core.admin":{"7":1},"core.manage":{"6":1},"core.create":{"3":1},"core.delete":[],"core.edit":{"4":1},"core.edit.state":{"5":1},"core.edit.own":[]}'),
(9, 1, 71, 72, 1, 'com_cpanel', 'com_cpanel', '{}'),
(10, 1, 73, 74, 1, 'com_installer', 'com_installer', '{"core.admin":[],"core.manage":{"7":0},"core.delete":{"7":0},"core.edit.state":{"7":0}}'),
(11, 1, 75, 76, 1, 'com_languages', 'com_languages', '{"core.admin":{"7":1},"core.manage":[],"core.create":[],"core.delete":[],"core.edit":[],"core.edit.state":[]}'),
(12, 1, 77, 78, 1, 'com_login', 'com_login', '{}'),
(13, 1, 79, 80, 1, 'com_mailto', 'com_mailto', '{}'),
(14, 1, 81, 82, 1, 'com_massmail', 'com_massmail', '{}'),
(15, 1, 83, 84, 1, 'com_media', 'com_media', '{"core.admin":{"7":1},"core.manage":{"6":1},"core.create":{"3":1},"core.delete":{"5":1}}'),
(16, 1, 85, 86, 1, 'com_menus', 'com_menus', '{"core.admin":{"7":1},"core.manage":[],"core.create":[],"core.delete":[],"core.edit":[],"core.edit.state":[]}'),
(17, 1, 87, 88, 1, 'com_messages', 'com_messages', '{"core.admin":{"7":1},"core.manage":{"7":1}}'),
(18, 1, 89, 90, 1, 'com_modules', 'com_modules', '{"core.admin":{"7":1},"core.manage":[],"core.create":[],"core.delete":[],"core.edit":[],"core.edit.state":[]}'),
(19, 1, 91, 94, 1, 'com_newsfeeds', 'com_newsfeeds', '{"core.admin":{"7":1},"core.manage":{"6":1},"core.create":[],"core.delete":[],"core.edit":[],"core.edit.state":[],"core.edit.own":[]}'),
(20, 1, 95, 96, 1, 'com_plugins', 'com_plugins', '{"core.admin":{"7":1},"core.manage":[],"core.edit":[],"core.edit.state":[]}'),
(21, 1, 97, 98, 1, 'com_redirect', 'com_redirect', '{"core.admin":{"7":1},"core.manage":[]}'),
(22, 1, 99, 100, 1, 'com_search', 'com_search', '{"core.admin":{"7":1},"core.manage":{"6":1}}'),
(23, 1, 101, 102, 1, 'com_templates', 'com_templates', '{"core.admin":{"7":1},"core.manage":[],"core.create":[],"core.delete":[],"core.edit":[],"core.edit.state":[]}'),
(24, 1, 103, 106, 1, 'com_users', 'com_users', '{"core.admin":{"7":1},"core.manage":[],"core.create":[],"core.delete":[],"core.edit":[],"core.edit.state":[]}'),
(25, 1, 107, 110, 1, 'com_weblinks', 'com_weblinks', '{"core.admin":{"7":1},"core.manage":{"6":1},"core.create":{"3":1},"core.delete":[],"core.edit":{"4":1},"core.edit.state":{"5":1},"core.edit.own":[]}'),
(26, 1, 111, 112, 1, 'com_wrapper', 'com_wrapper', '{}'),
(27, 8, 18, 69, 2, 'com_content.category.2', 'Uncategorised', '{"core.create":[],"core.delete":[],"core.edit":[],"core.edit.state":[],"core.edit.own":[]}'),
(28, 3, 4, 5, 2, 'com_banners.category.3', 'Uncategorised', '{"core.create":[],"core.delete":[],"core.edit":[],"core.edit.state":[]}'),
(29, 7, 14, 15, 2, 'com_contact.category.4', 'Uncategorised', '{"core.create":[],"core.delete":[],"core.edit":[],"core.edit.state":[],"core.edit.own":[]}'),
(30, 19, 92, 93, 2, 'com_newsfeeds.category.5', 'Uncategorised', '{"core.create":[],"core.delete":[],"core.edit":[],"core.edit.state":[],"core.edit.own":[]}'),
(31, 25, 108, 109, 2, 'com_weblinks.category.6', 'Uncategorised', '{"core.create":[],"core.delete":[],"core.edit":[],"core.edit.state":[],"core.edit.own":[]}'),
(32, 24, 104, 105, 1, 'com_users.category.7', 'Uncategorised', '{"core.create":[],"core.delete":[],"core.edit":[],"core.edit.state":[]}'),
(33, 1, 113, 114, 1, 'com_finder', 'com_finder', '{"core.admin":{"7":1},"core.manage":{"6":1}}'),
(34, 1, 115, 116, 1, 'com_joomlaupdate', 'com_joomlaupdate', '{"core.admin":[],"core.manage":[],"core.delete":[],"core.edit.state":[]}'),
(35, 1, 117, 118, 1, 'com_tags', 'com_tags', '{"core.admin":[],"core.manage":[],"core.manage":[],"core.delete":[],"core.edit.state":[]}'),
(36, 27, 19, 20, 3, 'com_content.article.1', 'Test PHP', '{"core.delete":{"6":1},"core.edit":{"6":1,"4":1},"core.edit.state":{"6":1,"5":1}}'),
(37, 27, 21, 22, 3, 'com_content.article.2', 'Εγγραφή Χρήστη', '{"core.delete":{"6":1},"core.edit":{"6":1,"4":1},"core.edit.state":{"6":1,"5":1}}'),
(38, 27, 23, 24, 3, 'com_content.article.3', 'Εισαγωγή Πληροφοριών Ιατρικού Προσωπικού', '{"core.delete":{"6":1},"core.edit":{"6":1,"4":1},"core.edit.state":{"6":1,"5":1}}'),
(39, 27, 25, 26, 3, 'com_content.article.4', 'Εισαγωγή Πληροφοριών Νοσηλευτικού Προσωπικού', '{"core.delete":{"6":1},"core.edit":{"6":1,"4":1},"core.edit.state":{"6":1,"5":1}}'),
(40, 27, 27, 28, 3, 'com_content.article.5', 'Εισαγωγή Πληροφοριών Διοικητικού Προσωπικού', '{"core.delete":{"6":1},"core.edit":{"6":1,"4":1},"core.edit.state":{"6":1,"5":1}}'),
(41, 27, 29, 30, 3, 'com_content.article.6', 'Σφάλμα', '{"core.delete":{"6":1},"core.edit":{"6":1,"4":1},"core.edit.state":{"6":1,"5":1}}'),
(42, 27, 31, 32, 3, 'com_content.article.7', 'Εισαγωγή Πληροφοριών Τηλεφώνου', '{"core.delete":{"6":1},"core.edit":{"6":1,"4":1},"core.edit.state":{"6":1,"5":1}}'),
(43, 27, 33, 34, 3, 'com_content.article.8', 'Εισαγωγή Πληροφοριών Κατοικίας', '{"core.delete":{"6":1},"core.edit":{"6":1,"4":1},"core.edit.state":{"6":1,"5":1}}'),
(44, 27, 35, 36, 3, 'com_content.article.9', 'Επιτυχία', '{"core.delete":{"6":1},"core.edit":{"6":1,"4":1},"core.edit.state":{"6":1,"5":1}}'),
(45, 27, 37, 38, 3, 'com_content.article.10', 'Διαγραφή', '{"core.delete":{"6":1},"core.edit":{"6":1,"4":1},"core.edit.state":{"6":1,"5":1}}'),
(46, 27, 39, 40, 3, 'com_content.article.11', 'Λίστα Χρηστών', '{"core.delete":{"6":1},"core.edit":{"6":1,"4":1},"core.edit.state":{"6":1,"5":1}}'),
(47, 27, 41, 42, 3, 'com_content.article.12', 'Δημιουργία Προγράμματος', '{"core.delete":{"6":1},"core.edit":{"6":1,"4":1},"core.edit.state":{"6":1,"5":1}}'),
(48, 27, 43, 44, 3, 'com_content.article.13', 'Λίστα Προγραμμάτων', '{"core.delete":{"6":1},"core.edit":{"6":1,"4":1},"core.edit.state":{"6":1,"5":1}}'),
(49, 27, 45, 46, 3, 'com_content.article.14', 'Αιτήματα Χρηστών', '{"core.delete":{"6":1},"core.edit":{"6":1,"4":1},"core.edit.state":{"6":1,"5":1}}'),
(50, 27, 47, 48, 3, 'com_content.article.15', 'Επεξεργασία Χρήστη', '{"core.delete":{"6":1},"core.edit":{"6":1,"4":1},"core.edit.state":{"6":1,"5":1}}'),
(51, 27, 49, 50, 3, 'com_content.article.16', 'Διαγραφή Χρήστη', '{"core.delete":{"6":1},"core.edit":{"6":1,"4":1},"core.edit.state":{"6":1,"5":1}}'),
(52, 27, 51, 52, 3, 'com_content.article.17', 'Οριστική Διαγραφή Χρήστη', '{"core.delete":{"6":1},"core.edit":{"6":1,"4":1},"core.edit.state":{"6":1,"5":1}}'),
(53, 27, 53, 54, 3, 'com_content.article.18', 'Λεπτομέρειες Προγράμματος (Λίστα Καθηκόντων)', '{"core.delete":{"6":1},"core.edit":{"6":1,"4":1},"core.edit.state":{"6":1,"5":1}}'),
(54, 27, 55, 56, 3, 'com_content.article.19', 'Διαγραφή Καθήκοντος', '{"core.delete":{"6":1},"core.edit":{"6":1,"4":1},"core.edit.state":{"6":1,"5":1}}'),
(55, 27, 57, 58, 3, 'com_content.article.20', 'Διαγραφή Προγράμματος', '{"core.delete":{"6":1},"core.edit":{"6":1,"4":1},"core.edit.state":{"6":1,"5":1}}'),
(56, 27, 59, 60, 3, 'com_content.article.21', 'Αποδοχή Αιτήματος (Ανταλλαγή)', '{"core.delete":{"6":1},"core.edit":{"6":1,"4":1},"core.edit.state":{"6":1,"5":1}}'),
(57, 27, 61, 62, 3, 'com_content.article.22', 'Απόρριψη Αιτήματος', '{"core.delete":{"6":1},"core.edit":{"6":1,"4":1},"core.edit.state":{"6":1,"5":1}}'),
(58, 27, 63, 64, 3, 'com_content.article.23', 'Ανταλλαγή Καθηκόντων', '{"core.delete":{"6":1},"core.edit":{"6":1,"4":1},"core.edit.state":{"6":1,"5":1}}'),
(59, 27, 65, 66, 3, 'com_content.article.24', 'Οριστική Αποδοχή Αιτήματος (Ανταλλαγή)', '{"core.delete":{"6":1},"core.edit":{"6":1,"4":1},"core.edit.state":{"6":1,"5":1}}'),
(60, 27, 67, 68, 3, 'com_content.article.25', 'Καλώς Ήρθατε', '{"core.delete":{"6":1},"core.edit":{"6":1,"4":1},"core.edit.state":{"6":1,"5":1}}');
-- --------------------------------------------------------
--
-- Table structure for table `luacm_associations`
--
CREATE TABLE IF NOT EXISTS `luacm_associations` (
`id` int(11) NOT NULL COMMENT 'A reference to the associated item.',
`context` varchar(50) NOT NULL COMMENT 'The context of the associated item.',
`key` char(32) NOT NULL COMMENT 'The key for the association computed from an md5 on associated ids.',
PRIMARY KEY (`context`,`id`),
KEY `idx_key` (`key`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `luacm_banners`
--
CREATE TABLE IF NOT EXISTS `luacm_banners` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`cid` int(11) NOT NULL DEFAULT '0',
`type` int(11) NOT NULL DEFAULT '0',
`name` varchar(255) NOT NULL DEFAULT '',
`alias` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '',
`imptotal` int(11) NOT NULL DEFAULT '0',
`impmade` int(11) NOT NULL DEFAULT '0',
`clicks` int(11) NOT NULL DEFAULT '0',
`clickurl` varchar(200) NOT NULL DEFAULT '',
`state` tinyint(3) NOT NULL DEFAULT '0',
`catid` int(10) unsigned NOT NULL DEFAULT '0',
`description` text NOT NULL,
`custombannercode` varchar(2048) NOT NULL,
`sticky` tinyint(1) unsigned NOT NULL DEFAULT '0',
`ordering` int(11) NOT NULL DEFAULT '0',
`metakey` text NOT NULL,
`params` text NOT NULL,
`own_prefix` tinyint(1) NOT NULL DEFAULT '0',
`metakey_prefix` varchar(255) NOT NULL DEFAULT '',
`purchase_type` tinyint(4) NOT NULL DEFAULT '-1',
`track_clicks` tinyint(4) NOT NULL DEFAULT '-1',
`track_impressions` tinyint(4) NOT NULL DEFAULT '-1',
`checked_out` int(10) unsigned NOT NULL DEFAULT '0',
`checked_out_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`publish_up` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`publish_down` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`reset` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`language` char(7) NOT NULL DEFAULT '',
`created_by` int(10) unsigned NOT NULL DEFAULT '0',
`created_by_alias` varchar(255) NOT NULL DEFAULT '',
`modified` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`modified_by` int(10) unsigned NOT NULL DEFAULT '0',
`version` int(10) unsigned NOT NULL DEFAULT '1',
PRIMARY KEY (`id`),
KEY `idx_state` (`state`),
KEY `idx_own_prefix` (`own_prefix`),
KEY `idx_metakey_prefix` (`metakey_prefix`),
KEY `idx_banner_catid` (`catid`),
KEY `idx_language` (`language`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `luacm_banner_clients`
--
CREATE TABLE IF NOT EXISTS `luacm_banner_clients` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL DEFAULT '',
`contact` varchar(255) NOT NULL DEFAULT '',
`email` varchar(255) NOT NULL DEFAULT '',
`extrainfo` text NOT NULL,
`state` tinyint(3) NOT NULL DEFAULT '0',
`checked_out` int(10) unsigned NOT NULL DEFAULT '0',
`checked_out_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`metakey` text NOT NULL,
`own_prefix` tinyint(4) NOT NULL DEFAULT '0',
`metakey_prefix` varchar(255) NOT NULL DEFAULT '',
`purchase_type` tinyint(4) NOT NULL DEFAULT '-1',
`track_clicks` tinyint(4) NOT NULL DEFAULT '-1',
`track_impressions` tinyint(4) NOT NULL DEFAULT '-1',
PRIMARY KEY (`id`),
KEY `idx_own_prefix` (`own_prefix`),
KEY `idx_metakey_prefix` (`metakey_prefix`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `luacm_banner_tracks`
--
CREATE TABLE IF NOT EXISTS `luacm_banner_tracks` (
`track_date` datetime NOT NULL,
`track_type` int(10) unsigned NOT NULL,
`banner_id` int(10) unsigned NOT NULL,
`count` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`track_date`,`track_type`,`banner_id`),
KEY `idx_track_date` (`track_date`),
KEY `idx_track_type` (`track_type`),
KEY `idx_banner_id` (`banner_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `luacm_categories`
--
CREATE TABLE IF NOT EXISTS `luacm_categories` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`asset_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'FK to the #__assets table.',
`parent_id` int(10) unsigned NOT NULL DEFAULT '0',
`lft` int(11) NOT NULL DEFAULT '0',
`rgt` int(11) NOT NULL DEFAULT '0',
`level` int(10) unsigned NOT NULL DEFAULT '0',
`path` varchar(255) NOT NULL DEFAULT '',
`extension` varchar(50) NOT NULL DEFAULT '',
`title` varchar(255) NOT NULL,
`alias` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '',
`note` varchar(255) NOT NULL DEFAULT '',
`description` mediumtext NOT NULL,
`published` tinyint(1) 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',
`access` int(10) unsigned NOT NULL DEFAULT '0',
`params` text NOT NULL,
`metadesc` varchar(1024) NOT NULL COMMENT 'The meta description for the page.',
`metakey` varchar(1024) NOT NULL COMMENT 'The meta keywords for the page.',
`metadata` varchar(2048) NOT NULL COMMENT 'JSON encoded metadata properties.',
`created_user_id` int(10) unsigned NOT NULL DEFAULT '0',
`created_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`modified_user_id` int(10) unsigned NOT NULL DEFAULT '0',
`modified_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`hits` int(10) unsigned NOT NULL DEFAULT '0',
`language` char(7) NOT NULL,
`version` int(10) unsigned NOT NULL DEFAULT '1',
PRIMARY KEY (`id`),
KEY `cat_idx` (`extension`,`published`,`access`),
KEY `idx_access` (`access`),
KEY `idx_checkout` (`checked_out`),
KEY `idx_path` (`path`),
KEY `idx_left_right` (`lft`,`rgt`),
KEY `idx_alias` (`alias`),
KEY `idx_language` (`language`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=8 ;
--
-- Dumping data for table `luacm_categories`
--
INSERT INTO `luacm_categories` (`id`, `asset_id`, `parent_id`, `lft`, `rgt`, `level`, `path`, `extension`, `title`, `alias`, `note`, `description`, `published`, `checked_out`, `checked_out_time`, `access`, `params`, `metadesc`, `metakey`, `metadata`, `created_user_id`, `created_time`, `modified_user_id`, `modified_time`, `hits`, `language`, `version`) VALUES
(1, 0, 0, 0, 13, 0, '', 'system', 'ROOT', 'root', '', '', 1, 0, '0000-00-00 00:00:00', 1, '{}', '', '', '', 42, '2011-01-01 00:00:01', 0, '0000-00-00 00:00:00', 0, '*', 1),
(2, 27, 1, 1, 2, 1, 'uncategorised', 'com_content', 'Uncategorised', 'uncategorised', '', '', 1, 0, '0000-00-00 00:00:00', 1, '{"target":"","image":""}', '', '', '{"page_title":"","author":"","robots":""}', 42, '2011-01-01 00:00:01', 0, '0000-00-00 00:00:00', 0, '*', 1),
(3, 28, 1, 3, 4, 1, 'uncategorised', 'com_banners', 'Uncategorised', 'uncategorised', '', '', 1, 0, '0000-00-00 00:00:00', 1, '{"target":"","image":"","foobar":""}', '', '', '{"page_title":"","author":"","robots":""}', 42, '2011-01-01 00:00:01', 0, '0000-00-00 00:00:00', 0, '*', 1),
(4, 29, 1, 5, 6, 1, 'uncategorised', 'com_contact', 'Uncategorised', 'uncategorised', '', '', 1, 0, '0000-00-00 00:00:00', 1, '{"target":"","image":""}', '', '', '{"page_title":"","author":"","robots":""}', 42, '2011-01-01 00:00:01', 0, '0000-00-00 00:00:00', 0, '*', 1),
(5, 30, 1, 7, 8, 1, 'uncategorised', 'com_newsfeeds', 'Uncategorised', 'uncategorised', '', '', 1, 0, '0000-00-00 00:00:00', 1, '{"target":"","image":""}', '', '', '{"page_title":"","author":"","robots":""}', 42, '2011-01-01 00:00:01', 0, '0000-00-00 00:00:00', 0, '*', 1),
(6, 31, 1, 9, 10, 1, 'uncategorised', 'com_weblinks', 'Uncategorised', 'uncategorised', '', '', 1, 0, '0000-00-00 00:00:00', 1, '{"target":"","image":""}', '', '', '{"page_title":"","author":"","robots":""}', 42, '2011-01-01 00:00:01', 0, '0000-00-00 00:00:00', 0, '*', 1),
(7, 32, 1, 11, 12, 1, 'uncategorised', 'com_users', 'Uncategorised', 'uncategorised', '', '', 1, 0, '0000-00-00 00:00:00', 1, '{"target":"","image":""}', '', '', '{"page_title":"","author":"","robots":""}', 42, '2011-01-01 00:00:01', 0, '0000-00-00 00:00:00', 0, '*', 1);
-- --------------------------------------------------------
--
-- Table structure for table `luacm_contact_details`
--
CREATE TABLE IF NOT EXISTS `luacm_contact_details` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL DEFAULT '',
`alias` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '',
`con_position` varchar(255) DEFAULT NULL,
`address` text,
`suburb` varchar(100) DEFAULT NULL,
`state` varchar(100) DEFAULT NULL,
`country` varchar(100) DEFAULT NULL,
`postcode` varchar(100) DEFAULT NULL,
`telephone` varchar(255) DEFAULT NULL,
`fax` varchar(255) DEFAULT NULL,
`misc` mediumtext,
`image` varchar(255) DEFAULT NULL,
`email_to` varchar(255) DEFAULT NULL,
`default_con` tinyint(1) unsigned NOT NULL DEFAULT '0',
`published` tinyint(1) NOT NULL DEFAULT '0',
`checked_out` int(10) unsigned NOT NULL DEFAULT '0',
`checked_out_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`ordering` int(11) NOT NULL DEFAULT '0',
`params` text NOT NULL,
`user_id` int(11) NOT NULL DEFAULT '0',
`catid` int(11) NOT NULL DEFAULT '0',
`access` int(10) unsigned NOT NULL DEFAULT '0',
`mobile` varchar(255) NOT NULL DEFAULT '',
`webpage` varchar(255) NOT NULL DEFAULT '',
`sortname1` varchar(255) NOT NULL,
`sortname2` varchar(255) NOT NULL,
`sortname3` varchar(255) NOT NULL,
`language` char(7) NOT NULL,
`created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`created_by` int(10) unsigned NOT NULL DEFAULT '0',
`created_by_alias` varchar(255) NOT NULL DEFAULT '',
`modified` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`modified_by` int(10) unsigned NOT NULL DEFAULT '0',
`metakey` text NOT NULL,
`metadesc` text NOT NULL,
`metadata` text NOT NULL,
`featured` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT 'Set if article is featured.',
`xreference` varchar(50) NOT NULL COMMENT 'A reference to enable linkages to external data sets.',
`publish_up` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`publish_down` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`version` int(10) unsigned NOT NULL DEFAULT '1',
`hits` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `idx_access` (`access`),
KEY `idx_checkout` (`checked_out`),
KEY `idx_state` (`published`),
KEY `idx_catid` (`catid`),
KEY `idx_createdby` (`created_by`),
KEY `idx_featured_catid` (`featured`,`catid`),
KEY `idx_language` (`language`),
KEY `idx_xreference` (`xreference`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `luacm_content`
--
CREATE TABLE IF NOT EXISTS `luacm_content` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`asset_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'FK to the #__assets table.',
`title` varchar(255) NOT NULL DEFAULT '',
`alias` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '',
`introtext` mediumtext NOT NULL,
`fulltext` mediumtext NOT NULL,
`state` tinyint(3) NOT NULL DEFAULT '0',
`catid` int(10) unsigned NOT NULL DEFAULT '0',
`created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`created_by` int(10) unsigned NOT NULL DEFAULT '0',
`created_by_alias` varchar(255) NOT NULL DEFAULT '',
`modified` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`modified_by` int(10) unsigned NOT NULL DEFAULT '0',
`checked_out` int(10) unsigned NOT NULL DEFAULT '0',
`checked_out_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`publish_up` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`publish_down` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`images` text NOT NULL,
`urls` text NOT NULL,
`attribs` varchar(5120) NOT NULL,
`version` int(10) unsigned NOT NULL DEFAULT '1',
`ordering` int(11) NOT NULL DEFAULT '0',
`metakey` text NOT NULL,
`metadesc` text NOT NULL,
`access` int(10) unsigned NOT NULL DEFAULT '0',
`hits` int(10) unsigned NOT NULL DEFAULT '0',
`metadata` text NOT NULL,
`featured` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT 'Set if article is featured.',
`language` char(7) NOT NULL COMMENT 'The language code for the article.',
`xreference` varchar(50) NOT NULL COMMENT 'A reference to enable linkages to external data sets.',
PRIMARY KEY (`id`),
KEY `idx_access` (`access`),
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_language` (`language`),
KEY `idx_xreference` (`xreference`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=26 ;
--
-- Dumping data for table `luacm_content`
--
INSERT INTO `luacm_content` (`id`, `asset_id`, `title`, `alias`, `introtext`, `fulltext`, `state`, `catid`, `created`, `created_by`, `created_by_alias`, `modified`, `modified_by`, `checked_out`, `checked_out_time`, `publish_up`, `publish_down`, `images`, `urls`, `attribs`, `version`, `ordering`, `metakey`, `metadesc`, `access`, `hits`, `metadata`, `featured`, `language`, `xreference`) VALUES
(1, 36, 'Test PHP', 'test-php', '<?php\r\n \r\n function connect_db($name)\r\n{\r\ntry\r\n{\r\n@ $con = mysqli_connect(''localhost'', ''root'', ''OgfTt&TTtG?'', $name);\r\n\r\nif (mysqli_connect_errno()) {\r\nprintf("Connect failed: %s\\n", mysqli_connect_error());\r\nexit();\r\n}\r\n\r\n$con->select_db($name);\r\n\r\nif (!$con->set_charset(''utf8''))\r\nprintf("Error loading character set utf8: %s\\n", $mysqli->error);\r\n\r\n//echo $con;\r\n\r\nreturn $con;\r\n}\r\ncatch (Exception $e)\r\n{\r\nreturn -1;\r\n}\r\n }\r\n \r\n?>\r\n<html>\r\n<head>\r\n<script type="text/javascript" src="http://www.google.com/jsapi"></script>\r\n<script type="text/javascript">google.load("mootools", "1.1.2");</script>\r\n<script type="text/javascript">\r\n\r\n function button_click()\r\n {\r\n //alert(''Button clicked'');\r\n document.getElementById(''div2'').innerHTML += "''<?php echo date(''d-m-Y H:i:s'');?>''";\r\n }\r\n \r\n</script>\r\n</head>\r\n\r\n<body>\r\n\r\n \r\n <input type="button" id="button" title="button" value="button" onClick="javascript:button_click();"/>\r\n <div id="div2"></div>\r\n\r\n</body>\r\n\r\n\r\n<?php\r\n // connect to DB\r\n$con = connect_db(''central_db'');\r\n\r\n\r\n//var_dump($this->get(''status''));\r\n\r\n// define query\r\n$query_string = "SELECT * FROM users WHERE username = ''q''";\r\n//var_dump($query_string);\r\n// execute query\r\n$result = $con->query($query_string);\r\n//var_dump($result);\r\n\r\n// fetch results (one or none entry)\r\nwhile ($row = $result->fetch_array())\r\n{\r\n\r\n$id = intval($row[''user_id'']);\r\n\r\n$users[$id] = array(\r\n''id'' => $id,\r\n''user_team'' => intval($row[''user_team'']),\r\n''name_user'' => $row[''name_user''],\r\n''surname_user'' => $row[''surname_user''],\r\n''username'' => $row[''username''],\r\n''password'' => $row[''password''],\r\n''email'' => $row[''email''],\r\n''amka'' => $row[''amka''],\r\n''status'' => $row[''status''],\r\n''department'' => $row[''department'']\r\n\r\n);\r\n\r\n}\r\n\r\nvar_dump($users);\r\n\r\n?>', '', -2, 2, '2013-08-03 11:36:51', 385, '', '2013-08-05 09:41:51', 385, 0, '0000-00-00 00:00:00', '2013-08-03 11:36:51', '0000-00-00 00:00:00', '{"image_intro":"","float_intro":"","image_intro_alt":"","image_intro_caption":"","image_fulltext":"","float_fulltext":"","image_fulltext_alt":"","image_fulltext_caption":""}', '{"urla":false,"urlatext":"","targeta":"","urlb":false,"urlbtext":"","targetb":"","urlc":false,"urlctext":"","targetc":""}', '{"show_title":"","link_titles":"","show_tags":"","show_intro":"","info_block_position":"","show_category":"","link_category":"","show_parent_category":"","link_parent_category":"","show_author":"","link_author":"","show_create_date":"","show_modify_date":"","show_publish_date":"","show_item_navigation":"","show_icons":"","show_print_icon":"","show_email_icon":"","show_vote":"","show_hits":"","show_noauth":"","urls_position":"","alternative_readmore":"","article_layout":"","show_publishing_options":"","show_article_options":"","show_urls_images_backend":"","show_urls_images_frontend":""}', 21, 4, '', '', 2, 39, '{"robots":"","author":"","rights":"","xreference":""}', 0, '*', ''),
(2, 37, 'Εγγραφή Χρήστη', 'user-registration', '<?php\r\n \r\n function connect_db($name)\r\n {\r\n try\r\n {\r\n @ $con = mysqli_connect(''localhost'', ''root'', ''OgfTt&TTtG?'', $name);\r\n \r\n if (mysqli_connect_errno()) {\r\n printf("Connect failed: %s\\n", mysqli_connect_error());\r\n exit();\r\n }\r\n \r\n $con->select_db($name);\r\n \r\n if (!$con->set_charset(''utf8''))\r\n printf("Error loading character set utf8: %s\\n", $mysqli->error);\r\n \r\n //echo $con;\r\n \r\n return $con;\r\n }\r\n catch (Exception $e)\r\n {\r\n return -1;\r\n }\r\n }\r\n \r\n \r\n?>\r\n\r\n\r\n<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\r\n<html xmlns="http://www.w3.org/1999/xhtml">\r\n<head>\r\n<script type="text/javascript" src="http://www.google.com/jsapi"></script>\r\n<script type="text/javascript">google.load("mootools", "1.1.2");</script>\r\n<script type="text/javascript">\r\n \r\n \r\n \r\n \r\n function validate_username(username)\r\n {\r\n if((username.value.length<6 || username.value.length>25)){\r\n alert(''Το Όνομα Χρήστη πρέπει να είναι μεταξύ 6 και 25 χαρακτήρων'');\r\n username.focus();\r\n return false;\r\n }\r\n return true;\r\n }\r\n \r\n \r\n \r\n \r\n function validate_username_space(username)\r\n {\r\n var reg = /^[A-Za-zΑ-Ωα-ω]/;\r\n if(reg.test(username.value) == false){\r\n alert(''Το ονομά σας θα πρέπει να αρχίζει με γράμμα'');\r\n username.focus();\r\n }\r\n else return true;\r\n }\r\n \r\n \r\n \r\n \r\n function validate_password(password)\r\n {\r\n if(password.value.length<6 || password.value.length>25){\r\n alert(''Ο Κωδικός Χρήστη πρέπει να είναι μεταξύ 6 και 25 χαρακτήρων'');\r\n password.focus();\r\n return false;\r\n }\r\n return true;\r\n }\r\n \r\n \r\n \r\n \r\n function validate_email(email) {\r\n var reg = /^([A-Za-z0-9_\\-\\.])+\\@([A-Za-z0-9_\\-\\.])+\\.([A-Za-z]{2,4})$/;\r\n if(reg.test(email.value) == false) {\r\n alert(''Μη έγκυρη Διεύθυνση Ηλεκτρονικού Ταχυδρομείου'');\r\n email.focus();\r\n return false;\r\n }\r\n return true;\r\n }\r\n \r\n \r\n \r\n \r\n function same(str1, str2)\r\n {\r\n if(str1.value != str2.value){\r\n alert("Οι κωδικοί που εισάγατε δεν είναι όμοιοι");\r\n str2.focus();\r\n return false;\r\n }\r\n return true;\r\n }\r\n \r\n \r\n \r\n \r\n \r\n function validate_nameOrSurname(nameOrSurname)\r\n {\r\n if(nameOrSurname.value.length<1){\r\n alert(''Δεν έχετε ορίσει όνομα ή επώνυμο'');\r\n nameOrSurname.focus();\r\n return false;\r\n }\r\n return true;\r\n }\r\n \r\n \r\n \r\n \r\n function validate_amka(amka)\r\n {\r\n if(amka.value.length!=11){\r\n alert(''Ο ΑΜΚΑ θα πρέπει να είναι ακριβώς 11 αριθμοί'');\r\n amka.focus();\r\n return false;\r\n }\r\n return true;\r\n }\r\n \r\n \r\n \r\n \r\n function validate_register(username, password1, password2, email, name_user, surname_user, amka)\r\n {\r\n if(!(validate_username(username) && validate_username_space(username) && validate_password(password1) && validate_password(password2) && same(password1, password2) && validate_email(email) && validate_nameOrSurname(name_user) && validate_nameOrSurname(surname_user) && validate_amka(amka))) {\r\n return false;\r\n }\r\n return true; \r\n }\r\n \r\n \r\n \r\n \r\n \r\n</script>\r\n</head>\r\n\r\n\r\n<body>\r\n \r\n \r\n <form action="" name="register" method="post" onSubmit="javascript:return validate_register(username, password1, password2, email, name_user, surname_user, amka);">\r\n <table border="0" >\r\n <tr>\r\n <td><label for="uname">Εισάγετε Όνομα χρήστη:</label></td>\r\n <td><input name="username" id="uname" type="text" size="20" maxlength="30" autocomplete="off" /></td>\r\n </tr>\r\n <tr>\r\n <td><label for="pword1">Εισάγετε Κωδικό χρήστη:</label></td> \r\n <td><input name="password1" id="pword1" type="password" size="20" maxlength="30" autocomplete="off" /></td>\r\n </tr>\r\n <tr>\r\n <td><label for="pword2">Επαναλάβετε Κωδικό χρήστη: </label></td> \r\n <td><input name="password2" id="pword2" type="password" size="20" maxlength="30" autocomplete="off" /></td>\r\n </tr>\r\n <tr>\r\n <td><label for="eMail">Εισάγετε Email:</label></td>\r\n <td><input name="email" id="e-mail" type="text" size="20" maxlength="50" autocomplete="off" /></td>\r\n </tr>\r\n <tr>\r\n <td><label for="uname">Εισάγετε Όνομα:</label></td>\r\n <td><input name="name_user" id="name" type="text" size="20" maxlength="30" autocomplete="off" /></td>\r\n </tr>\r\n <tr>\r\n <td><label for="pword1">Εισάγετε Επώνυμο:</label></td> \r\n <td><input name="surname_user" id="surname" type="text" size="20" maxlength="30" autocomplete="off" /></td>\r\n </tr>\r\n <tr>\r\n <td><label for="pword2">Εισάγετε Ομάδα χρήστη: </label></td> \r\n <td><!--<input name="user_team" id="pword2" type="text" size="20" maxlength="30" autocomplete="off" />-->\r\n <select name="team">\r\n <?php\r\n \r\n $con = connect_db(''central_db'');\r\n \r\n // define query\r\n $query_string = "SELECT team_name FROM user_team ORDER BY team_name";\r\n //var_dump($query_string);\r\n // execute query\r\n $result = $con->query($query_string);\r\n //var_dump($result);\r\n $con->close();\r\n \r\n $i=1;\r\n while ($row = $result->fetch_array())\r\n {\r\n if($i==1) echo ''<option value="''.$row[''team_name''].''" selected="selected">''.$row[''team_name''].''</option>'';\r\n else echo ''<option value="''.$row[''team_name''].''">''.$row[''team_name''].''</option>'';\r\n $i++;\r\n }\r\n \r\n ?>\r\n </select>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td><label for="eMail">Εισάγετε ΑΜΚΑ:</label></td>\r\n <td><input name="amka" id="amka" type="text" size="20" maxlength="50" autocomplete="off" /></td>\r\n </tr>\r\n <tr>\r\n <td><label for="eMail">Εισάγετε Τμήμα:</label></td>\r\n <td><!--<input name="department" id="eMail" type="text" size="20" maxlength="50" autocomplete="off" /></td>-->\r\n <select name="department">\r\n <?php\r\n \r\n $con = connect_db(''central_db'');\r\n \r\n // define query\r\n $query_string = "SELECT department_name FROM departments ORDER BY department_name";\r\n //var_dump($query_string);\r\n // execute query\r\n $result = $con->query($query_string);\r\n //var_dump($result);\r\n $con->close();\r\n \r\n $i=1;\r\n while ($row = $result->fetch_array())\r\n {\r\n if($i==1) echo ''<option value="''.$row[''department_name''].''" selected="selected">''.$row[''department_name''].''</option>'';\r\n else echo ''<option value="''.$row[''department_name''].''">''.$row[''department_name''].''</option>'';\r\n $i++;\r\n }\r\n \r\n ?>\r\n </select>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td><label>Εισάγετε Κατάσταση:</label></td>\r\n <td><input name="status" id="status" type="text" size="20" maxlength="50" autocomplete="off" /></td>\r\n </tr>\r\n <tr>\r\n <td><label>Επιλέξτε Τύπους Καθηκόντων:</label></td>\r\n <td>\r\n <input type="checkbox" name="vardia" value="Βάρδια">Βάρδια<br>\r\n <input type="checkbox" name="efimeria" value="Εφημερία">Εφημερία<br>\r\n <input type="checkbox" name="kathimerina" value="Καθημερινά Ιατρεία">Καθημερινά Ιατρεία<br>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td><input type="submit" value="Καταχώριση Γενικών Πληροφοριών" style="font-size:1em" class="btn btn-success"/></td>\r\n </tr>\r\n </table>\r\n </form>\r\n\r\n</body>\r\n</html>\r\n\r\n\r\n\r\n<?php\r\n \r\n \r\n if (isset($_POST[''username'']))\r\n {\r\n \r\n $con = connect_db(''central_db'');\r\n \r\n $query_string = "SELECT username FROM users WHERE username=''".$_POST[''username'']."''";\r\n $result = $con->query($query_string);\r\n \r\n \r\n // den vre8ike kati opote kanw insert\r\n if ($result->fetch_array() == NULL)\r\n {\r\n \r\n $user_team_str = $_POST[''team''];\r\n $name_user = $_POST[''name_user''];\r\n $surname_user = $_POST[''surname_user''];\r\n $username = $_POST[''username''];\r\n $password = $_POST[''password1''];\r\n $email = $_POST[''email''];\r\n $amka = $_POST[''amka''];\r\n $status = $_POST[''status''];\r\n $department = $_POST[''department''];\r\n \r\n \r\n $query_string = "SELECT team_id FROM user_team WHERE team_name=''".$user_team_str."''";\r\n //var_dump($query_string);\r\n // execute query\r\n $result2 = $con->query($query_string);\r\n $row2 = $result2->fetch_array();\r\n $user_team_int = intval($row2[''team_id'']);\r\n \r\n \r\n // define query\r\n $query_string = "INSERT INTO users (user_team, name_user, surname_user, username, password, email, amka, status, department) VALUES (".$user_team_int.", ''".$name_user."'', ''".$surname_user."'', ''".$username."'', ''".$password."'', ''".$email."'', ''".$amka."'', ''".$status."'', ''".$department."'');";\r\n //var_dump($query_string);\r\n // execute query\r\n $result3 = $con->query($query_string);\r\n //var_dump($result);\r\n \r\n \r\n $query_string = "SELECT user_id FROM users WHERE username=''".$username."''";\r\n $result4 = $con->query($query_string);\r\n $row4 = $result4->fetch_array();\r\n \r\n $query_string = "INSERT INTO user_id (user_id, step) VALUES (".intval($row4[''user_id'']).", 2)";\r\n //var_dump($query_string);\r\n // execute query\r\n $result4 = $con->query($query_string);\r\n \r\n \r\n // duty types\r\n \r\n if (isset($_POST[''efimeria'']))\r\n {\r\n $query_string = "INSERT INTO declared_duties VALUES (NULL, ".intval($row4[''user_id'']).", ''".$_POST[''efimeria'']."'')";\r\n $con->query($query_string);\r\n }\r\n if (isset($_POST[''vardia'']))\r\n {\r\n $query_string = "INSERT INTO declared_duties VALUES (NULL, ".intval($row4[''user_id'']).", ''".$_POST[''vardia'']."'')";\r\n $con->query($query_string);\r\n }\r\n if (isset($_POST[''kathimerina'']))\r\n {\r\n $query_string = "INSERT INTO declared_duties VALUES (NULL, ".intval($row4[''user_id'']).", ''".$_POST[''kathimerina'']."'')";\r\n $con->query($query_string);\r\n }\r\n \r\n \r\n $con->close();\r\n \r\n //$dir = explode( "\\\\", getcwd() );\r\n //echo ''Location: http://'' + $_SERVER[''SERVER_NAME''] + ''/'' + $dir[count($dir)-1] + ''/index.php/doctor-info'';\r\n if ($user_team_str == ''ΙΑΤΡΙΚΟ ΠΡΟΣΩΠΙΚΟ'') header(''Location: index.php/doctor-info'');\r\n else if ($user_team_str == ''ΝΟΣΗΛΕΥΤΙΚΟ ΠΡΟΣΩΠΙΚΟ'') header(''Location: http://'' + $_SERVER[''SERVER_NAME''] + ''/'' + $dir[count($dir)-1] + ''/index.php/nurse-info'');\r\n else header(''Location: http://'' + $_SERVER[''SERVER_NAME''] + ''/'' + $dir[count($dir)-1] + ''/index.php/staff-info'');\r\n }\r\n else\r\n {\r\n header(''Location: http://'' + $_SERVER[''SERVER_NAME''] + ''/'' + $dir[count($dir)-1] + ''/index.php/error'');\r\n }\r\n \r\n \r\n }\r\n \r\n\r\n\r\n?>', '', 1, 2, '2013-08-05 09:48:56', 385, '', '2013-09-03 19:51:57', 385, 0, '0000-00-00 00:00:00', '2013-08-05 09:48:56', '0000-00-00 00:00:00', '{"image_intro":"","float_intro":"","image_intro_alt":"","image_intro_caption":"","image_fulltext":"","float_fulltext":"","image_fulltext_alt":"","image_fulltext_caption":""}', '{"urla":false,"urlatext":"","targeta":"","urlb":false,"urlbtext":"","targetb":"","urlc":false,"urlctext":"","targetc":""}', '{"show_title":"","link_titles":"","show_tags":"","show_intro":"","info_block_position":"","show_category":"","link_category":"","show_parent_category":"","link_parent_category":"","show_author":"","link_author":"","show_create_date":"","show_modify_date":"","show_publish_date":"","show_item_navigation":"","show_icons":"","show_print_icon":"","show_email_icon":"","show_vote":"","show_hits":"","show_noauth":"","urls_position":"","alternative_readmore":"","article_layout":"","show_publishing_options":"","show_article_options":"","show_urls_images_backend":"","show_urls_images_frontend":""}', 59, 23, '', '', 2, 198, '{"robots":"","author":"","rights":"","xreference":""}', 0, '*', ''),
(3, 38, 'Εισαγωγή Πληροφοριών Ιατρικού Προσωπικού', '2013-08-05-10-26-49', '<?php\r\n \r\n function connect_db($name)\r\n {\r\n try\r\n {\r\n @ $con = mysqli_connect(''localhost'', ''root'', ''OgfTt&TTtG?'', $name);\r\n \r\n if (mysqli_connect_errno()) {\r\n printf("Connect failed: %s\\n", mysqli_connect_error());\r\n exit();\r\n }\r\n \r\n $con->select_db($name);\r\n \r\n if (!$con->set_charset(''utf8''))\r\n printf("Error loading character set utf8: %s\\n", $mysqli->error);\r\n \r\n //echo $con;\r\n \r\n return $con;\r\n }\r\n catch (Exception $e)\r\n {\r\n return -1;\r\n }\r\n }\r\n \r\n \r\n?>\r\n\r\n\r\n<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\r\n<html xmlns="http://www.w3.org/1999/xhtml">\r\n<head>\r\n<script type="text/javascript" src="http://www.google.com/jsapi"></script>\r\n<script type="text/javascript">google.load("mootools", "1.1.2");</script>\r\n<script type="text/javascript">\r\n \r\n \r\n function validate_register(thesi)\r\n {\r\n if(thesi.value.length<1){\r\n alert(''Δεν έχετε ορίσει θέση'');\r\n thesi.focus();\r\n return false;\r\n }\r\n return true;\r\n }\r\n \r\n \r\n \r\n</script>\r\n</head>\r\n\r\n\r\n<body>\r\n \r\n \r\n \r\n <form action="index.php/doctor-info" name="register" method="post" onSubmit="javascript:return validate_register(thesi);">\r\n <table border="0" >\r\n <tr>\r\n <td><label>Εισάγετε Θέση:</label></td>\r\n <td><input name="thesi" id="uname" type="text" size="20" maxlength="30" autocomplete="off" /></td>\r\n </tr>\r\n <tr>\r\n <td><label>Επιλέξτε Βαθμίδα: </label></td> \r\n <td>\r\n <select name="bathmida">\r\n <?php\r\n \r\n $con = connect_db(''central_db'');\r\n \r\n // define query\r\n $query_string = "SELECT name FROM bathmides WHERE team_id=1 ORDER BY name";\r\n //var_dump($query_string);\r\n // execute query\r\n $result = $con->query($query_string);\r\n //var_dump($result);\r\n $con->close();\r\n \r\n $i=1;\r\n while ($row = $result->fetch_array())\r\n {\r\n if($i==1) echo ''<option value="''.$row[''name''].''" selected="selected">''.$row[''name''].''</option>'';\r\n else echo ''<option value="''.$row[''name''].''">''.$row[''name''].''</option>'';\r\n $i++;\r\n }\r\n \r\n ?>\r\n </select>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td><label>Επιλέξτε Ειδικότητα:</label></td>\r\n <td><!--<input name="department" id="eMail" type="text" size="20" maxlength="50" autocomplete="off" /></td>-->\r\n <select name="eidikotita">\r\n <?php\r\n \r\n $con = connect_db(''central_db'');\r\n \r\n // define query\r\n $query_string = "SELECT name FROM eidikotites WHERE team_id=1 ORDER BY name";\r\n //var_dump($query_string);\r\n // execute query\r\n $result = $con->query($query_string);\r\n //var_dump($result);\r\n $con->close();\r\n \r\n $i=1;\r\n while ($row = $result->fetch_array())\r\n {\r\n if($i==1) echo ''<option value="''.$row[''name''].''" selected="selected">''.$row[''name''].''</option>'';\r\n else echo ''<option value="''.$row[''name''].''">''.$row[''name''].''</option>'';\r\n $i++;\r\n }\r\n \r\n ?>\r\n </select>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td><input type="submit" value="Καταχώριση Πληροφοριών Ιατρού" style="font-size:1em" class="btn btn-success"/></td>\r\n <td></td>\r\n <td><input type="button" value="Ακύρωση Εγγραφής" onclick="window.location.href=''index.php/cancel''" style="font-size:1em" class="btn btn-danger"/></td>\r\n </tr>\r\n </table>\r\n </form>\r\n\r\n</body>\r\n</html>\r\n\r\n\r\n\r\n<?php\r\n \r\n \r\n if (isset($_POST[''thesi'']))\r\n {\r\n \r\n $con = connect_db(''central_db'');\r\n \r\n $query_string = "SELECT * FROM user_id";\r\n $result = $con->query($query_string);\r\n \r\n \r\n while ($row = $result->fetch_array())\r\n {\r\n \r\n $thesi = $_POST[''thesi''];\r\n $bathmida = $_POST[''bathmida''];\r\n $eidikotita = $_POST[''eidikotita''];\r\n \r\n \r\n // define query\r\n $query_string = "INSERT INTO doctor_users VALUES (".intval($row[''user_id'']).", ''".$thesi."'', 1, ''".$bathmida."'', ''".$eidikotita."'');";\r\n var_dump($query_string);\r\n $con->query($query_string);\r\n \r\n $con->close();\r\n \r\n header(''Location: index.php/phone-info'');\r\n }\r\n \r\n \r\n if (!$result->num_rows) header(''Location: index.php/error'');\r\n \r\n \r\n \r\n }\r\n \r\n\r\n\r\n?>', '', 1, 2, '2013-08-05 10:26:49', 385, '', '2013-08-22 17:30:07', 385, 0, '0000-00-00 00:00:00', '2013-08-05 10:26:49', '0000-00-00 00:00:00', '{"image_intro":"","float_intro":"","image_intro_alt":"","image_intro_caption":"","image_fulltext":"","float_fulltext":"","image_fulltext_alt":"","image_fulltext_caption":""}', '{"urla":false,"urlatext":"","targeta":"","urlb":false,"urlbtext":"","targetb":"","urlc":false,"urlctext":"","targetc":""}', '{"show_title":"","link_titles":"","show_tags":"","show_intro":"","info_block_position":"","show_category":"","link_category":"","show_parent_category":"","link_parent_category":"","show_author":"","link_author":"","show_create_date":"","show_modify_date":"","show_publish_date":"","show_item_navigation":"","show_icons":"","show_print_icon":"","show_email_icon":"","show_vote":"","show_hits":"","show_noauth":"","urls_position":"","alternative_readmore":"","article_layout":"","show_publishing_options":"","show_article_options":"","show_urls_images_backend":"","show_urls_images_frontend":""}', 36, 22, '', '', 2, 114, '{"robots":"","author":"","rights":"","xreference":""}', 0, '*', ''),
(4, 39, 'Εισαγωγή Πληροφοριών Νοσηλευτικού Προσωπικού', '2013-08-06-16-38-38', '<?php\r\n \r\n function connect_db($name)\r\n {\r\n try\r\n {\r\n @ $con = mysqli_connect(''localhost'', ''root'', ''OgfTt&TTtG?'', $name);\r\n \r\n if (mysqli_connect_errno()) {\r\n printf("Connect failed: %s\\n", mysqli_connect_error());\r\n exit();\r\n }\r\n \r\n $con->select_db($name);\r\n \r\n if (!$con->set_charset(''utf8''))\r\n printf("Error loading character set utf8: %s\\n", $mysqli->error);\r\n \r\n //echo $con;\r\n \r\n return $con;\r\n }\r\n catch (Exception $e)\r\n {\r\n return -1;\r\n }\r\n }\r\n \r\n \r\n?>\r\n\r\n\r\n<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\r\n<html xmlns="http://www.w3.org/1999/xhtml">\r\n<head>\r\n<script type="text/javascript" src="http://www.google.com/jsapi"></script>\r\n<script type="text/javascript">google.load("mootools", "1.1.2");</script>\r\n<script type="text/javascript">\r\n \r\n \r\n function validate_register(thesi)\r\n {\r\n if(thesi.value.length<1){\r\n alert(''Δεν έχετε ορίσει θέση'');\r\n thesi.focus();\r\n return false;\r\n }\r\n return true;\r\n }\r\n \r\n \r\n \r\n</script>\r\n</head>\r\n\r\n\r\n<body>\r\n \r\n \r\n \r\n <form action="index.php/nurse-info" name="register" method="post" onSubmit="javascript:return validate_register(thesi);">\r\n <table border="0" >\r\n <tr>\r\n <td><label>Εισάγετε Θέση:</label></td>\r\n <td><input name="thesi" id="uname" type="text" size="20" maxlength="30" autocomplete="off" /></td>\r\n </tr>\r\n <tr>\r\n <td><label>Επιλέξτε Βαθμίδα: </label></td> \r\n <td>\r\n <select name="bathmida">\r\n <?php\r\n \r\n $con = connect_db(''central_db'');\r\n \r\n // define query\r\n $query_string = "SELECT name FROM bathmides WHERE team_id=2 ORDER BY name";\r\n //var_dump($query_string);\r\n // execute query\r\n $result = $con->query($query_string);\r\n //var_dump($result);\r\n $con->close();\r\n \r\n $i=1;\r\n while ($row = $result->fetch_array())\r\n {\r\n if($i==1) echo ''<option value="''.$row[''name''].''" selected="selected">''.$row[''name''].''</option>'';\r\n else echo ''<option value="''.$row[''name''].''">''.$row[''name''].''</option>'';\r\n $i++;\r\n }\r\n \r\n ?>\r\n </select>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td><label>Επιλέξτε Ειδικότητα:</label></td>\r\n <td><!--<input name="department" id="eMail" type="text" size="20" maxlength="50" autocomplete="off" /></td>-->\r\n <select name="eidikotita">\r\n <?php\r\n \r\n $con = connect_db(''central_db'');\r\n \r\n // define query\r\n $query_string = "SELECT name FROM eidikotites WHERE team_id=2 ORDER BY name";\r\n //var_dump($query_string);\r\n // execute query\r\n $result = $con->query($query_string);\r\n //var_dump($result);\r\n $con->close();\r\n \r\n $i=1;\r\n while ($row = $result->fetch_array())\r\n {\r\n if($i==1) echo ''<option value="''.$row[''name''].''" selected="selected">''.$row[''name''].''</option>'';\r\n else echo ''<option value="''.$row[''name''].''">''.$row[''name''].''</option>'';\r\n $i++;\r\n }\r\n \r\n ?>\r\n </select>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td><input type="submit" value="Καταχώριση Πληροφοριών Νοσηλευτή" style="font-size:1em" class="btn btn-success"/></td>\r\n <td></td>\r\n <td><input type="button" value="Ακύρωση Εγγραφής" onclick="window.location.href=''index.php/cancel''" style="font-size:1em" class="btn btn-danger"/></td>\r\n </tr>\r\n </table>\r\n </form>\r\n\r\n</body>\r\n</html>\r\n\r\n\r\n\r\n<?php\r\n \r\n \r\n if (isset($_POST[''thesi'']))\r\n {\r\n \r\n $con = connect_db(''central_db'');\r\n \r\n $query_string = "SELECT * FROM user_id";\r\n $result = $con->query($query_string);\r\n \r\n \r\n while ($row = $result->fetch_array())\r\n {\r\n \r\n $thesi = $_POST[''thesi''];\r\n $bathmida = $_POST[''bathmida''];\r\n $eidikotita = $_POST[''eidikotita''];\r\n \r\n \r\n // define query\r\n $query_string = "INSERT INTO nurse_user VALUES (".intval($row[''user_id'']).", ''".$thesi."'', 2, ''".$bathmida."'', ''".$eidikotita."'');";\r\n \r\n $con->query($query_string);\r\n \r\n $con->close();\r\n \r\n header(''Location: index.php/phone-info'');\r\n \r\n break;\r\n }\r\n \r\n \r\n if (!$result->num_rows) header(''Location: index.php/error'');\r\n \r\n \r\n \r\n }\r\n \r\n\r\n\r\n?>', '', 1, 2, '2013-08-06 16:38:38', 385, '', '2013-08-10 12:03:43', 385, 0, '0000-00-00 00:00:00', '2013-08-06 16:38:38', '0000-00-00 00:00:00', '{"image_intro":"","float_intro":"","image_intro_alt":"","image_intro_caption":"","image_fulltext":"","float_fulltext":"","image_fulltext_alt":"","image_fulltext_caption":""}', '{"urla":false,"urlatext":"","targeta":"","urlb":false,"urlbtext":"","targetb":"","urlc":false,"urlctext":"","targetc":""}', '{"show_title":"","link_titles":"","show_tags":"","show_intro":"","info_block_position":"","show_category":"","link_category":"","show_parent_category":"","link_parent_category":"","show_author":"","link_author":"","show_create_date":"","show_modify_date":"","show_publish_date":"","show_item_navigation":"","show_icons":"","show_print_icon":"","show_email_icon":"","show_vote":"","show_hits":"","show_noauth":"","urls_position":"","alternative_readmore":"","article_layout":"","show_publishing_options":"","show_article_options":"","show_urls_images_backend":"","show_urls_images_frontend":""}', 12, 21, '', '', 2, 27, '{"robots":"","author":"","rights":"","xreference":""}', 0, '*', ''),
(5, 40, 'Εισαγωγή Πληροφοριών Διοικητικού Προσωπικού', '2013-08-06-16-39-10', '<?php\r\n \r\n function connect_db($name)\r\n {\r\n try\r\n {\r\n @ $con = mysqli_connect(''localhost'', ''root'', ''OgfTt&TTtG?'', $name);\r\n \r\n if (mysqli_connect_errno()) {\r\n printf("Connect failed: %s\\n", mysqli_connect_error());\r\n exit();\r\n }\r\n \r\n $con->select_db($name);\r\n \r\n if (!$con->set_charset(''utf8''))\r\n printf("Error loading character set utf8: %s\\n", $mysqli->error);\r\n \r\n //echo $con;\r\n \r\n return $con;\r\n }\r\n catch (Exception $e)\r\n {\r\n return -1;\r\n }\r\n }\r\n \r\n \r\n?>\r\n\r\n\r\n<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\r\n<html xmlns="http://www.w3.org/1999/xhtml">\r\n<head>\r\n</head>\r\n\r\n\r\n<body>\r\n</body>\r\n</html>\r\n\r\n\r\n\r\n<?php\r\n \r\n \r\n $con = connect_db(''central_db'');\r\n \r\n $query_string = "SELECT * FROM user_id";\r\n $result = $con->query($query_string);\r\n \r\n \r\n while ($row = $result->fetch_array())\r\n {\r\n \r\n $query_string = "INSERT INTO computer_staff VALUES (".intval($row[''user_id'']).", 3);";\r\n $con->query($query_string);\r\n \r\n $con->close();\r\n \r\n header(''Location: index.php/phone-info'');\r\n }\r\n \r\n \r\n if (!$result->num_rows) header(''Location: index.php/error'');\r\n \r\n \r\n \r\n\r\n?>', '', 1, 2, '2013-08-06 16:39:10', 385, '', '2013-08-08 16:37:09', 385, 0, '0000-00-00 00:00:00', '2013-08-06 16:39:10', '0000-00-00 00:00:00', '{"image_intro":"","float_intro":"","image_intro_alt":"","image_intro_caption":"","image_fulltext":"","float_fulltext":"","image_fulltext_alt":"","image_fulltext_caption":""}', '{"urla":false,"urlatext":"","targeta":"","urlb":false,"urlbtext":"","targetb":"","urlc":false,"urlctext":"","targetc":""}', '{"show_title":"","link_titles":"","show_tags":"","show_intro":"","info_block_position":"","show_category":"","link_category":"","show_parent_category":"","link_parent_category":"","show_author":"","link_author":"","show_create_date":"","show_modify_date":"","show_publish_date":"","show_item_navigation":"","show_icons":"","show_print_icon":"","show_email_icon":"","show_vote":"","show_hits":"","show_noauth":"","urls_position":"","alternative_readmore":"","article_layout":"","show_publishing_options":"","show_article_options":"","show_urls_images_backend":"","show_urls_images_frontend":""}', 3, 20, '', '', 2, 5, '{"robots":"","author":"","rights":"","xreference":""}', 0, '*', ''),
(6, 41, 'Σφάλμα', '2013-08-06-17-57-44', 'Ένα σφάλμα προέκυψε, προσπαθήστε ξανά.', '', 1, 2, '2013-08-06 17:57:44', 385, '', '0000-00-00 00:00:00', 0, 0, '0000-00-00 00:00:00', '2013-08-06 17:57:44', '0000-00-00 00:00:00', '{"image_intro":"","float_intro":"","image_intro_alt":"","image_intro_caption":"","image_fulltext":"","float_fulltext":"","image_fulltext_alt":"","image_fulltext_caption":""}', '{"urla":false,"urlatext":"","targeta":"","urlb":false,"urlbtext":"","targetb":"","urlc":false,"urlctext":"","targetc":""}', '{"show_title":"","link_titles":"","show_tags":"","show_intro":"","info_block_position":"","show_category":"","link_category":"","show_parent_category":"","link_parent_category":"","show_author":"","link_author":"","show_create_date":"","show_modify_date":"","show_publish_date":"","show_item_navigation":"","show_icons":"","show_print_icon":"","show_email_icon":"","show_vote":"","show_hits":"","show_noauth":"","urls_position":"","alternative_readmore":"","article_layout":"","show_publishing_options":"","show_article_options":"","show_urls_images_backend":"","show_urls_images_frontend":""}', 1, 19, '', '', 2, 28, '{"robots":"","author":"","rights":"","xreference":""}', 0, '*', ''),
(7, 42, 'Εισαγωγή Πληροφοριών Τηλεφώνου', '2013-08-07-09-50-38', '<?php\r\n \r\n function connect_db($name)\r\n {\r\n try\r\n {\r\n @ $con = mysqli_connect(''localhost'', ''root'', ''OgfTt&TTtG?'', $name);\r\n \r\n if (mysqli_connect_errno()) {\r\n printf("Connect failed: %s\\n", mysqli_connect_error());\r\n exit();\r\n }\r\n \r\n $con->select_db($name);\r\n \r\n if (!$con->set_charset(''utf8''))\r\n printf("Error loading character set utf8: %s\\n", $mysqli->error);\r\n \r\n //echo $con;\r\n \r\n return $con;\r\n }\r\n catch (Exception $e)\r\n {\r\n return -1;\r\n }\r\n }\r\n \r\n \r\n?>\r\n\r\n\r\n<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\r\n<html xmlns="http://www.w3.org/1999/xhtml">\r\n<head>\r\n<script type="text/javascript" src="http://www.google.com/jsapi"></script>\r\n<script type="text/javascript">google.load("mootools", "1.1.2");</script>\r\n<script type="text/javascript">\r\n \r\n \r\n \r\n function isNumber(n) {\r\n return !isNaN(parseFloat(n)) && isFinite(n);\r\n }\r\n\r\n\r\n \r\n function validate_stathero(stathero)\r\n {\r\n if(stathero.value.length != 10 || !isNumber(stathero.value)){\r\n alert(''Παρακαλώ εισάγετε 10 αριθμούς'');\r\n stathero.focus();\r\n return false;\r\n }\r\n return true;\r\n }\r\n \r\n \r\n \r\n \r\n function validate_kinito(kinito)\r\n {\r\n if(kinito.value.length != 10 || !isNumber(kinito.value)){\r\n alert(''Παρακαλώ εισάγετε 10 αριθμούς'');\r\n kinito.focus();\r\n return false;\r\n }\r\n return true;\r\n }\r\n \r\n \r\n \r\n \r\n function validate_fax(fax)\r\n {\r\n if(fax.value.length != 10 || !isNumber(fax.value)){\r\n alert(''Παρακαλώ εισάγετε 10 αριθμούς'');\r\n fax.focus();\r\n return false;\r\n }\r\n return true;\r\n }\r\n \r\n \r\n \r\n \r\n function validate(stathero, kinito, fax)\r\n {\r\n if(!( validate_stathero(stathero) && validate_kinito(kinito) && validate_fax(fax) )) {\r\n return false;\r\n }\r\n return true; \r\n }\r\n \r\n \r\n \r\n \r\n</script>\r\n</head>\r\n\r\n\r\n<body>\r\n \r\n \r\n \r\n <form action="index.php/phone-info" name="register" method="post" onSubmit="javascript:return validate(stathero, kinito, fax);">\r\n <table border="0" >\r\n <tr>\r\n <td><label>Εισάγετε Σταθερό:</label></td>\r\n <td><input name="stathero" id="uname" type="text" size="20" maxlength="30" autocomplete="off" /></td>\r\n </tr>\r\n <tr>\r\n <td><label>Εισάγετε Κινητό: </label></td> \r\n <td><input name="kinito" id="eMail" type="text" size="20" maxlength="50" autocomplete="off" /></td>\r\n </tr>\r\n <tr>\r\n <td><label>Εισάγετε Φαξ:</label></td>\r\n <td><input name="fax" id="eMail" type="text" size="20" maxlength="50" autocomplete="off" /></td>\r\n </tr>\r\n <tr>\r\n <td><input type="submit" value="Καταχώριση Πληροφοριών Τηλεφώνου" style="font-size:1em" class="btn btn-success"/></td>\r\n <td></td>\r\n <td><input type="button" value="Ακύρωση Εγγραφής" onclick="window.location.href=''index.php/cancel''" style="font-size:1em" class="btn btn-danger"/></td>\r\n </tr>\r\n </table>\r\n </form>\r\n\r\n</body>\r\n</html>\r\n\r\n\r\n\r\n<?php\r\n \r\n \r\n if (isset($_POST[''kinito'']))\r\n {\r\n \r\n $con = connect_db(''central_db'');\r\n \r\n $query_string = "SELECT * FROM user_id";\r\n $result = $con->query($query_string);\r\n \r\n \r\n while ($row = $result->fetch_array())\r\n {\r\n \r\n $stathero = $_POST[''stathero''];\r\n $kinito = $_POST[''kinito''];\r\n $fax = $_POST[''fax''];\r\n \r\n \r\n // define query\r\n $query_string = "INSERT INTO phone_numbers VALUES (".intval($row[''user_id'']).", ''".$stathero."'', ''".$kinito."'', ''".$fax."'');";\r\n \r\n $con->query($query_string);\r\n \r\n $con->close();\r\n \r\n header(''Location: index.php/address-info'');\r\n \r\n break;\r\n }\r\n \r\n \r\n if (!$result->num_rows) header(''Location: index.php/error'');\r\n \r\n \r\n \r\n }\r\n \r\n\r\n\r\n?>', '', 1, 2, '2013-08-07 09:50:38', 385, '', '2013-08-10 12:04:39', 385, 0, '0000-00-00 00:00:00', '2013-08-07 09:50:38', '0000-00-00 00:00:00', '{"image_intro":"","float_intro":"","image_intro_alt":"","image_intro_caption":"","image_fulltext":"","float_fulltext":"","image_fulltext_alt":"","image_fulltext_caption":""}', '{"urla":false,"urlatext":"","targeta":"","urlb":false,"urlbtext":"","targetb":"","urlc":false,"urlctext":"","targetc":""}', '{"show_title":"","link_titles":"","show_tags":"","show_intro":"","info_block_position":"","show_category":"","link_category":"","show_parent_category":"","link_parent_category":"","show_author":"","link_author":"","show_create_date":"","show_modify_date":"","show_publish_date":"","show_item_navigation":"","show_icons":"","show_print_icon":"","show_email_icon":"","show_vote":"","show_hits":"","show_noauth":"","urls_position":"","alternative_readmore":"","article_layout":"","show_publishing_options":"","show_article_options":"","show_urls_images_backend":"","show_urls_images_frontend":""}', 11, 18, '', '', 2, 48, '{"robots":"","author":"","rights":"","xreference":""}', 0, '*', ''),
(8, 43, 'Εισαγωγή Πληροφοριών Κατοικίας', '2013-08-08-13-29-01', '<?php\r\n \r\n function connect_db($name)\r\n {\r\n try\r\n {\r\n @ $con = mysqli_connect(''localhost'', ''root'', ''OgfTt&TTtG?'', $name);\r\n \r\n if (mysqli_connect_errno()) {\r\n printf("Connect failed: %s\\n", mysqli_connect_error());\r\n exit();\r\n }\r\n \r\n $con->select_db($name);\r\n \r\n if (!$con->set_charset(''utf8''))\r\n printf("Error loading character set utf8: %s\\n", $mysqli->error);\r\n \r\n //echo $con;\r\n \r\n return $con;\r\n }\r\n catch (Exception $e)\r\n {\r\n return -1;\r\n }\r\n }\r\n \r\n \r\n?>\r\n\r\n\r\n<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\r\n<html xmlns="http://www.w3.org/1999/xhtml">\r\n<head>\r\n<script type="text/javascript" src="http://www.google.com/jsapi"></script>\r\n<script type="text/javascript">google.load("mootools", "1.1.2");</script>\r\n<script type="text/javascript">\r\n \r\n \r\n \r\n function isNumber(n) {\r\n return !isNaN(parseFloat(n)) && isFinite(n);\r\n }\r\n\r\n\r\n \r\n function validate_nomos(nomos)\r\n {\r\n if(nomos.value.length < 1){\r\n alert(''Δεν έχετε ορίσει κάποιο πεδίο'');\r\n nomos.focus();\r\n return false;\r\n }\r\n return true;\r\n }\r\n\r\n\r\n \r\n function validate_dimos(dimos)\r\n {\r\n if(dimos.value.length < 1){\r\n alert(''Δεν έχετε ορίσει κάποιο πεδίο'');\r\n dimos.focus();\r\n return false;\r\n }\r\n return true;\r\n }\r\n\r\n\r\n \r\n function validate_city(city)\r\n {\r\n if(city.value.length < 1){\r\n alert(''Δεν έχετε ορίσει κάποιο πεδίο'');\r\n city.focus();\r\n return false;\r\n }\r\n return true;\r\n }\r\n\r\n\r\n \r\n function validate_address(address)\r\n {\r\n if(address.value.length < 1){\r\n alert(''Δεν έχετε ορίσει κάποιο πεδίο'');\r\n address.focus();\r\n return false;\r\n }\r\n return true;\r\n }\r\n\r\n\r\n \r\n function validate_tk(tk)\r\n {\r\n if(tk.value.length != 5 || !isNumber(tk.value)){\r\n alert(''Ο ΤΚ πρέπει να έχει ακριβώς 5 αριθμούς'');\r\n tk.focus();\r\n return false;\r\n }\r\n return true;\r\n }\r\n\r\n\r\n \r\n function validate_perioxi(perioxi)\r\n {\r\n if(perioxi.value.length < 1){\r\n alert(''Δεν έχετε ορίσει κάποιο πεδίο'');\r\n perioxi.focus();\r\n return false;\r\n }\r\n return true;\r\n }\r\n\r\n\r\n \r\n function validate_xwra(xwra)\r\n {\r\n if(xwra.value.length < 1){\r\n alert(''Δεν έχετε ορίσει κάποιο πεδίο'');\r\n xwra.focus();\r\n return false;\r\n }\r\n return true;\r\n }\r\n \r\n \r\n \r\n \r\n function validate(nomos, dimos, city, address, tk, perioxi, xwra)\r\n {\r\n if(!( validate_nomos(nomos) && validate_dimos(dimos) && validate_city(city) && validate_address(address) && validate_tk(tk) && validate_perioxi(perioxi) && validate_xwra(xwra) )) {\r\n return false;\r\n }\r\n return true; \r\n }\r\n \r\n \r\n \r\n \r\n</script>\r\n</head>\r\n\r\n\r\n<body>\r\n \r\n \r\n \r\n <form action="index.php/address-info" name="register" method="post" onSubmit="javascript:return validate(nomos, dimos, city, address, tk, perioxi, xwra);">\r\n <table border="0" >\r\n <tr>\r\n <td><label>Εισάγετε Νομό:</label></td>\r\n <td><input name="nomos" id="uname" type="text" size="20" maxlength="30" autocomplete="off" /></td>\r\n </tr>\r\n <tr>\r\n <td><label>Εισάγετε Δήμο:</label></td>\r\n <td><input name="dimos" id="uname" type="text" size="20" maxlength="30" autocomplete="off" /></td>\r\n </tr>\r\n <tr>\r\n <td><label>Εισάγετε Πόλη:</label></td>\r\n <td><input name="city" id="uname" type="text" size="20" maxlength="30" autocomplete="off" /></td>\r\n </tr>\r\n <tr>\r\n <td><label>Εισάγετε Διεύθυνση:</label></td>\r\n <td><input name="address" id="uname" type="text" size="20" maxlength="30" autocomplete="off" /></td>\r\n </tr>\r\n <tr>\r\n <td><label>Εισάγετε ΤΚ:</label></td>\r\n <td><input name="tk" id="uname" type="text" size="20" maxlength="30" autocomplete="off" /></td>\r\n </tr>\r\n <tr>\r\n <td><label>Εισάγετε Περιοχή:</label></td>\r\n <td><input name="perioxi" id="uname" type="text" size="20" maxlength="30" autocomplete="off" /></td>\r\n </tr>\r\n <tr>\r\n <td><label>Εισάγετε Χώρα:</label></td>\r\n <td><input name="xwra" id="uname" type="text" size="20" maxlength="30" autocomplete="off" /></td>\r\n </tr>\r\n <tr>\r\n <td><input type="submit" value="Καταχώριση Πληροφοριών Κατοικίας και Τέλος" style="font-size:1em" class="btn btn-success"/></td>\r\n <td></td>\r\n <td><input type="button" value="Ακύρωση Εγγραφής" onclick="window.location.href=''index.php/cancel''" style="font-size:1em" class="btn btn-danger"/></td>\r\n </tr>\r\n </table>\r\n </form>\r\n\r\n</body>\r\n</html>\r\n\r\n\r\n\r\n<?php\r\n \r\n \r\n if (isset($_POST[''xwra'']))\r\n {\r\n\r\n $con = connect_db(''central_db'');\r\n \r\n $query_string = "SELECT * FROM user_id";\r\n $result = $con->query($query_string);\r\n \r\n \r\n while ($row = $result->fetch_array())\r\n {\r\n \r\n $nomos = $_POST[''nomos''];\r\n $dimos = $_POST[''dimos''];\r\n $city = $_POST[''city''];\r\n $address = $_POST[''address''];\r\n $tk = intval($_POST[''tk'']);\r\n $perioxi = $_POST[''perioxi''];\r\n $xwra = $_POST[''xwra''];\r\n \r\n // define query\r\n $query_string = "INSERT INTO address VALUES (".intval($row[''user_id'']).", ''".$nomos."'', ''".$dimos."'', ''".$city."'', ''".$address."'', ".$tk.", ''".$perioxi."'', ''".$xwra."'');";\r\n $con->query($query_string);\r\n \r\n \r\n $query_string = "TRUNCATE TABLE user_id";\r\n $con->query($query_string);\r\n \r\n \r\n $con->close();\r\n \r\n header(''Location: index.php/success'');\r\n \r\n break;\r\n }\r\n \r\n \r\n if (!$result->num_rows) header(''Location: index.php/error'');\r\n \r\n \r\n \r\n }\r\n \r\n\r\n\r\n?>', '', 1, 2, '2013-08-08 13:29:01', 385, '', '2013-08-10 12:07:22', 385, 0, '0000-00-00 00:00:00', '2013-08-08 13:29:01', '0000-00-00 00:00:00', '{"image_intro":"","float_intro":"","image_intro_alt":"","image_intro_caption":"","image_fulltext":"","float_fulltext":"","image_fulltext_alt":"","image_fulltext_caption":""}', '{"urla":false,"urlatext":"","targeta":"","urlb":false,"urlbtext":"","targetb":"","urlc":false,"urlctext":"","targetc":""}', '{"show_title":"","link_titles":"","show_tags":"","show_intro":"","info_block_position":"","show_category":"","link_category":"","show_parent_category":"","link_parent_category":"","show_author":"","link_author":"","show_create_date":"","show_modify_date":"","show_publish_date":"","show_item_navigation":"","show_icons":"","show_print_icon":"","show_email_icon":"","show_vote":"","show_hits":"","show_noauth":"","urls_position":"","alternative_readmore":"","article_layout":"","show_publishing_options":"","show_article_options":"","show_urls_images_backend":"","show_urls_images_frontend":""}', 7, 17, '', '', 2, 25, '{"robots":"","author":"","rights":"","xreference":""}', 0, '*', ''),
(9, 44, 'Επιτυχία', '2013-08-08-16-25-02', '<h2>Η διαδικασία ολοκληρώθηκε με επιτυχία!</h2>', '', 1, 2, '2013-08-08 16:25:02', 385, '', '2013-08-08 16:25:13', 385, 0, '0000-00-00 00:00:00', '2013-08-08 16:25:02', '0000-00-00 00:00:00', '{"image_intro":"","float_intro":"","image_intro_alt":"","image_intro_caption":"","image_fulltext":"","float_fulltext":"","image_fulltext_alt":"","image_fulltext_caption":""}', '{"urla":false,"urlatext":"","targeta":"","urlb":false,"urlbtext":"","targetb":"","urlc":false,"urlctext":"","targetc":""}', '{"show_title":"","link_titles":"","show_tags":"","show_intro":"","info_block_position":"","show_category":"","link_category":"","show_parent_category":"","link_parent_category":"","show_author":"","link_author":"","show_create_date":"","show_modify_date":"","show_publish_date":"","show_item_navigation":"","show_icons":"","show_print_icon":"","show_email_icon":"","show_vote":"","show_hits":"","show_noauth":"","urls_position":"","alternative_readmore":"","article_layout":"","show_publishing_options":"","show_article_options":"","show_urls_images_backend":"","show_urls_images_frontend":""}', 2, 16, '', '', 2, 8, '{"robots":"","author":"","rights":"","xreference":""}', 0, '*', ''),
(10, 45, 'Διαγραφή', '2013-08-08-17-03-30', '<?php\r\n \r\n function connect_db($name)\r\n {\r\n try\r\n {\r\n @ $con = mysqli_connect(''localhost'', ''root'', ''OgfTt&TTtG?'', $name);\r\n \r\n if (mysqli_connect_errno()) {\r\n printf("Connect failed: %s\\n", mysqli_connect_error());\r\n exit();\r\n }\r\n \r\n $con->select_db($name);\r\n \r\n if (!$con->set_charset(''utf8''))\r\n printf("Error loading character set utf8: %s\\n", $mysqli->error);\r\n \r\n //echo $con;\r\n \r\n return $con;\r\n }\r\n catch (Exception $e)\r\n {\r\n return -1;\r\n }\r\n }\r\n \r\n \r\n?>\r\n\r\n\r\n<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\r\n<html xmlns="http://www.w3.org/1999/xhtml">\r\n<head>\r\n</head>\r\n\r\n\r\n<body>\r\n</body>\r\n</html>\r\n\r\n\r\n\r\n<?php\r\n \r\n \r\n $con = connect_db(''central_db'');\r\n \r\n $query_string = "SELECT * FROM user_id";\r\n $result = $con->query($query_string);\r\n \r\n \r\n while ($row = $result->fetch_array())\r\n {\r\n \r\n $query_string = "DELETE FROM users WHERE user_id=".intval($row[''user_id'']);\r\n $con->query($query_string);\r\n \r\n $con->close();\r\n \r\n header(''Location: index.php/home'');\r\n }\r\n \r\n \r\n if (!$result->num_rows) header(''Location: index.php/error'');\r\n \r\n \r\n \r\n\r\n?>', '', 1, 2, '2013-08-08 17:03:30', 385, '', '2013-08-08 17:04:04', 385, 0, '0000-00-00 00:00:00', '2013-08-08 17:03:30', '0000-00-00 00:00:00', '{"image_intro":"","float_intro":"","image_intro_alt":"","image_intro_caption":"","image_fulltext":"","float_fulltext":"","image_fulltext_alt":"","image_fulltext_caption":""}', '{"urla":false,"urlatext":"","targeta":"","urlb":false,"urlbtext":"","targetb":"","urlc":false,"urlctext":"","targetc":""}', '{"show_title":"","link_titles":"","show_tags":"","show_intro":"","info_block_position":"","show_category":"","link_category":"","show_parent_category":"","link_parent_category":"","show_author":"","link_author":"","show_create_date":"","show_modify_date":"","show_publish_date":"","show_item_navigation":"","show_icons":"","show_print_icon":"","show_email_icon":"","show_vote":"","show_hits":"","show_noauth":"","urls_position":"","alternative_readmore":"","article_layout":"","show_publishing_options":"","show_article_options":"","show_urls_images_backend":"","show_urls_images_frontend":""}', 2, 15, '', '', 2, 5, '{"robots":"","author":"","rights":"","xreference":""}', 0, '*', '');
INSERT INTO `luacm_content` (`id`, `asset_id`, `title`, `alias`, `introtext`, `fulltext`, `state`, `catid`, `created`, `created_by`, `created_by_alias`, `modified`, `modified_by`, `checked_out`, `checked_out_time`, `publish_up`, `publish_down`, `images`, `urls`, `attribs`, `version`, `ordering`, `metakey`, `metadesc`, `access`, `hits`, `metadata`, `featured`, `language`, `xreference`) VALUES
(11, 46, 'Λίστα Χρηστών', '2013-08-09-07-45-43', '<?php\r\n \r\n function connect_db($name)\r\n {\r\n try\r\n {\r\n @ $con = mysqli_connect(''localhost'', ''root'', ''OgfTt&TTtG?'', $name);\r\n \r\n if (mysqli_connect_errno()) {\r\n printf("Connect failed: %s\\n", mysqli_connect_error());\r\n exit();\r\n }\r\n \r\n $con->select_db($name);\r\n \r\n if (!$con->set_charset(''utf8''))\r\n printf("Error loading character set utf8: %s\\n", $mysqli->error);\r\n \r\n //echo $con;\r\n \r\n return $con;\r\n }\r\n catch (Exception $e)\r\n {\r\n return -1;\r\n }\r\n }\r\n \r\n \r\n?>\r\n\r\n\r\n<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\r\n<html xmlns="http://www.w3.org/1999/xhtml">\r\n<head>\r\n<script type="text/javascript" src="http://www.google.com/jsapi"></script>\r\n<script type="text/javascript">google.load("mootools", "1.1.2");</script>\r\n<script type="text/javascript">\r\n\r\nfunction edit()\r\n{\r\n document.getElementById(''system-message'').innerHTML = ''<div class="alert alert-message"><a class="close" data-dismiss="alert">×</a><h4 class="alert-heading">Μήνυμα</h4><div><p>Η τροποποίηση των στοιχείων ήταν επιτυχής</p></div></div>'';\r\n}\r\n\r\nfunction deleted()\r\n{\r\n document.getElementById(''system-message'').innerHTML = ''<div class="alert alert-message"><a class="close" data-dismiss="alert">×</a><h4 class="alert-heading">Μήνυμα</h4><div><p>Η διαγραφή ήταν επιτυχής</p></div></div>'';\r\n}\r\n\r\n</script>\r\n\r\n<style type="text/css">\r\n \r\n table, th, td\r\n {\r\n border: 1px solid black;\r\n }\r\n \r\n th\r\n {\r\n background-color:#06F;\r\n color:#FFF;\r\n }\r\n</style>\r\n<?php\r\n if (isset($_GET[''edit''])) echo ''<script> edit(); </script>'';\r\n if (isset($_GET[''delete''])) echo ''<script> deleted(); </script>'';\r\n?>\r\n\r\n</head>\r\n\r\n\r\n<body>\r\n \r\n <table>\r\n <tr>\r\n <th><label>Επεξεργασία</label></th>\r\n <th><label>Ομάδα</label></th>\r\n <th><label>Όνομα</label></th>\r\n <th><label>Επίθετο</label></th>\r\n <th><label>Όνομα Χρήστη</label></th>\r\n <th><label>ΑΜΚΑ</label></th>\r\n <th><label>Τμήμα</label></th>\r\n <th><label>Σταθερό</label></th>\r\n <th><label>Κινητό</label></th>\r\n </tr>\r\n \r\n <?php\r\n \r\n \r\n\r\n \r\n $con = connect_db(''central_db'');\r\n \r\n $query_string = "SELECT u.user_id, ut.team_id, ut.team_name, u.name_user, u.surname_user, u.username, u.amka, u.department, pn.telephone, pn.mobile";\r\n $query_string .= " FROM `users` AS u";\r\n $query_string .= " INNER JOIN `phone_numbers` AS pn ON u.user_id=pn.user_id";\r\n $query_string .= " INNER JOIN `address` AS a ON u.user_id=a.user_id";\r\n $query_string .= " INNER JOIN `user_team` AS ut ON u.user_team = ut.team_id";\r\n $users = $con->query($query_string);\r\n \r\n \r\n while ($row = $users->fetch_array())\r\n {\r\n \r\n echo "<tr>";\r\n echo ''<td><br><input type="button" onclick="window.location.href=\\''index.php/edit-user?user_id=''.$row[''user_id''].''\\''" value="Επεξεργασία" class="btn btn-primary"/>'';\r\n echo ''<br><input type="button" onclick="window.location.href=\\''index.php/delete-user?user_id=''.$row[''user_id''].''\\''" value=" Διαγραφή " class="btn btn-danger"/><br></td>'';\r\n echo "<td>".$row[''team_name'']."</td>";\r\n echo "<td>".$row[''name_user'']."</td>";\r\n echo "<td>".$row[''surname_user'']."</td>";\r\n echo "<td>".$row[''username'']."</td>";\r\n echo "<td>".$row[''amka'']."</td>";\r\n echo "<td>".$row[''department'']."</td>";\r\n echo "<td>".$row[''telephone'']."</td>";\r\n echo "<td>".$row[''mobile'']."</td>";\r\n echo "</tr>";\r\n \r\n }\r\n \r\n $con->close();\r\n \r\n ?>\r\n\r\n </table>\r\n \r\n</body>\r\n</html>\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n', '', 1, 2, '2013-08-09 07:45:43', 385, '', '2013-08-10 12:09:58', 385, 0, '0000-00-00 00:00:00', '2013-08-09 07:45:43', '0000-00-00 00:00:00', '{"image_intro":"","float_intro":"","image_intro_alt":"","image_intro_caption":"","image_fulltext":"","float_fulltext":"","image_fulltext_alt":"","image_fulltext_caption":""}', '{"urla":false,"urlatext":"","targeta":"","urlb":false,"urlbtext":"","targetb":"","urlc":false,"urlctext":"","targetc":""}', '{"show_title":"","link_titles":"","show_tags":"","show_intro":"","info_block_position":"","show_category":"","link_category":"","show_parent_category":"","link_parent_category":"","show_author":"","link_author":"","show_create_date":"","show_modify_date":"","show_publish_date":"","show_item_navigation":"","show_icons":"","show_print_icon":"","show_email_icon":"","show_vote":"","show_hits":"","show_noauth":"","urls_position":"","alternative_readmore":"","article_layout":"","show_publishing_options":"","show_article_options":"","show_urls_images_backend":"","show_urls_images_frontend":""}', 31, 14, '', '', 2, 114, '{"robots":"","author":"","rights":"","xreference":""}', 0, '*', ''),
(12, 47, 'Δημιουργία Προγράμματος', '2013-08-09-07-46-08', '<?php\r\n \r\n function connect_db($name)\r\n {\r\n try\r\n {\r\n @ $con = mysqli_connect(''localhost'', ''root'', ''OgfTt&TTtG?'', $name);\r\n \r\n if (mysqli_connect_errno()) {\r\n printf("Connect failed: %s\\n", mysqli_connect_error());\r\n exit();\r\n }\r\n \r\n $con->select_db($name);\r\n \r\n if (!$con->set_charset(''utf8''))\r\n printf("Error loading character set utf8: %s\\n", $mysqli->error);\r\n \r\n //echo $con;\r\n \r\n return $con;\r\n }\r\n catch (Exception $e)\r\n {\r\n return -1;\r\n }\r\n }\r\n \r\n \r\n?>\r\n\r\n\r\n<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\r\n<html xmlns="http://www.w3.org/1999/xhtml">\r\n<head>\r\n\r\n<link rel="stylesheet" type="text/css" href="https://dl.dropboxusercontent.com/u/81059068/CSS%20for%20thesis%20WebApp/bootstrap.css" />\r\n<link href="https://dl.dropboxusercontent.com/u/81059068/CSS%20for%20thesis%20WebApp/bootstrap-combined.min.css" rel="stylesheet" />\r\n<link rel="stylesheet" type="text/css" media="screen" href="https://dl.dropboxusercontent.com/u/81059068/CSS%20for%20thesis%20WebApp/bootstrap-datetimepicker.min.css" />\r\n\r\n\r\n\r\n<script type="text/javascript" src="http://www.google.com/jsapi"></script>\r\n<script type="text/javascript">google.load("mootools", "1.1.2");</script>\r\n<script language="javascript" type="text/javascript" src="https://dl.dropboxusercontent.com/u/81059068/JS%20for%20thesis%20WebApp/jquery-1.8.3.min.js"></script>\r\n\r\n<script type="text/javascript">\r\n \r\n \r\n var i=1;\r\n \r\n function new_duty()\r\n {\r\n \r\n i++;\r\n \r\n var html = "<table><tr>";\r\n html += " <td><h3>Καθήκον " + i + "</h3></td>";\r\n html += " </tr>";\r\n html += " <tr>";\r\n html += " <td><label>Ημερομηνία</label></td>";\r\n html += " <td><input name=\\"date" + i + "\\" id=\\"id_date" + i + "\\" type=\\"text\\" size=\\"20\\" maxlength=\\"30\\" autocomplete=\\"on\\" /></td>";\r\n html += " </tr>";\r\n html += " <tr>";\r\n html += " <td><label>Τύπος Καθήκοντος</label></td>";\r\n html += " <td>";\r\n html += " <select id=\\"id_type" + i + "\\" name=\\"type" + i + "\\">";\r\n html += " ";\r\n html += " </select>";\r\n html += " </td>";\r\n html += " </tr>";\r\n html += " ";\r\n html += " <tr>";\r\n html += " <td><label>Ώρα Έναρξης</label></td>";\r\n html += " <td>";\r\n html += " <select id=\\"id_start_time" + i + "\\" name=\\"start_time" + i + "\\">";\r\n html += " <option value=\\"0\\" selected=\\"selected\\">00:00:00</option>";\r\n html += " <option value=\\"1\\">01:00:00</option>";\r\n html += " <option value=\\"2\\">02:00:00</option>";\r\n html += " <option value=\\"3\\">03:00:00</option>";\r\n html += " <option value=\\"4\\">04:00:00</option>";\r\n html += " <option value=\\"5\\">05:00:00</option>";\r\n html += " <option value=\\"6\\">06:00:00</option>";\r\n html += " <option value=\\"7\\">07:00:00</option>";\r\n html += " <option value=\\"8\\">08:00:00</option>";\r\n html += " <option value=\\"9\\">09:00:00</option>";\r\n html += " <option value=\\"10\\">10:00:00</option>";\r\n html += " <option value=\\"11\\">11:00:00</option>";\r\n html += " <option value=\\"12\\">12:00:00</option>";\r\n html += " <option value=\\"13\\">13:00:00</option>";\r\n html += " <option value=\\"14\\">14:00:00</option>";\r\n html += " <option value=\\"15\\">15:00:00</option>";\r\n html += " <option value=\\"16\\">16:00:00</option>";\r\n html += " <option value=\\"17\\">17:00:00</option>";\r\n html += " <option value=\\"18\\">18:00:00</option>";\r\n html += " <option value=\\"19\\">19:00:00</option>";\r\n html += " <option value=\\"20\\">20:00:00</option>";\r\n html += " <option value=\\"21\\">21:00:00</option>";\r\n html += " <option value=\\"22\\">22:00:00</option>";\r\n html += " <option value=\\"23\\">23:00:00</option>";\r\n html += " </select>";\r\n html += " </td>";\r\n html += " </tr>";\r\n html += " ";\r\n html += " <tr>";\r\n html += " <td><label>Ώρα Λήξης</label></td>";\r\n html += " <td>";\r\n html += " <select id=\\"id_end_time" + i + "\\" name=\\"end_time" + i + "\\">";\r\n html += " <option value=\\"1\\" selected=\\"selected\\">01:00:00</option>";\r\n html += " <option value=\\"2\\">02:00:00</option>";\r\n html += " <option value=\\"3\\">03:00:00</option>";\r\n html += " <option value=\\"4\\">04:00:00</option>";\r\n html += " <option value=\\"5\\">05:00:00</option>";\r\n html += " <option value=\\"6\\">06:00:00</option>";\r\n html += " <option value=\\"7\\">07:00:00</option>";\r\n html += " <option value=\\"8\\">08:00:00</option>";\r\n html += " <option value=\\"9\\">09:00:00</option>";\r\n html += " <option value=\\"10\\">10:00:00</option>";\r\n html += " <option value=\\"11\\">11:00:00</option>";\r\n html += " <option value=\\"12\\">12:00:00</option>";\r\n html += " <option value=\\"13\\">13:00:00</option>";\r\n html += " <option value=\\"14\\">14:00:00</option>";\r\n html += " <option value=\\"15\\">15:00:00</option>";\r\n html += " <option value=\\"16\\">16:00:00</option>";\r\n html += " <option value=\\"17\\">17:00:00</option>";\r\n html += " <option value=\\"18\\">18:00:00</option>";\r\n html += " <option value=\\"19\\">19:00:00</option>";\r\n html += " <option value=\\"20\\">20:00:00</option>";\r\n html += " <option value=\\"21\\">21:00:00</option>";\r\n html += " <option value=\\"22\\">22:00:00</option>";\r\n html += " <option value=\\"23\\">23:00:00</option>";\r\n html += " <option value=\\"0\\">00:00:00</option>";\r\n html += " </select>";\r\n html += " </td>";\r\n html += " </tr>";\r\n html += " ";\r\n html += " <tr>";\r\n html += " <td><label>Νοσοκομειακή Μονάδα</label></td>";\r\n html += " <td>";\r\n html += " <select id=\\"id_location" + i + "\\" name=\\"location" + i + "\\">";\r\n html += " ";\r\n html += " </select>";\r\n html += " </td>";\r\n html += " </tr>";\r\n html += " ";\r\n html += " <tr>";\r\n html += " <td><label>Χρήστης</label></td>";\r\n html += " <td>";\r\n html += " <select id=\\"id_user" + i + "\\" name=\\"user" + i + "\\">";\r\n html += " ";\r\n html += " </select>";\r\n html += " </td>";\r\n html += " </tr></table>";\r\n \r\n document.getElementById(''duty''+i).innerHTML = html;\r\n select_type_loc_user();\r\n }\r\n \r\n \r\n \r\n \r\n function select_type_loc_user()\r\n {\r\n \r\n var html = "<?php\r\n \r\n $con = connect_db(''central_db'');\r\n \r\n $query_string = "SELECT duty_name FROM duties ORDER BY duty_name";\r\n $result = $con->query($query_string);\r\n \r\n $i=1;\r\n while ($row = $result->fetch_array())\r\n {\r\n if($i==1) echo ''<option value=\\"''.$row[''duty_name''].''\\" selected=\\"selected\\">''.$row[''duty_name''].''</option>'';\r\n else echo ''<option value=\\"''.$row[''duty_name''].''\\">''.$row[''duty_name''].''</option>'';\r\n $i++;\r\n }\r\n \r\n ?>";\r\n \r\n document.getElementById(''id_type''+i).innerHTML = html;\r\n \r\n \r\n html = "<?php\r\n \r\n $con = connect_db(''central_db'');\r\n \r\n $query_string = "SELECT location_name FROM locations ORDER BY location_name";\r\n $result = $con->query($query_string);\r\n \r\n $i=1;\r\n while ($row = $result->fetch_array())\r\n {\r\n if($i==1) echo ''<option value=\\"''.$row[''location_name''].''\\" selected=\\"selected\\">''.$row[''location_name''].''</option>'';\r\n else echo ''<option value=\\"''.$row[''location_name''].''\\">''.$row[''location_name''].''</option>'';\r\n $i++;\r\n }\r\n \r\n ?>";\r\n \r\n document.getElementById(''id_location''+i).innerHTML = html;\r\n \r\n html = "<?php\r\n \r\n $con = connect_db(''central_db'');\r\n \r\n $query_string = "SELECT user_id, surname_user, name_user FROM users ORDER BY surname_user";\r\n $result = $con->query($query_string);\r\n \r\n $i=1;\r\n while ($row = $result->fetch_array())\r\n {\r\n if($i==1) echo ''<option value=\\"''.$row[''user_id''].''\\" selected=\\"selected\\">''.$row[''surname_user''].'' ''.$row[''name_user''].''</option>'';\r\n else echo ''<option value=\\"''.$row[''user_id''].''\\">''.$row[''surname_user''].'' ''.$row[''name_user''].''</option>'';\r\n $i++;\r\n }\r\n \r\n ?>";\r\n \r\n document.getElementById(''id_user''+i).innerHTML = html;\r\n \r\n }\r\n \r\n \r\n \r\n function gt(str1, str2)\r\n {\r\n if(parseInt(str1.value) > parseInt(str2.value)){\r\n alert("Η ώρα λήξης είναι πριν την ώρα έναρξης");\r\n str2.focus();\r\n return false;\r\n }\r\n return true;\r\n }\r\n \r\n \r\n \r\n function validate_progname(progname)\r\n {\r\n if(progname.value.length<1){\r\n alert(''Δεν έχετε ορίσει όνομα προγράμματος'');\r\n progname.focus();\r\n return false;\r\n }\r\n return true;\r\n }\r\n \r\n \r\n \r\n function validate_date(date)\r\n {\r\n if(date.value.length<1){\r\n alert(''Δεν έχετε ορίσει ημερομηνία'');\r\n date.focus();\r\n return false;\r\n }\r\n return true;\r\n }\r\n \r\n\r\n\r\n function validate(progname, date, start_time, end_time)\r\n {\r\n if( !(validate_progname(progname) && validate_date(date) && gt(start_time, end_time) )) {\r\n return false;\r\n }\r\n return true; \r\n }\r\n\r\n \r\n \r\n function created()\r\n {\r\n document.getElementById(''system-message'').innerHTML = ''<div class="alert alert-message"><a class="close" data-dismiss="alert">×</a><h4 class="alert-heading">Μήνυμα</h4><div><p>Το πρόγραμμα δημιουργήθηκε επιτυχώς</p></div></div>'';\r\n }\r\n\r\n\r\n \r\n\r\n\r\n</script>\r\n\r\n<?php\r\n if (isset($_GET[''created''])) echo ''<script> created(); </script>'';\r\n?>\r\n\r\n</head>\r\n\r\n\r\n<body onload="select_type_loc_user()">\r\n \r\n <!--<div id="datetimepicker1" class="input-append date" style="width:auto">\r\n <input type="text" id="delete_date_meteo"></input>\r\n <span class="add-on">\r\n <i data-time-icon="icon-time" data-date-icon="icon-calendar"></i>\r\n </span>\r\n </div> \r\n <script type="text/javascript"\r\n src="https://dl.dropboxusercontent.com/u/81059068/JS%20for%20thesis%20WebApp/jquery.min.js">\r\n </script> \r\n <script type="text/javascript"\r\n src="https://dl.dropboxusercontent.com/u/81059068/JS%20for%20thesis%20WebApp/bootstrap.min.js">\r\n </script>\r\n <script type="text/javascript"\r\n src="https://dl.dropboxusercontent.com/u/81059068/JS%20for%20thesis%20WebApp/bootstrap-datetimepicker.min.js">\r\n </script>\r\n <script type="text/javascript">\r\n $(''#datetimepicker1'').datetimepicker({\r\n format: ''yyyy-MM-dd'',\r\n language: ''en-US'',\r\n pickTime: false\r\n });\r\n </script>-->\r\n \r\n <form action="index.php/create-program" name="register" method="post" onSubmit="javascript:return validate(progname, date1, start_time1, end_time1);">\r\n <table border="0" >\r\n <tr>\r\n <td><label>Όνομα Προγράμματος</label></td>\r\n <td><input name="progname" id="uname" type="text" size="20" maxlength="30" autocomplete="off" /></td>\r\n </tr>\r\n \r\n <!-- DUTY 1 -->\r\n \r\n <tr>\r\n <td><h3>Καθήκον 1</h3></td>\r\n </tr>\r\n <tr>\r\n <td><label>Ημερομηνία</label></td>\r\n <td><input name="date1" id="uname" type="text" size="20" maxlength="30" autocomplete="on" /></td>\r\n \r\n </tr>\r\n <tr>\r\n <td><label>Τύπος Καθήκοντος</label></td> \r\n <td>\r\n <select id="id_type1" name="type1">\r\n \r\n </select>\r\n </td>\r\n </tr>\r\n \r\n <tr>\r\n <td><label>Ώρα Έναρξης</label></td> \r\n <td>\r\n <select name="start_time1">\r\n <option value="0" selected="selected">00:00:00</option>\r\n <option value="1">01:00:00</option>\r\n <option value="2">02:00:00</option>\r\n <option value="3">03:00:00</option>\r\n <option value="4">04:00:00</option>\r\n <option value="5">05:00:00</option>\r\n <option value="6">06:00:00</option>\r\n <option value="7">07:00:00</option>\r\n <option value="8">08:00:00</option>\r\n <option value="9">09:00:00</option>\r\n <option value="10">10:00:00</option>\r\n <option value="11">11:00:00</option>\r\n <option value="12">12:00:00</option>\r\n <option value="13">13:00:00</option>\r\n <option value="14">14:00:00</option>\r\n <option value="15">15:00:00</option>\r\n <option value="16">16:00:00</option>\r\n <option value="17">17:00:00</option>\r\n <option value="18">18:00:00</option>\r\n <option value="19">19:00:00</option>\r\n <option value="20">20:00:00</option>\r\n <option value="21">21:00:00</option>\r\n <option value="22">22:00:00</option>\r\n <option value="23">23:00:00</option>\r\n </select>\r\n </td>\r\n </tr>\r\n \r\n <tr>\r\n <td><label>Ώρα Λήξης</label></td> \r\n <td>\r\n <select name="end_time1">\r\n <option value="1" selected="selected">01:00:00</option>\r\n <option value="2">02:00:00</option>\r\n <option value="3">03:00:00</option>\r\n <option value="4">04:00:00</option>\r\n <option value="5">05:00:00</option>\r\n <option value="6">06:00:00</option>\r\n <option value="7">07:00:00</option>\r\n <option value="8">08:00:00</option>\r\n <option value="9">09:00:00</option>\r\n <option value="10">10:00:00</option>\r\n <option value="11">11:00:00</option>\r\n <option value="12">12:00:00</option>\r\n <option value="13">13:00:00</option>\r\n <option value="14">14:00:00</option>\r\n <option value="15">15:00:00</option>\r\n <option value="16">16:00:00</option>\r\n <option value="17">17:00:00</option>\r\n <option value="18">18:00:00</option>\r\n <option value="19">19:00:00</option>\r\n <option value="20">20:00:00</option>\r\n <option value="21">21:00:00</option>\r\n <option value="22">22:00:00</option>\r\n <option value="23">23:00:00</option>\r\n <option value="0">00:00:00</option>\r\n </select>\r\n </td>\r\n </tr>\r\n \r\n <tr>\r\n <td><label>Νοσοκομειακή Μονάδα</label></td> \r\n <td>\r\n <select id="id_location1" name="location1">\r\n \r\n </select>\r\n </td>\r\n </tr>\r\n \r\n <tr>\r\n <td><label>Χρήστης</label></td> \r\n <td>\r\n <select id="id_user1" name="user1">\r\n \r\n </select>\r\n </td>\r\n </tr>\r\n \r\n </table>\r\n <!-- END OF DUTY 1 -->\r\n \r\n \r\n <div id="duty2"></div>\r\n <div id="duty3"></div>\r\n <div id="duty4"></div>\r\n <div id="duty5"></div>\r\n <div id="duty6"></div>\r\n <div id="duty7"></div>\r\n <div id="duty8"></div>\r\n <div id="duty9"></div>\r\n <div id="duty10"></div>\r\n \r\n \r\n <table> \r\n <tr>\r\n <td><input type="submit" value="Δημιουργία Προγράμματος" style="font-size:1em" class="btn btn-success"/></td>\r\n <td></td>\r\n <td><input type="button" value="Προσθήκη Νέου Καθήκοντος" onclick="new_duty();" style="font-size:1em" class="btn"/></td>\r\n </tr>\r\n </table>\r\n </form>\r\n \r\n</body>\r\n</html>\r\n\r\n\r\n<?php\r\n \r\n \r\n if (isset($_POST[''progname'']))\r\n {\r\n \r\n $con = connect_db(''central_db'');\r\n \r\n $i=1;\r\n while( isset($_POST[''date''.$i]) )\r\n {\r\n $duty_type = $_POST[''type''.$i];\r\n $location = $_POST[''location''.$i];\r\n $user_id = $_POST[''user''.$i];\r\n \r\n \r\n \r\n $duty_ok = false;\r\n $location_ok = false;\r\n \r\n $query_string = "SELECT * FROM declared_duties WHERE user_id=".$user_id." AND duty_type=''".$duty_type."''";\r\n $result = $con->query($query_string);\r\n \r\n while ($row = $result->fetch_array())\r\n {\r\n $duty_ok = true;\r\n }\r\n \r\n $query_string = "SELECT * FROM declared_locations WHERE user_id=".$user_id." AND location=''".$location."''";\r\n $result = $con->query($query_string);\r\n \r\n while ($row = $result->fetch_array())\r\n {\r\n $location_ok = true;\r\n }\r\n \r\n \r\n \r\n \r\n \r\n \r\n if ($duty_ok && $location_ok)\r\n {\r\n \r\n \r\n $progname = $_POST[''progname''];\r\n $date = $_POST[''date''.$i];\r\n $start_time = $_POST[''start_time''.$i];\r\n $end_time = $_POST[''end_time''.$i];\r\n \r\n \r\n $query_string = "INSERT INTO program VALUES (NULL, ''".$date."'', ''".$duty_type."'', ''".$start_time.":00:00'', ''".$end_time.":00:00'', ''".$location."'', ".$user_id.", ''".$progname."'')";\r\n $result = $con->query($query_string);\r\n \r\n // ******************** NOTIFY *********************** //\r\n \r\n $query_string = "INSERT INTO notify_user VALUES (NULL, ".$user_id.", LAST_INSERT_ID(), 1, ''New program on ".$date."'')";\r\n $con->query($query_string);\r\n \r\n \r\n header(''Location: ?created=1'');\r\n }\r\n else\r\n {\r\n header(''Location: index.php/error'');\r\n }\r\n \r\n \r\n \r\n \r\n \r\n $i++;\r\n \r\n }// while\r\n \r\n }// if\r\n \r\n\r\n\r\n?>', '', 1, 2, '2013-08-09 07:46:08', 385, '', '2013-09-03 19:59:05', 385, 0, '0000-00-00 00:00:00', '2013-08-09 07:46:08', '0000-00-00 00:00:00', '{"image_intro":"","float_intro":"","image_intro_alt":"","image_intro_caption":"","image_fulltext":"","float_fulltext":"","image_fulltext_alt":"","image_fulltext_caption":""}', '{"urla":false,"urlatext":"","targeta":"","urlb":false,"urlbtext":"","targetb":"","urlc":false,"urlctext":"","targetc":""}', '{"show_title":"","link_titles":"","show_tags":"","show_intro":"","info_block_position":"","show_category":"","link_category":"","show_parent_category":"","link_parent_category":"","show_author":"","link_author":"","show_create_date":"","show_modify_date":"","show_publish_date":"","show_item_navigation":"","show_icons":"","show_print_icon":"","show_email_icon":"","show_vote":"","show_hits":"","show_noauth":"","urls_position":"","alternative_readmore":"","article_layout":"","show_publishing_options":"","show_article_options":"","show_urls_images_backend":"","show_urls_images_frontend":""}', 68, 13, '', '', 2, 201, '{"robots":"","author":"","rights":"","xreference":""}', 0, '*', ''),
(13, 48, 'Λίστα Προγραμμάτων', '2013-08-09-07-46-48', '<?php\r\n \r\n function connect_db($name)\r\n {\r\n try\r\n {\r\n @ $con = mysqli_connect(''localhost'', ''root'', ''OgfTt&TTtG?'', $name);\r\n \r\n if (mysqli_connect_errno()) {\r\n printf("Connect failed: %s\\n", mysqli_connect_error());\r\n exit();\r\n }\r\n \r\n $con->select_db($name);\r\n \r\n if (!$con->set_charset(''utf8''))\r\n printf("Error loading character set utf8: %s\\n", $mysqli->error);\r\n \r\n //echo $con;\r\n \r\n return $con;\r\n }\r\n catch (Exception $e)\r\n {\r\n return -1;\r\n }\r\n }\r\n \r\n \r\n?>\r\n\r\n\r\n<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\r\n<html xmlns="http://www.w3.org/1999/xhtml">\r\n<head>\r\n</head>\r\n\r\n\r\n<body>\r\n \r\n \r\n \r\n <form action="index.php/list-programs" name="register" method="post" onSubmit="javascript:return validate_register(thesi);">\r\n <table border="0" >\r\n \r\n <tr>\r\n <td><label>Επιλέξτε Πρόγραμμα:</label></td>\r\n <td><!--<input name="department" id="eMail" type="text" size="20" maxlength="50" autocomplete="off" /></td>-->\r\n <select name="progname">\r\n <!--<option value="0" selected="selected">---</option>-->\r\n <?php\r\n \r\n $con = connect_db(''central_db'');\r\n \r\n $query_string = "SELECT DISTINCT program_name FROM program ORDER BY program_name";\r\n $result = $con->query($query_string);\r\n \r\n $con->close();\r\n \r\n while ($row = $result->fetch_array())\r\n {\r\n echo ''<option value="''.$row[''program_name''].''">''.$row[''program_name''].''</option>'';\r\n }\r\n \r\n ?>\r\n </select>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td><input type="submit" value="Προβολή Καθηκόντων" style="font-size:1em" class="btn btn-primary"/></td>\r\n </tr>\r\n </table>\r\n </form>\r\n\r\n</body>\r\n</html>\r\n\r\n\r\n\r\n<?php\r\n \r\n \r\n if (isset($_POST[''progname'']))\r\n {\r\n \r\n $con = connect_db(''central_db'');\r\n \r\n $query_string = "TRUNCATE TABLE progname";\r\n $con->query($query_string);\r\n \r\n $query_string = "INSERT INTO progname VALUES (''".$_POST[''progname'']."'')";\r\n $result = $con->query($query_string);\r\n \r\n header(''Location: index.php/list-duties'');\r\n \r\n }\r\n\r\n?>', '', 1, 2, '2013-08-09 07:46:48', 385, '', '2013-08-11 12:41:22', 385, 0, '0000-00-00 00:00:00', '2013-08-09 07:46:48', '0000-00-00 00:00:00', '{"image_intro":"","float_intro":"","image_intro_alt":"","image_intro_caption":"","image_fulltext":"","float_fulltext":"","image_fulltext_alt":"","image_fulltext_caption":""}', '{"urla":false,"urlatext":"","targeta":"","urlb":false,"urlbtext":"","targetb":"","urlc":false,"urlctext":"","targetc":""}', '{"show_title":"","link_titles":"","show_tags":"","show_intro":"","info_block_position":"","show_category":"","link_category":"","show_parent_category":"","link_parent_category":"","show_author":"","link_author":"","show_create_date":"","show_modify_date":"","show_publish_date":"","show_item_navigation":"","show_icons":"","show_print_icon":"","show_email_icon":"","show_vote":"","show_hits":"","show_noauth":"","urls_position":"","alternative_readmore":"","article_layout":"","show_publishing_options":"","show_article_options":"","show_urls_images_backend":"","show_urls_images_frontend":""}', 7, 12, '', '', 2, 151, '{"robots":"","author":"","rights":"","xreference":""}', 0, '*', ''),
(14, 49, 'Αιτήματα Χρηστών', '2013-08-09-07-47-23', '<?php\r\n \r\n function connect_db($name)\r\n {\r\n try\r\n {\r\n @ $con = mysqli_connect(''localhost'', ''root'', ''OgfTt&TTtG?'', $name);\r\n \r\n if (mysqli_connect_errno()) {\r\n printf("Connect failed: %s\\n", mysqli_connect_error());\r\n exit();\r\n }\r\n \r\n $con->select_db($name);\r\n \r\n if (!$con->set_charset(''utf8''))\r\n printf("Error loading character set utf8: %s\\n", $mysqli->error);\r\n \r\n //echo $con;\r\n \r\n return $con;\r\n }\r\n catch (Exception $e)\r\n {\r\n return -1;\r\n }\r\n }\r\n \r\n \r\n?>\r\n\r\n\r\n<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\r\n<html xmlns="http://www.w3.org/1999/xhtml">\r\n<head>\r\n\r\n<script type="text/javascript" src="http://www.google.com/jsapi"></script>\r\n<script type="text/javascript">google.load("mootools", "1.1.2");</script>\r\n<script type="text/javascript">\r\n \r\n \r\n function confirm_delete(id)\r\n {\r\n if (confirm(''Είστε σίγουροι ότι θέλετε να διαγράψετε το συγκεκριμένο αίτημα;''))\r\n {\r\n window.location.href=''index.php/reject-request?duty_id='' + id;\r\n }\r\n }\r\n \r\n\r\n</script>\r\n\r\n<style type="text/css">\r\n \r\n .list table, th, td\r\n {\r\n border: 1px solid black;\r\n }\r\n \r\n .list th\r\n {\r\n background-color:#06F;\r\n color:#FFF;\r\n }\r\n \r\n</style>\r\n\r\n</head>\r\n\r\n\r\n<body>\r\n\r\n <table class="list">\r\n <tr>\r\n <th><label>Όνομα</label></th>\r\n <th><label>Επίθετο</label></th>\r\n <th><label>Σταθερό</label></th>\r\n <th><label>Κινητό</label></th>\r\n <th><label>Τμήμα</label></th>\r\n <th><label>Νοσοκομειακή Μονάδα</label></th>\r\n <th><label>Τύπος</label></th>\r\n <th><label>Ημερομηνία</label></th>\r\n <th><label>Ώρα Έναρξης</label></th>\r\n <th><label>Ώρα Λήξης</label></th>\r\n <th><label>Αίτηση Αλλαγής Ημέρας</label></th>\r\n <th><label>Αίτηση Αλλαγής Ώρας</label></th>\r\n <th><label>Ενέργεια</label></th>\r\n </tr>\r\n \r\n <?php\r\n \r\n \r\n $con = connect_db(''central_db'');\r\n \r\n \r\n $query_string = "SELECT u.name_user, u.surname_user, pn.telephone, pn.mobile, u.department, p.location, p.duty_type, p.date, p.duty_start_time, p.duty_end_time, cl.request_date, cl.request_start_time, cl.id FROM change_list AS cl";\r\n $query_string .= " INNER JOIN users AS u ON u.user_id=cl.user_id";\r\n $query_string .= " INNER JOIN phone_numbers AS pn ON pn.user_id=cl.user_id";\r\n $query_string .= " INNER JOIN program AS p ON p.program_id=cl.id";\r\n $result = $con->query($query_string);\r\n \r\n while ($row = $result->fetch_array())\r\n {\r\n \r\n $request_start_time = ($row[''request_start_time'']==NULL)?''Οποιαδήποτε'':$row[''request_start_time''];\r\n \r\n echo "<tr>";\r\n echo " <td>".$row[''name_user'']."</td>";\r\n echo " <td>".$row[''surname_user'']."</td>";\r\n echo " <td>".$row[''telephone'']."</td>";\r\n echo " <td>".$row[''mobile'']."</td>";\r\n echo " <td>".$row[''department'']."</td>";\r\n echo " <td>".$row[''location'']."</td>";\r\n echo " <td>".$row[''duty_type'']."</td>";\r\n echo " <td>".$row[''date'']."</td>";\r\n echo " <td>".$row[''duty_start_time'']."</td>";\r\n echo " <td>".$row[''duty_end_time'']."</td>";\r\n echo " <td><b>".$row[''request_date'']."</b></td>";\r\n echo " <td><b>".$request_start_time."</b></td>";\r\n echo '' <td><input type="button" onclick="window.location.href=\\''index.php/accept-request?duty_id=''.$row[''id''].''\\''" value="Αποδοχή" class="btn btn-success"/><br>'';\r\n echo '' <input type="button" onclick="confirm_delete(''.$row[''id''].'');" value="Απόρριψη" class="btn btn-danger"/></td>'';\r\n echo "</tr>";\r\n \r\n }\r\n \r\n \r\n $con->close();\r\n \r\n ?>\r\n </table>\r\n \r\n</body>\r\n</html>', '', 1, 2, '2013-08-09 07:47:23', 385, '', '2013-08-14 08:16:41', 385, 385, '2013-08-28 18:26:09', '2013-08-09 07:47:23', '0000-00-00 00:00:00', '{"image_intro":"","float_intro":"","image_intro_alt":"","image_intro_caption":"","image_fulltext":"","float_fulltext":"","image_fulltext_alt":"","image_fulltext_caption":""}', '{"urla":false,"urlatext":"","targeta":"","urlb":false,"urlbtext":"","targetb":"","urlc":false,"urlctext":"","targetc":""}', '{"show_title":"","link_titles":"","show_tags":"","show_intro":"","info_block_position":"","show_category":"","link_category":"","show_parent_category":"","link_parent_category":"","show_author":"","link_author":"","show_create_date":"","show_modify_date":"","show_publish_date":"","show_item_navigation":"","show_icons":"","show_print_icon":"","show_email_icon":"","show_vote":"","show_hits":"","show_noauth":"","urls_position":"","alternative_readmore":"","article_layout":"","show_publishing_options":"","show_article_options":"","show_urls_images_backend":"","show_urls_images_frontend":""}', 11, 11, '', '', 2, 172, '{"robots":"","author":"","rights":"","xreference":""}', 0, '*', '');
INSERT INTO `luacm_content` (`id`, `asset_id`, `title`, `alias`, `introtext`, `fulltext`, `state`, `catid`, `created`, `created_by`, `created_by_alias`, `modified`, `modified_by`, `checked_out`, `checked_out_time`, `publish_up`, `publish_down`, `images`, `urls`, `attribs`, `version`, `ordering`, `metakey`, `metadesc`, `access`, `hits`, `metadata`, `featured`, `language`, `xreference`) VALUES
(15, 50, 'Επεξεργασία Χρήστη', '2013-08-09-09-50-35', '<?php\r\n \r\n function connect_db($name)\r\n {\r\n try\r\n {\r\n @ $con = mysqli_connect(''localhost'', ''root'', ''OgfTt&TTtG?'', $name);\r\n \r\n if (mysqli_connect_errno()) {\r\n printf("Connect failed: %s\\n", mysqli_connect_error());\r\n exit();\r\n }\r\n \r\n $con->select_db($name);\r\n \r\n if (!$con->set_charset(''utf8''))\r\n printf("Error loading character set utf8: %s\\n", $mysqli->error);\r\n \r\n //echo $con;\r\n \r\n return $con;\r\n }\r\n catch (Exception $e)\r\n {\r\n return -1;\r\n }\r\n }\r\n \r\n \r\n?>\r\n\r\n\r\n\r\n<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\r\n<html xmlns="http://www.w3.org/1999/xhtml">\r\n<head>\r\n<script type="text/javascript" src="http://www.google.com/jsapi"></script>\r\n<script type="text/javascript">google.load("mootools", "1.1.2");</script>\r\n<script type="text/javascript">\r\n \r\n \r\n \r\n \r\n function validate_username(username)\r\n {\r\n if((username.value.length<6 || username.value.length>25)){\r\n alert(''Το Όνομα Χρήστη πρέπει να είναι μεταξύ 6 και 25 χαρακτήρων'');\r\n username.focus();\r\n return false;\r\n }\r\n return true;\r\n }\r\n \r\n \r\n \r\n \r\n function validate_username_space(username)\r\n {\r\n var reg = /^[A-Za-zΑ-Ωα-ω]/;\r\n if(reg.test(username.value) == false){\r\n alert(''Το ονομά σας θα πρέπει να αρχίζει με γράμμα'');\r\n username.focus();\r\n }\r\n else return true;\r\n }\r\n \r\n \r\n \r\n \r\n function validate_password(password)\r\n {\r\n if(password.value.length<6 || password.value.length>25){\r\n alert(''Ο Κωδικός Χρήστη πρέπει να είναι μεταξύ 6 και 25 χαρακτήρων'');\r\n password.focus();\r\n return false;\r\n }\r\n return true;\r\n }\r\n \r\n \r\n \r\n \r\n function validate_email(email) {\r\n var reg = /^([A-Za-z0-9_\\-\\.])+\\@([A-Za-z0-9_\\-\\.])+\\.([A-Za-z]{2,4})$/;\r\n if(reg.test(email.value) == false) {\r\n alert(''Μη έγκυρη Διεύθυνση Ηλεκτρονικού Ταχυδρομείου'');\r\n email.focus();\r\n return false;\r\n }\r\n return true;\r\n }\r\n \r\n \r\n \r\n \r\n function same(str1, str2)\r\n {\r\n if(str1.value != str2.value){\r\n alert("Οι κωδικοί που εισάγατε δεν είναι όμοιοι");\r\n str2.focus();\r\n return false;\r\n }\r\n return true;\r\n }\r\n \r\n \r\n \r\n \r\n \r\n function validate_nameOrSurname(nameOrSurname)\r\n {\r\n if(nameOrSurname.value.length<1){\r\n alert(''Δεν έχετε ορίσει όνομα ή επώνυμο'');\r\n nameOrSurname.focus();\r\n return false;\r\n }\r\n return true;\r\n }\r\n \r\n \r\n \r\n \r\n function validate_amka(amka)\r\n {\r\n if(amka.value.length!=11){\r\n alert(''Ο ΑΜΚΑ θα πρέπει να είναι ακριβώς 11 αριθμοί'');\r\n amka.focus();\r\n return false;\r\n }\r\n return true;\r\n }\r\n \r\n \r\n \r\n \r\n \r\n function isNumber(n) {\r\n return !isNaN(parseFloat(n)) && isFinite(n);\r\n }\r\n\r\n\r\n \r\n function validate_stathero(stathero)\r\n {\r\n if(stathero.value.length != 10 || !isNumber(stathero.value)){\r\n alert(''Παρακαλώ εισάγετε 10 αριθμούς'');\r\n stathero.focus();\r\n return false;\r\n }\r\n return true;\r\n }\r\n \r\n \r\n \r\n \r\n function validate_kinito(kinito)\r\n {\r\n if(kinito.value.length != 10 || !isNumber(kinito.value)){\r\n alert(''Παρακαλώ εισάγετε 10 αριθμούς'');\r\n kinito.focus();\r\n return false;\r\n }\r\n return true;\r\n }\r\n \r\n \r\n \r\n \r\n function validate_fax(fax)\r\n {\r\n if(fax.value.length != 10 || !isNumber(fax.value)){\r\n alert(''Παρακαλώ εισάγετε 10 αριθμούς'');\r\n fax.focus();\r\n return false;\r\n }\r\n return true;\r\n }\r\n\r\n\r\n \r\n function validate_nomos(nomos)\r\n {\r\n if(nomos.value.length < 1){\r\n alert(''Δεν έχετε ορίσει κάποιο πεδίο'');\r\n nomos.focus();\r\n return false;\r\n }\r\n return true;\r\n }\r\n\r\n\r\n \r\n function validate_dimos(dimos)\r\n {\r\n if(dimos.value.length < 1){\r\n alert(''Δεν έχετε ορίσει κάποιο πεδίο'');\r\n dimos.focus();\r\n return false;\r\n }\r\n return true;\r\n }\r\n\r\n\r\n \r\n function validate_city(city)\r\n {\r\n if(city.value.length < 1){\r\n alert(''Δεν έχετε ορίσει κάποιο πεδίο'');\r\n city.focus();\r\n return false;\r\n }\r\n return true;\r\n }\r\n\r\n\r\n \r\n function validate_address(address)\r\n {\r\n if(address.value.length < 1){\r\n alert(''Δεν έχετε ορίσει κάποιο πεδίο'');\r\n address.focus();\r\n return false;\r\n }\r\n return true;\r\n }\r\n\r\n\r\n \r\n function validate_tk(tk)\r\n {\r\n if(tk.value.length != 5 || !isNumber(tk.value)){\r\n alert(''Ο ΤΚ πρέπει να έχει ακριβώς 5 αριθμούς'');\r\n tk.focus();\r\n return false;\r\n }\r\n return true;\r\n }\r\n\r\n\r\n \r\n function validate_perioxi(perioxi)\r\n {\r\n if(perioxi.value.length < 1){\r\n alert(''Δεν έχετε ορίσει κάποιο πεδίο'');\r\n perioxi.focus();\r\n return false;\r\n }\r\n return true;\r\n }\r\n\r\n\r\n \r\n function validate_xwra(xwra)\r\n {\r\n if(xwra.value.length < 1){\r\n alert(''Δεν έχετε ορίσει κάποιο πεδίο'');\r\n xwra.focus();\r\n return false;\r\n }\r\n return true;\r\n }\r\n \r\n \r\n \r\n \r\n function validate_all(username, password1, password2, email, name_user, surname_user, amka, stathero, kinito, fax, nomos, dimos, city, address, tk, perioxi, xwra)\r\n {\r\n if(!( validate_username(username) && validate_username_space(username) && validate_password(password1) && validate_password(password2) && same(password1, password2) && validate_email(email) && validate_nameOrSurname(name_user) && validate_nameOrSurname(surname_user) && validate_amka(amka) && validate_stathero(stathero) && validate_kinito(kinito) && validate_fax(fax) && validate_nomos(nomos) && validate_dimos(dimos) && validate_city(city) && validate_address(address) && validate_tk(tk) && validate_perioxi(perioxi) && validate_xwra(xwra) )) {\r\n return false;\r\n }\r\n return true; \r\n }\r\n \r\n \r\n \r\n \r\n \r\n</script>\r\n</head>\r\n\r\n\r\n<body>\r\n \r\n \r\n \r\n <form action="index.php/edit-user?user_id=<?php echo $_GET[''user_id''];?>" name="register" method="post" onSubmit="javascript:return validate_all(username, password1, password2, email, name_user, surname_user, amka, stathero, kinito, fax, nomos, dimos, city, address, tk, perioxi, xwra);">\r\n <table border="0" >\r\n \r\n <tr>\r\n <td><h3>Γενικές Πληροφορίες</h3></td>\r\n </tr>\r\n \r\n <?php\r\n \r\n $team_id = 0;\r\n \r\n $con = connect_db(''central_db'');\r\n \r\n $query_string = "SELECT * FROM users WHERE user_id=".$_GET[''user_id''];\r\n $result = $con->query($query_string);\r\n \r\n \r\n while ($row = $result->fetch_array())\r\n {\r\n \r\n $team_id = intval($row[''user_team'']);\r\n \r\n echo ''<tr>'';\r\n echo ''<td><label>Όνομα</label></td>'';\r\n echo ''<td><input name="name_user" type="text" size="20" maxlength="30" autocomplete="off" value="''.$row[''name_user''].''"/></td>'';\r\n echo ''</tr>'';\r\n \r\n echo ''<tr>'';\r\n echo ''<td><label>Επώνυμο</label></td>'';\r\n echo ''<td><input name="surname_user" type="text" size="20" maxlength="30" autocomplete="off" value="''.$row[''surname_user''].''"/></td>'';\r\n echo ''</tr>'';\r\n \r\n echo ''<tr>'';\r\n echo ''<td><label>Όνομα Χρήστη</label></td>'';\r\n echo ''<td><input name="username" type="text" size="20" maxlength="30" autocomplete="off" value="''.$row[''username''].''"/></td>'';\r\n echo ''</tr>'';\r\n \r\n echo ''<tr>'';\r\n echo ''<td><label>Κωδικός</label></td>'';\r\n echo ''<td><input name="password1" type="password" size="20" maxlength="30" autocomplete="off" value="''.$row[''password''].''"/></td>'';\r\n echo ''</tr>'';\r\n \r\n echo ''<tr>'';\r\n echo ''<td><label>Κωδικός (πάλι)</label></td>'';\r\n echo ''<td><input name="password2" type="password" size="20" maxlength="30" autocomplete="off" value="''.$row[''password''].''"/></td>'';\r\n echo ''</tr>'';\r\n \r\n echo ''<tr>'';\r\n echo ''<td><label>E-mail</label></td>'';\r\n echo ''<td><input name="email" type="text" size="20" maxlength="30" autocomplete="off" value="''.$row[''email''].''"/></td>'';\r\n echo ''</tr>'';\r\n \r\n echo ''<tr>'';\r\n echo ''<td><label>ΑΜΚΑ</label></td>'';\r\n echo ''<td><input name="amka" type="text" size="20" maxlength="30" autocomplete="off" value="''.$row[''amka''].''"/></td>'';\r\n echo ''</tr>'';\r\n \r\n echo ''<tr>'';\r\n echo ''<td><label>Τμήμα</label></td>'';\r\n echo ''<td><select name="department">'';\r\n \r\n $query_string = "SELECT department_name FROM departments ORDER BY department_name";\r\n \r\n $dept = $con->query($query_string);\r\n \r\n while ($dep = $dept->fetch_array())\r\n {\r\n if($row[''department'']==$dep[''department_name'']) echo ''<option value="''.$dep[''department_name''].''" selected="selected">''.$dep[''department_name''].''</option>'';\r\n else echo ''<option value="''.$dep[''department_name''].''">''.$dep[''department_name''].''</option>'';\r\n }\r\n \r\n echo ''</select></td>'';\r\n echo ''</tr>'';\r\n }\r\n \r\n \r\n \r\n echo ''<tr>'';\r\n echo '' <td></td>'';\r\n echo ''</tr>'';\r\n \r\n echo ''<tr>'';\r\n echo '' <td><h3>Πληροφορίες Τηλεφώνου</h3></td>'';\r\n echo ''</tr>'';\r\n \r\n \r\n \r\n \r\n $query_string = "SELECT * FROM phone_numbers WHERE user_id=".$_GET[''user_id''];\r\n $result = $con->query($query_string);\r\n \r\n \r\n while ($row = $result->fetch_array())\r\n {\r\n echo ''<tr>'';\r\n echo ''<td><label>Σταθερό</label></td>'';\r\n echo ''<td><input name="stathero" type="text" size="20" maxlength="30" autocomplete="off" value="''.$row[''telephone''].''"/></td>'';\r\n echo ''</tr>'';\r\n \r\n echo ''<tr>'';\r\n echo ''<td><label>Κινητό</label></td>'';\r\n echo ''<td><input name="kinito" type="text" size="20" maxlength="30" autocomplete="off" value="''.$row[''mobile''].''"/></td>'';\r\n echo ''</tr>'';\r\n \r\n echo ''<tr>'';\r\n echo ''<td><label>Φαξ</label></td>'';\r\n echo ''<td><input name="fax" type="text" size="20" maxlength="30" autocomplete="off" value="''.$row[''fax''].''"/></td>'';\r\n echo ''</tr>'';\r\n }\r\n \r\n \r\n \r\n echo ''<tr>'';\r\n echo '' <td></td>'';\r\n echo ''</tr>'';\r\n \r\n echo ''<tr>'';\r\n echo '' <td><h3>Πληροφορίες Κατοικίας</h3></td>'';\r\n echo ''</tr>'';\r\n \r\n \r\n \r\n \r\n $query_string = "SELECT * FROM address WHERE user_id=".$_GET[''user_id''];\r\n $result = $con->query($query_string);\r\n \r\n \r\n while ($row = $result->fetch_array())\r\n {\r\n echo ''<tr>'';\r\n echo ''<td><label>Νομός</label></td>'';\r\n echo ''<td><input name="nomos" type="text" size="20" maxlength="30" autocomplete="off" value="''.$row[''nomos''].''"/></td>'';\r\n echo ''</tr>'';\r\n \r\n echo ''<tr>'';\r\n echo ''<td><label>Δήμος</label></td>'';\r\n echo ''<td><input name="dimos" type="text" size="20" maxlength="30" autocomplete="off" value="''.$row[''dimos''].''"/></td>'';\r\n echo ''</tr>'';\r\n \r\n echo ''<tr>'';\r\n echo ''<td><label>Πόλη</label></td>'';\r\n echo ''<td><input name="city" type="text" size="20" maxlength="30" autocomplete="off" value="''.$row[''city''].''"/></td>'';\r\n echo ''</tr>'';\r\n \r\n echo ''<tr>'';\r\n echo ''<td><label>Διεύθυνση</label></td>'';\r\n echo ''<td><input name="address" type="text" size="20" maxlength="30" autocomplete="off" value="''.$row[''address''].''"/></td>'';\r\n echo ''</tr>'';\r\n \r\n echo ''<tr>'';\r\n echo ''<td><label>ΤΚ</label></td>'';\r\n echo ''<td><input name="tk" type="text" size="20" maxlength="30" autocomplete="off" value="''.$row[''tk''].''"/></td>'';\r\n echo ''</tr>'';\r\n \r\n echo ''<tr>'';\r\n echo ''<td><label>Περιοχή</label></td>'';\r\n echo ''<td><input name="perioxi" type="text" size="20" maxlength="30" autocomplete="off" value="''.$row[''perioxi''].''"/></td>'';\r\n echo ''</tr>'';\r\n \r\n echo ''<tr>'';\r\n echo ''<td><label>Χώρα</label></td>'';\r\n echo ''<td><input name="xwra" type="text" size="20" maxlength="30" autocomplete="off" value="''.$row[''xwra''].''"/></td>'';\r\n echo ''</tr>'';\r\n }\r\n \r\n \r\n \r\n echo ''<tr>'';\r\n echo '' <td></td>'';\r\n echo ''</tr>'';\r\n \r\n \r\n \r\n if ($team_id == 1)\r\n {\r\n \r\n echo ''<tr>'';\r\n echo '' <td><h3>Πληροφορίες Ιατρικού Προσωπικού</h3></td>'';\r\n echo ''</tr>'';\r\n \r\n \r\n $query_string = "SELECT * FROM doctor_users WHERE user_id=".$_GET[''user_id''];\r\n $result = $con->query($query_string);\r\n \r\n \r\n while ($row = $result->fetch_array())\r\n {\r\n \r\n echo ''<tr>'';\r\n echo ''<td><label>Θέση</label></td>'';\r\n echo ''<td><input name="thesi" type="text" size="20" maxlength="30" autocomplete="off" value="''.$row[''thesi''].''"/></td>'';\r\n echo ''</tr>'';\r\n \r\n \r\n echo ''<tr>'';\r\n echo ''<td><label>Βαθμίδα</label></td>'';\r\n echo ''<td><select name="bathmida">'';\r\n \r\n $query_string = "SELECT name FROM bathmides WHERE team_id=1";\r\n \r\n $result = $con->query($query_string);\r\n \r\n while ($bat = $result->fetch_array())\r\n {\r\n if($row[''bathmida''] == $bat[''name'']) echo ''<option value="''.$bat[''name''].''" selected="selected">''.$bat[''name''].''</option>'';\r\n else echo ''<option value="''.$bat[''name''].''">''.$bat[''name''].''</option>'';\r\n }\r\n \r\n echo ''</select></td>'';\r\n echo ''</tr>'';\r\n \r\n \r\n \r\n echo ''<tr>'';\r\n echo ''<td><label>Ειδικότητα</label></td>'';\r\n echo ''<td><select name="eidikotita">'';\r\n \r\n $query_string = "SELECT name FROM eidikotites WHERE team_id=1";\r\n \r\n $result = $con->query($query_string);\r\n \r\n while ($eid = $result->fetch_array())\r\n {\r\n if($row[''eidikotita''] == $eid[''name'']) echo ''<option value="''.$eid[''name''].''" selected="selected">''.$eid[''name''].''</option>'';\r\n else echo ''<option value="''.$eid[''name''].''">''.$eid[''name''].''</option>'';\r\n }\r\n \r\n echo ''</select></td>'';\r\n echo ''</tr>'';\r\n \r\n }// while\r\n \r\n \r\n }\r\n else if ($team_id == 2)\r\n {\r\n \r\n echo ''<tr>'';\r\n echo '' <td><h3>Πληροφορίες Νοσηλευτικού Προσωπικού</h3></td>'';\r\n echo ''</tr>'';\r\n \r\n \r\n $query_string = "SELECT * FROM nurse_user WHERE user_id=".$_GET[''user_id''];\r\n $result = $con->query($query_string);\r\n \r\n \r\n while ($row = $result->fetch_array())\r\n {\r\n \r\n echo ''<tr>'';\r\n echo ''<td><label>Θέση</label></td>'';\r\n echo ''<td><input name="thesi" type="text" size="20" maxlength="30" autocomplete="off" value="''.$row[''thesi''].''"/></td>'';\r\n echo ''</tr>'';\r\n \r\n \r\n echo ''<tr>'';\r\n echo ''<td><label>Βαθμίδα</label></td>'';\r\n echo ''<td><select name="bathmida">'';\r\n \r\n $query_string = "SELECT name FROM bathmides WHERE team_id=2";\r\n \r\n $result = $con->query($query_string);\r\n \r\n while ($bat = $result->fetch_array())\r\n {\r\n if($row[''bathmida''] == $bat[''name'']) echo ''<option value="''.$bat[''name''].''" selected="selected">''.$bat[''name''].''</option>'';\r\n else echo ''<option value="''.$bat[''name''].''">''.$bat[''name''].''</option>'';\r\n }\r\n \r\n echo ''</select></td>'';\r\n echo ''</tr>'';\r\n \r\n \r\n \r\n echo ''<tr>'';\r\n echo ''<td><label>Ειδικότητα</label></td>'';\r\n echo ''<td><select name="eidikotita">'';\r\n \r\n $query_string = "SELECT name FROM eidikotites WHERE team_id=2";\r\n \r\n $result = $con->query($query_string);\r\n \r\n while ($eid = $result->fetch_array())\r\n {\r\n if($row[''eidikotita''] == $eid[''name'']) echo ''<option value="''.$eid[''name''].''" selected="selected">''.$eid[''name''].''</option>'';\r\n else echo ''<option value="''.$eid[''name''].''">''.$eid[''name''].''</option>'';\r\n }\r\n \r\n echo ''</select></td>'';\r\n echo ''</tr>'';\r\n \r\n }// while\r\n \r\n \r\n }\r\n \r\n \r\n ?>\r\n <tr>\r\n <td><input type="submit" value="Ενημέρωση" style="font-size:1em" class="btn btn-primary"/></td>\r\n <td></td>\r\n <td><input type="button" value="Ακύρωση" onclick="window.location.href=''index.php/list-users''" style="font-size:1em" class="btn"/></td>\r\n </tr>\r\n \r\n </table>\r\n </form>\r\n\r\n</body>\r\n</html>\r\n\r\n\r\n\r\n<?php\r\n \r\n \r\n if (isset($_POST[''username'']))\r\n {\r\n \r\n $con = connect_db(''central_db'');\r\n \r\n \r\n \r\n $name_user = $_POST[''name_user''];\r\n $surname_user = $_POST[''surname_user''];\r\n $username = $_POST[''username''];\r\n $password = $_POST[''password1''];\r\n $email = $_POST[''email''];\r\n $amka = $_POST[''amka''];\r\n $department = $_POST[''department''];\r\n \r\n $query_string = "UPDATE users SET name_user=''".$name_user."'', surname_user=''".$surname_user."'', username=''".$username."'', password=''".$password."'', email=''".$email."'', amka=''".$amka."'', department=''".$department."''";\r\n $query_string .= " WHERE user_id=".$_GET[''user_id''];\r\n $con->query($query_string); \r\n \r\n \r\n $stathero = $_POST[''stathero''];\r\n $kinito = $_POST[''kinito''];\r\n $fax = $_POST[''fax''];\r\n \r\n $query_string = "UPDATE phone_numbers SET telephone=''".$stathero."'', mobile=''".$kinito."'', fax=''".$fax."''";\r\n $query_string .= " WHERE user_id=".$_GET[''user_id''];\r\n $con->query($query_string);\r\n \r\n \r\n \r\n $nomos = $_POST[''nomos''];\r\n $dimos = $_POST[''dimos''];\r\n $city = $_POST[''city''];\r\n $address = $_POST[''address''];\r\n $tk = intval($_POST[''tk'']);\r\n $perioxi = $_POST[''perioxi''];\r\n $xwra = $_POST[''xwra''];\r\n \r\n $query_string = "UPDATE address SET nomos=''".$nomos."'', dimos=''".$dimos."'', city=''".$city."'', address=''".$address."'', tk=".$tk.", perioxi=''".$perioxi."'', xwra=''".$xwra."''";\r\n $query_string .= " WHERE user_id=".$_GET[''user_id''];\r\n $con->query($query_string);\r\n \r\n \r\n if ($team_id == 1)\r\n {\r\n \r\n $thesi = $_POST[''thesi''];\r\n $bathmida = $_POST[''bathmida''];\r\n $eidikotita = $_POST[''eidikotita''];\r\n \r\n $query_string = "UPDATE doctor_users SET thesi=''".$thesi."'', bathmida=''".$bathmida."'', eidikotita=''".$eidikotita."''";\r\n $query_string .= " WHERE user_id=".$_GET[''user_id''];\r\n \r\n $con->query($query_string);\r\n \r\n }\r\n else if ($team_id == 2)\r\n {\r\n \r\n $thesi = $_POST[''thesi''];\r\n $bathmida = $_POST[''bathmida''];\r\n $eidikotita = $_POST[''eidikotita''];\r\n \r\n $query_string = "UPDATE nurse_user SET thesi=''".$thesi."'', bathmida=''".$bathmida."'', eidikotita=''".$eidikotita."''";\r\n $query_string .= " WHERE user_id=".$_GET[''user_id''];\r\n \r\n $con->query($query_string);\r\n \r\n }\r\n \r\n header(''Location: index.php/list-users?edit=1'');\r\n \r\n \r\n }\r\n \r\n\r\n\r\n?>', '', 1, 2, '2013-08-09 09:50:35', 385, '', '2013-08-09 18:34:17', 385, 0, '0000-00-00 00:00:00', '2013-08-09 09:50:35', '0000-00-00 00:00:00', '{"image_intro":"","float_intro":"","image_intro_alt":"","image_intro_caption":"","image_fulltext":"","float_fulltext":"","image_fulltext_alt":"","image_fulltext_caption":""}', '{"urla":false,"urlatext":"","targeta":"","urlb":false,"urlbtext":"","targetb":"","urlc":false,"urlctext":"","targetc":""}', '{"show_title":"","link_titles":"","show_tags":"","show_intro":"","info_block_position":"","show_category":"","link_category":"","show_parent_category":"","link_parent_category":"","show_author":"","link_author":"","show_create_date":"","show_modify_date":"","show_publish_date":"","show_item_navigation":"","show_icons":"","show_print_icon":"","show_email_icon":"","show_vote":"","show_hits":"","show_noauth":"","urls_position":"","alternative_readmore":"","article_layout":"","show_publishing_options":"","show_article_options":"","show_urls_images_backend":"","show_urls_images_frontend":""}', 21, 10, '', '', 2, 98, '{"robots":"","author":"","rights":"","xreference":""}', 0, '*', ''),
(16, 51, 'Διαγραφή Χρήστη', '2013-08-09-09-51-12', '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\r\n<html xmlns="http://www.w3.org/1999/xhtml">\r\n<head>\r\n</head>\r\n\r\n\r\n<body>\r\n \r\n <form action="index.php/do-delete-user?user_id=<?php echo $_GET[''user_id''];?>" name="register" method="post">\r\n <table border="0" >\r\n <tr>\r\n <td><input type="submit" value="Διαγραφή" style="font-size:1em" class="btn btn-danger"/></td>\r\n <td></td>\r\n <td><input type="button" value="Ακύρωση" onclick="window.location.href=''index.php/list-users''" style="font-size:1em" class="btn"/></td>\r\n </tr>\r\n </table>\r\n </form>\r\n\r\n</body>\r\n</html>', '', 1, 2, '2013-08-09 09:51:12', 385, '', '2013-08-10 12:12:22', 385, 0, '0000-00-00 00:00:00', '2013-08-09 09:51:12', '0000-00-00 00:00:00', '{"image_intro":"","float_intro":"","image_intro_alt":"","image_intro_caption":"","image_fulltext":"","float_fulltext":"","image_fulltext_alt":"","image_fulltext_caption":""}', '{"urla":false,"urlatext":"","targeta":"","urlb":false,"urlbtext":"","targetb":"","urlc":false,"urlctext":"","targetc":""}', '{"show_title":"","link_titles":"","show_tags":"","show_intro":"","info_block_position":"","show_category":"","link_category":"","show_parent_category":"","link_parent_category":"","show_author":"","link_author":"","show_create_date":"","show_modify_date":"","show_publish_date":"","show_item_navigation":"","show_icons":"","show_print_icon":"","show_email_icon":"","show_vote":"","show_hits":"","show_noauth":"","urls_position":"","alternative_readmore":"","article_layout":"","show_publishing_options":"","show_article_options":"","show_urls_images_backend":"","show_urls_images_frontend":""}', 4, 9, '', '', 2, 18, '{"robots":"","author":"","rights":"","xreference":""}', 0, '*', ''),
(17, 52, 'Οριστική Διαγραφή Χρήστη', '2013-08-09-18-58-01', '<?php\r\n \r\n \r\n \r\n function connect_db($name)\r\n {\r\n try\r\n {\r\n @ $con = mysqli_connect(''localhost'', ''root'', ''OgfTt&TTtG?'', $name);\r\n \r\n if (mysqli_connect_errno()) {\r\n printf("Connect failed: %s\\n", mysqli_connect_error());\r\n exit();\r\n }\r\n \r\n $con->select_db($name);\r\n \r\n if (!$con->set_charset(''utf8''))\r\n printf("Error loading character set utf8: %s\\n", $mysqli->error);\r\n \r\n //echo $con;\r\n \r\n return $con;\r\n }\r\n catch (Exception $e)\r\n {\r\n return -1;\r\n }\r\n }\r\n \r\n \r\n \r\n \r\n \r\n \r\n $con = connect_db(''central_db'');\r\n \r\n $query_string = "DELETE FROM users";\r\n $query_string .= " WHERE user_id=".$_GET[''user_id''];\r\n $con->query($query_string);\r\n \r\n header(''Location: index.php/list-users?delete=1'');\r\n\r\n?>', '', 1, 2, '2013-08-09 18:58:01', 385, '', '2013-08-11 12:14:06', 385, 0, '0000-00-00 00:00:00', '2013-08-09 18:58:01', '0000-00-00 00:00:00', '{"image_intro":"","float_intro":"","image_intro_alt":"","image_intro_caption":"","image_fulltext":"","float_fulltext":"","image_fulltext_alt":"","image_fulltext_caption":""}', '{"urla":false,"urlatext":"","targeta":"","urlb":false,"urlbtext":"","targetb":"","urlc":false,"urlctext":"","targetc":""}', '{"show_title":"","link_titles":"","show_tags":"","show_intro":"","info_block_position":"","show_category":"","link_category":"","show_parent_category":"","link_parent_category":"","show_author":"","link_author":"","show_create_date":"","show_modify_date":"","show_publish_date":"","show_item_navigation":"","show_icons":"","show_print_icon":"","show_email_icon":"","show_vote":"","show_hits":"","show_noauth":"","urls_position":"","alternative_readmore":"","article_layout":"","show_publishing_options":"","show_article_options":"","show_urls_images_backend":"","show_urls_images_frontend":""}', 2, 8, '', '', 2, 1, '{"robots":"","author":"","rights":"","xreference":""}', 0, '*', ''),
(18, 53, 'Λεπτομέρειες Προγράμματος (Λίστα Καθηκόντων)', '2013-08-11-12-12-56', '<?php\r\n \r\n function connect_db($name)\r\n {\r\n try\r\n {\r\n @ $con = mysqli_connect(''localhost'', ''root'', ''OgfTt&TTtG?'', $name);\r\n \r\n if (mysqli_connect_errno()) {\r\n printf("Connect failed: %s\\n", mysqli_connect_error());\r\n exit();\r\n }\r\n \r\n $con->select_db($name);\r\n \r\n if (!$con->set_charset(''utf8''))\r\n printf("Error loading character set utf8: %s\\n", $mysqli->error);\r\n \r\n //echo $con;\r\n \r\n return $con;\r\n }\r\n catch (Exception $e)\r\n {\r\n return -1;\r\n }\r\n }\r\n \r\n \r\n?>\r\n\r\n\r\n<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\r\n<html xmlns="http://www.w3.org/1999/xhtml">\r\n<head>\r\n<script type="text/javascript" src="http://www.google.com/jsapi"></script>\r\n<script type="text/javascript">google.load("mootools", "1.1.2");</script>\r\n<script type="text/javascript">\r\n\r\n\r\n function deleted()\r\n {\r\n document.getElementById(''system-message'').innerHTML = ''<div class="alert alert-message"><a class="close" data-dismiss="alert">×</a><h4 class="alert-heading">Μήνυμα</h4><div><p>Η διαγραφή ήταν επιτυχής</p></div></div>'';\r\n }\r\n \r\n function confirm_delete(id)\r\n {\r\n if (confirm(''Είστε σίγουροι ότι θέλετε να διαγράψετε το συγκεκριμένο καθήκον;''))\r\n {\r\n window.location.href=''index.php/delete-duty?duty_id='' + id;\r\n }\r\n }\r\n \r\n function confirm_delete_prog()\r\n {\r\n if (confirm(''Είστε σίγουροι ότι θέλετε να διαγράψετε το συγκεκριμένο πρόγραμμα;''))\r\n {\r\n window.location.href=''index.php/delete-program'';\r\n }\r\n }\r\n \r\n \r\n\r\n</script>\r\n\r\n<style type="text/css">\r\n \r\n .list table, th, td\r\n {\r\n border: 1px solid black;\r\n }\r\n \r\n .list th\r\n {\r\n background-color:#06F;\r\n color:#FFF;\r\n }\r\n</style>\r\n<?php\r\n if (isset($_GET[''delete''])) echo ''<script> deleted(); </script>'';\r\n?>\r\n\r\n</head>\r\n\r\n\r\n<body>\r\n \r\n <h3 style="color:#39F">\r\n <?php\r\n $con = connect_db(''central_db'');\r\n \r\n $query_string = "SELECT progname FROM progname";\r\n $result = $con->query($query_string);\r\n \r\n while ($row = $result->fetch_array())\r\n { \r\n echo $row[''progname''];\r\n }\r\n \r\n ?>\r\n </h3>\r\n \r\n <table class="list">\r\n <tr>\r\n <th><label>Ημερομηνία</label></th>\r\n <th><label>Τύπος</label></th>\r\n <th><label>Ώρα Έναρξης</label></th>\r\n <th><label>Ώρα Λήξης</label></th>\r\n <th><label>Νοσοκομειακή Μονάδα</label></th>\r\n <th><label>Όνομα</label></th>\r\n <th><label>Επίθετο</label></th>\r\n <th><label>Ενέργεια</label></th>\r\n </tr>\r\n \r\n <?php\r\n \r\n \r\n $con = connect_db(''central_db'');\r\n \r\n $query_string = "SELECT progname FROM progname";\r\n $result = $con->query($query_string);\r\n \r\n while ($row = $result->fetch_array())\r\n { \r\n $progname = $row[''progname''];\r\n }\r\n \r\n if (!isset($progname)) header(''Location: index.php/error'');\r\n \r\n \r\n \r\n $query_string = "SELECT p.date, p.duty_type, p.duty_start_time, p.duty_end_time, p.location, u.name_user, u.surname_user, p.program_id FROM program AS p";\r\n $query_string .= " INNER JOIN users AS u ON p.user_id=u.user_id WHERE p.program_name=''".$progname."''";\r\n $result = $con->query($query_string);\r\n \r\n while ($row = $result->fetch_array())\r\n {\r\n \r\n echo "<tr>";\r\n echo "<td>".$row[''date'']."</td>";\r\n echo "<td>".$row[''duty_type'']."</td>";\r\n echo "<td>".$row[''duty_start_time'']."</td>";\r\n echo "<td>".$row[''duty_end_time'']."</td>";\r\n echo "<td>".$row[''location'']."</td>";\r\n echo "<td>".$row[''name_user'']."</td>";\r\n echo "<td>".$row[''surname_user'']."</td>";\r\n echo ''<td><input type="button" onclick="confirm_delete(''.$row[''program_id''].'');" value="Διαγραφή Καθήκοντος" class="btn btn-danger"/></td>'';\r\n echo "</tr>";\r\n \r\n }\r\n \r\n \r\n $con->close();\r\n \r\n ?>\r\n </table>\r\n \r\n <table>\r\n <tr>\r\n <td><input type="button" onclick="confirm_delete_prog();" value="Διαγραφή Όλου του Προγράμματος" class="btn btn-danger"/></td>\r\n <td><input type="button" onclick="window.location.href=''index.php/list-programs''" value="Πίσω στην Λίστα" class="btn"/></td>\r\n </tr>\r\n </table>\r\n \r\n</body>\r\n</html>', '', 1, 2, '2013-08-11 12:12:56', 385, '', '2013-08-11 17:02:49', 385, 385, '2013-08-11 17:02:49', '2013-08-11 12:12:56', '0000-00-00 00:00:00', '{"image_intro":"","float_intro":"","image_intro_alt":"","image_intro_caption":"","image_fulltext":"","float_fulltext":"","image_fulltext_alt":"","image_fulltext_caption":""}', '{"urla":false,"urlatext":"","targeta":"","urlb":false,"urlbtext":"","targetb":"","urlc":false,"urlctext":"","targetc":""}', '{"show_title":"","link_titles":"","show_tags":"","show_intro":"","info_block_position":"","show_category":"","link_category":"","show_parent_category":"","link_parent_category":"","show_author":"","link_author":"","show_create_date":"","show_modify_date":"","show_publish_date":"","show_item_navigation":"","show_icons":"","show_print_icon":"","show_email_icon":"","show_vote":"","show_hits":"","show_noauth":"","urls_position":"","alternative_readmore":"","article_layout":"","show_publishing_options":"","show_article_options":"","show_urls_images_backend":"","show_urls_images_frontend":""}', 17, 7, '', '', 2, 76, '{"robots":"","author":"","rights":"","xreference":""}', 0, '*', ''),
(19, 54, 'Διαγραφή Καθήκοντος', '2013-08-11-16-24-28', '<?php\r\n \r\n function connect_db($name)\r\n {\r\n try\r\n {\r\n @ $con = mysqli_connect(''localhost'', ''root'', ''OgfTt&TTtG?'', $name);\r\n \r\n if (mysqli_connect_errno()) {\r\n printf("Connect failed: %s\\n", mysqli_connect_error());\r\n exit();\r\n }\r\n \r\n $con->select_db($name);\r\n \r\n if (!$con->set_charset(''utf8''))\r\n printf("Error loading character set utf8: %s\\n", $mysqli->error);\r\n \r\n //echo $con;\r\n \r\n return $con;\r\n }\r\n catch (Exception $e)\r\n {\r\n return -1;\r\n }\r\n }\r\n \r\n \r\n?>\r\n\r\n\r\n<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\r\n<html xmlns="http://www.w3.org/1999/xhtml">\r\n<head>\r\n</head>\r\n\r\n\r\n<body>\r\n \r\n <?php\r\n \r\n \r\n if ( isset( $_GET[''duty_id''] ) )\r\n {\r\n \r\n $con = connect_db(''central_db'');\r\n \r\n $query_string = "DELETE FROM program WHERE program_id=".$_GET[''duty_id''];\r\n $result = $con->query($query_string);\r\n $con->close();\r\n \r\n header(''Location: http://localhost/HFPM_WebApp_J/index.php/list-programs'');\r\n \r\n }\r\n else\r\n {\r\n header(''Location: http://localhost/HFPM_WebApp_J/index.php/error'');\r\n }\r\n \r\n ?>\r\n \r\n</body>\r\n</html>', '', 1, 2, '2013-08-11 16:24:28', 385, '', '2013-08-11 16:51:21', 385, 0, '0000-00-00 00:00:00', '2013-08-11 16:24:28', '0000-00-00 00:00:00', '{"image_intro":"","float_intro":"","image_intro_alt":"","image_intro_caption":"","image_fulltext":"","float_fulltext":"","image_fulltext_alt":"","image_fulltext_caption":""}', '{"urla":false,"urlatext":"","targeta":"","urlb":false,"urlbtext":"","targetb":"","urlc":false,"urlctext":"","targetc":""}', '{"show_title":"","link_titles":"","show_tags":"","show_intro":"","info_block_position":"","show_category":"","link_category":"","show_parent_category":"","link_parent_category":"","show_author":"","link_author":"","show_create_date":"","show_modify_date":"","show_publish_date":"","show_item_navigation":"","show_icons":"","show_print_icon":"","show_email_icon":"","show_vote":"","show_hits":"","show_noauth":"","urls_position":"","alternative_readmore":"","article_layout":"","show_publishing_options":"","show_article_options":"","show_urls_images_backend":"","show_urls_images_frontend":""}', 7, 6, '', '', 2, 11, '{"robots":"","author":"","rights":"","xreference":""}', 0, '*', ''),
(20, 55, 'Διαγραφή Προγράμματος', '2013-08-11-16-24-51', '<?php\r\n \r\n function connect_db($name)\r\n {\r\n try\r\n {\r\n @ $con = mysqli_connect(''localhost'', ''root'', ''OgfTt&TTtG?'', $name);\r\n \r\n if (mysqli_connect_errno()) {\r\n printf("Connect failed: %s\\n", mysqli_connect_error());\r\n exit();\r\n }\r\n \r\n $con->select_db($name);\r\n \r\n if (!$con->set_charset(''utf8''))\r\n printf("Error loading character set utf8: %s\\n", $mysqli->error);\r\n \r\n //echo $con;\r\n \r\n return $con;\r\n }\r\n catch (Exception $e)\r\n {\r\n return -1;\r\n }\r\n }\r\n \r\n \r\n?>\r\n\r\n\r\n<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\r\n<html xmlns="http://www.w3.org/1999/xhtml">\r\n<head>\r\n</head>\r\n\r\n\r\n<body>\r\n \r\n <?php\r\n \r\n \r\n $con = connect_db(''central_db'');\r\n \r\n $query_string = "SELECT progname FROM progname";\r\n $result = $con->query($query_string);\r\n \r\n while ($row = $result->fetch_array())\r\n { \r\n $progname = $row[''progname''];\r\n }\r\n \r\n \r\n $query_string = "TRUNCATE TABLE progname";\r\n $con->query($query_string);\r\n \r\n \r\n if ( isset( $progname ) )\r\n {\r\n \r\n $query_string = "DELETE FROM program WHERE program_name=''".$progname."''";\r\n $result = $con->query($query_string);\r\n \r\n $con->close();\r\n \r\n header(''Location: http://localhost/HFPM_WebApp_J/index.php/list-programs'');\r\n \r\n }\r\n else\r\n {\r\n header(''Location: http://localhost/HFPM_WebApp_J/index.php/error'');\r\n }\r\n \r\n ?>\r\n \r\n</body>\r\n</html>', '', 1, 2, '2013-08-11 16:24:51', 385, '', '2013-08-11 17:02:34', 385, 0, '0000-00-00 00:00:00', '2013-08-11 16:24:51', '0000-00-00 00:00:00', '{"image_intro":"","float_intro":"","image_intro_alt":"","image_intro_caption":"","image_fulltext":"","float_fulltext":"","image_fulltext_alt":"","image_fulltext_caption":""}', '{"urla":false,"urlatext":"","targeta":"","urlb":false,"urlbtext":"","targetb":"","urlc":false,"urlctext":"","targetc":""}', '{"show_title":"","link_titles":"","show_tags":"","show_intro":"","info_block_position":"","show_category":"","link_category":"","show_parent_category":"","link_parent_category":"","show_author":"","link_author":"","show_create_date":"","show_modify_date":"","show_publish_date":"","show_item_navigation":"","show_icons":"","show_print_icon":"","show_email_icon":"","show_vote":"","show_hits":"","show_noauth":"","urls_position":"","alternative_readmore":"","article_layout":"","show_publishing_options":"","show_article_options":"","show_urls_images_backend":"","show_urls_images_frontend":""}', 2, 5, '', '', 2, 4, '{"robots":"","author":"","rights":"","xreference":""}', 0, '*', ''),
(21, 56, 'Αποδοχή Αιτήματος (Ανταλλαγή)', '2013-08-12-10-39-58', '<?php\r\n \r\n function connect_db($name)\r\n {\r\n try\r\n {\r\n @ $con = mysqli_connect(''localhost'', ''root'', ''OgfTt&TTtG?'', $name);\r\n \r\n if (mysqli_connect_errno()) {\r\n printf("Connect failed: %s\\n", mysqli_connect_error());\r\n exit();\r\n }\r\n \r\n $con->select_db($name);\r\n \r\n if (!$con->set_charset(''utf8''))\r\n printf("Error loading character set utf8: %s\\n", $mysqli->error);\r\n \r\n //echo $con;\r\n \r\n return $con;\r\n }\r\n catch (Exception $e)\r\n {\r\n return -1;\r\n }\r\n }\r\n \r\n \r\n?>\r\n\r\n\r\n<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\r\n<html xmlns="http://www.w3.org/1999/xhtml">\r\n<head>\r\n\r\n<script type="text/javascript" src="http://www.google.com/jsapi"></script>\r\n<script type="text/javascript">google.load("mootools", "1.1.2");</script>\r\n<script type="text/javascript">\r\n \r\n \r\n function confirm_exchange(before_id, after_id)\r\n {\r\n if (confirm(''Είστε σίγουροι ότι θέλετε να ανταλλάξετε αυτά τα καθήκοντα;''))\r\n {\r\n window.location.href=''index.php/exchange-request?before='' + before_id + ''&after='' + after_id;\r\n }\r\n }\r\n \r\n \r\n function confirm_accept(id)\r\n {\r\n if (confirm(''Είστε σίγουροι ότι θέλετε να αλλάξετε αυτo τo καθήκον;''))\r\n {\r\n window.location.href=''index.php/do-accept-request?duty_id='' + id;\r\n }\r\n }\r\n \r\n\r\n</script>\r\n\r\n<style type="text/css">\r\n \r\n .list table, th, td\r\n {\r\n border: 1px solid black;\r\n }\r\n \r\n .list th\r\n {\r\n background-color:#06F;\r\n color:#FFF;\r\n }\r\n \r\n</style>\r\n\r\n</head>\r\n\r\n\r\n<body>\r\n \r\n \r\n <h3>Λίστα διαθέσιμων προγραμμάτων προς αλλαγή:</h3>\r\n \r\n <table class="list">\r\n \r\n \r\n <?php\r\n \r\n $con = connect_db(''central_db'');\r\n \r\n \r\n $query_string = "SELECT cl.id, cl.request_date, cl.request_start_time, p.duty_type, p.location FROM change_list AS cl";\r\n $query_string .= " INNER JOIN program AS p ON p.program_id=cl.id";\r\n $query_string .= " WHERE cl.id=".$_GET[''duty_id''];\r\n $result = $con->query($query_string);\r\n \r\n \r\n $i=1;\r\n while ($change_list = $result->fetch_array())\r\n { \r\n \r\n \r\n $query_string = "SELECT u.name_user, u.surname_user, u.department, p.location, p.duty_type, p.date, p.duty_start_time, p.duty_end_time, p.program_id FROM program AS p";\r\n $query_string .= " INNER JOIN users AS u ON u.user_id=p.user_id";\r\n $query_string .= " WHERE p.date=''".$change_list[''request_date'']."''";\r\n $query_string .= " AND p.duty_type=''".$change_list[''duty_type'']."''";\r\n $query_string .= " AND p.location=''".$change_list[''location'']."''";\r\n if ($change_list[''request_start_time''] != NULL)\r\n {\r\n $query_string .= " AND duty_start_time=''".$change_list[''request_start_time'']."''";\r\n }\r\n $result2 = $con->query($query_string);\r\n \r\n \r\n while ($program = $result2->fetch_array())\r\n {\r\n \r\n \r\n if ($i==1)\r\n {\r\n echo ''<tr>'';\r\n echo '' <th><label>Όνομα</label></th>'';\r\n echo '' <th><label>Επίθετο</label></th>'';\r\n echo '' <th><label>Τμήμα</label></th>'';\r\n echo '' <th><label>Νοσοκομειακή Μονάδα</label></th>'';\r\n echo '' <th><label>Τύπος</label></th>'';\r\n echo '' <th><label>Ημερομηνία</label></th>'';\r\n echo '' <th><label>Ώρα Έναρξης</label></th>'';\r\n echo '' <th><label>Ώρα Λήξης</label></th>'';\r\n echo '' <th><label>Ενέργεια</label></th>'';\r\n echo ''</tr>'';\r\n }\r\n \r\n \r\n echo "<tr>";\r\n echo " <td>".$program[''name_user'']."</td>";\r\n echo " <td>".$program[''surname_user'']."</td>";\r\n echo " <td>".$program[''department'']."</td>";\r\n echo " <td>".$program[''location'']."</td>";\r\n echo " <td>".$program[''duty_type'']."</td>";\r\n echo " <td>".$program[''date'']."</td>";\r\n echo " <td>".$program[''duty_start_time'']."</td>";\r\n echo " <td>".$program[''duty_end_time'']."</td>";\r\n echo '' <td><input type="button" onclick="confirm_exchange(''.$change_list[''id''].'', ''.$program[''program_id''].'');" value="Ανταλλαγή" class="btn btn-success"/></td>'';\r\n echo "</tr>";\r\n \r\n $i++;\r\n \r\n \r\n } // while program\r\n \r\n \r\n \r\n } // while change_list\r\n \r\n \r\n if ($i==1)\r\n {\r\n echo "Δεν υπάρχουν καθήκοντα άλλων χρηστών με τα οποία μπορεί να ανταλλαχθεί το παρόν.<br>";\r\n echo ''<input type="button" onclick="confirm_accept(''.$_GET[''duty_id''].'');" value="Αλλαγή" class="btn btn-success"/>'';\r\n }\r\n \r\n \r\n $con->close();\r\n \r\n ?>\r\n </table>\r\n \r\n</body>\r\n</html>', '', 1, 2, '2013-08-12 10:39:58', 385, '', '2013-08-14 08:49:03', 385, 0, '0000-00-00 00:00:00', '2013-08-12 10:39:58', '0000-00-00 00:00:00', '{"image_intro":"","float_intro":"","image_intro_alt":"","image_intro_caption":"","image_fulltext":"","float_fulltext":"","image_fulltext_alt":"","image_fulltext_caption":""}', '{"urla":false,"urlatext":"","targeta":"","urlb":false,"urlbtext":"","targetb":"","urlc":false,"urlctext":"","targetc":""}', '{"show_title":"","link_titles":"","show_tags":"","show_intro":"","info_block_position":"","show_category":"","link_category":"","show_parent_category":"","link_parent_category":"","show_author":"","link_author":"","show_create_date":"","show_modify_date":"","show_publish_date":"","show_item_navigation":"","show_icons":"","show_print_icon":"","show_email_icon":"","show_vote":"","show_hits":"","show_noauth":"","urls_position":"","alternative_readmore":"","article_layout":"","show_publishing_options":"","show_article_options":"","show_urls_images_backend":"","show_urls_images_frontend":""}', 16, 4, '', '', 2, 87, '{"robots":"","author":"","rights":"","xreference":""}', 0, '*', ''),
(22, 57, 'Απόρριψη Αιτήματος', '2013-08-12-10-40-17', '<?php\r\n \r\n function connect_db($name)\r\n {\r\n try\r\n {\r\n @ $con = mysqli_connect(''localhost'', ''root'', ''OgfTt&TTtG?'', $name);\r\n \r\n if (mysqli_connect_errno()) {\r\n printf("Connect failed: %s\\n", mysqli_connect_error());\r\n exit();\r\n }\r\n \r\n $con->select_db($name);\r\n \r\n if (!$con->set_charset(''utf8''))\r\n printf("Error loading character set utf8: %s\\n", $mysqli->error);\r\n \r\n //echo $con;\r\n \r\n return $con;\r\n }\r\n catch (Exception $e)\r\n {\r\n return -1;\r\n }\r\n }\r\n \r\n \r\n?>\r\n\r\n\r\n<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\r\n<html xmlns="http://www.w3.org/1999/xhtml">\r\n<head>\r\n</head>\r\n\r\n\r\n<body>\r\n \r\n <?php\r\n \r\n \r\n $con = connect_db(''central_db'');\r\n \r\n if ( isset( $_GET[''duty_id''] ) )\r\n {\r\n \r\n \r\n $query_string = "SELECT * FROM change_list";\r\n $query_string .= " WHERE id=".$_GET[''duty_id''];\r\n $result = $con->query($query_string);\r\n \r\n while ($change = $result->fetch_array())\r\n {\r\n $change_date = $change[''request_date''];\r\n $change_start = $change[''request_start_time''];\r\n $change_user_id = $change[''user_id''];\r\n }\r\n \r\n \r\n \r\n $query_string = "DELETE FROM change_list WHERE id=''".$_GET[''duty_id'']."''";\r\n $result = $con->query($query_string);\r\n \r\n \r\n \r\n // ******************** NOTIFY *********************** //\r\n \r\n $query_string = "INSERT INTO notify_user VALUES (NULL, ".$change_user_id.", ".$_GET[''duty_id''].", 1, ''Your request for date ".$change_date." and time ".$change_start." has NOT been fulfilled.'')";\r\n $con->query($query_string);\r\n \r\n \r\n $con->close();\r\n header(''Location: http://localhost/HFPM_WebApp_J/index.php/requests-users'');\r\n \r\n }\r\n else\r\n {\r\n header(''Location: http://localhost/HFPM_WebApp_J/index.php/error'');\r\n }\r\n \r\n ?>\r\n \r\n</body>\r\n</html>', '', 1, 2, '2013-08-12 10:40:17', 385, '', '2013-09-03 20:26:20', 385, 0, '0000-00-00 00:00:00', '2013-08-12 10:40:17', '0000-00-00 00:00:00', '{"image_intro":"","float_intro":"","image_intro_alt":"","image_intro_caption":"","image_fulltext":"","float_fulltext":"","image_fulltext_alt":"","image_fulltext_caption":""}', '{"urla":false,"urlatext":"","targeta":"","urlb":false,"urlbtext":"","targetb":"","urlc":false,"urlctext":"","targetc":""}', '{"show_title":"","link_titles":"","show_tags":"","show_intro":"","info_block_position":"","show_category":"","link_category":"","show_parent_category":"","link_parent_category":"","show_author":"","link_author":"","show_create_date":"","show_modify_date":"","show_publish_date":"","show_item_navigation":"","show_icons":"","show_print_icon":"","show_email_icon":"","show_vote":"","show_hits":"","show_noauth":"","urls_position":"","alternative_readmore":"","article_layout":"","show_publishing_options":"","show_article_options":"","show_urls_images_backend":"","show_urls_images_frontend":""}', 7, 3, '', '', 2, 37, '{"robots":"","author":"","rights":"","xreference":""}', 0, '*', '');
INSERT INTO `luacm_content` (`id`, `asset_id`, `title`, `alias`, `introtext`, `fulltext`, `state`, `catid`, `created`, `created_by`, `created_by_alias`, `modified`, `modified_by`, `checked_out`, `checked_out_time`, `publish_up`, `publish_down`, `images`, `urls`, `attribs`, `version`, `ordering`, `metakey`, `metadesc`, `access`, `hits`, `metadata`, `featured`, `language`, `xreference`) VALUES
(23, 58, 'Ανταλλαγή Καθηκόντων', '2013-08-13-21-15-58', '<?php\r\n \r\n function connect_db($name)\r\n {\r\n try\r\n {\r\n @ $con = mysqli_connect(''localhost'', ''root'', ''OgfTt&TTtG?'', $name);\r\n \r\n if (mysqli_connect_errno()) {\r\n printf("Connect failed: %s\\n", mysqli_connect_error());\r\n exit();\r\n }\r\n \r\n $con->select_db($name);\r\n \r\n if (!$con->set_charset(''utf8''))\r\n printf("Error loading character set utf8: %s\\n", $mysqli->error);\r\n \r\n //echo $con;\r\n \r\n return $con;\r\n }\r\n catch (Exception $e)\r\n {\r\n return -1;\r\n }\r\n }\r\n \r\n \r\n?>\r\n\r\n\r\n<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\r\n<html xmlns="http://www.w3.org/1999/xhtml">\r\n<head>\r\n</head>\r\n\r\n\r\n<body>\r\n \r\n <?php\r\n \r\n if ( isset($_GET[''before'']) && isset($_GET[''after'']) )\r\n {\r\n \r\n $con = connect_db(''central_db'');\r\n \r\n \r\n \r\n \r\n \r\n // ********************* BEFORE *********************** //\r\n \r\n $query_string = "SELECT date, duty_start_time, duty_end_time, user_id FROM program";\r\n $query_string .= " WHERE program_id=".$_GET[''before''];\r\n $result = $con->query($query_string);\r\n \r\n while ($before = $result->fetch_array())\r\n {\r\n $before_date = $before[''date''];\r\n $before_start = $before[''duty_start_time''];\r\n $before_end = $before[''duty_end_time''];\r\n $before_user_id = $before[''user_id''];\r\n }\r\n \r\n \r\n // ********************* AFTER *********************** //\r\n \r\n $query_string = "SELECT date, duty_start_time, duty_end_time, user_id FROM program";\r\n $query_string .= " WHERE program_id=".$_GET[''after''];\r\n $result2 = $con->query($query_string);\r\n \r\n while ($after = $result2->fetch_array())\r\n {\r\n $after_date = $after[''date''];\r\n $after_start = $after[''duty_start_time''];\r\n $after_end = $after[''duty_end_time''];\r\n $after_user_id = $after[''user_id''];\r\n }\r\n \r\n \r\n \r\n \r\n \r\n \r\n // ******************* EXCHANGE ******************** //\r\n \r\n $query_string = "UPDATE program SET date=''".$after_date."'', duty_start_time=''".$after_start."'', duty_end_time=''".$after_end."''";\r\n $query_string .= " WHERE program_id=".$_GET[''before''];\r\n $con->query($query_string);\r\n \r\n $query_string = "UPDATE program SET date=''".$before_date."'', duty_start_time=''".$before_start."'', duty_end_time=''".$before_end."''";\r\n $query_string .= " WHERE program_id=".$_GET[''after''];\r\n $con->query($query_string);\r\n \r\n \r\n $query_string = "DELETE FROM change_list";\r\n $query_string .= " WHERE id=".$_GET[''before''];\r\n $con->query($query_string);\r\n \r\n \r\n \r\n \r\n \r\n // ******************** NOTIFY *********************** //\r\n \r\n $query_string = "INSERT INTO notify_user VALUES (NULL, ".$before_user_id.", ".$_GET[''before''].", 1, ''Your request for date ".$after_date." and time ".$after_start." has been fulfilled.'')";\r\n $con->query($query_string);\r\n \r\n $query_string = "INSERT INTO notify_user VALUES (NULL, ".$after_user_id.", ".$_GET[''after''].", 1, ''Your program on date ".$after_date." moved to ".$before_date.".'')";\r\n $con->query($query_string);\r\n \r\n \r\n $con->close();\r\n \r\n header(''Location: http://localhost/HFPM_WebApp_J/index.php/requests-users'');\r\n \r\n }\r\n else\r\n {\r\n header(''Location: http://localhost/HFPM_WebApp_J/index.php/error'');\r\n }\r\n \r\n ?>\r\n \r\n</body>\r\n</html>', '', 1, 2, '2013-08-13 21:15:58', 385, '', '2013-09-03 20:55:47', 385, 0, '0000-00-00 00:00:00', '2013-08-13 21:15:58', '0000-00-00 00:00:00', '{"image_intro":"","float_intro":"","image_intro_alt":"","image_intro_caption":"","image_fulltext":"","float_fulltext":"","image_fulltext_alt":"","image_fulltext_caption":""}', '{"urla":false,"urlatext":"","targeta":"","urlb":false,"urlbtext":"","targetb":"","urlc":false,"urlctext":"","targetc":""}', '{"show_title":"","link_titles":"","show_tags":"","show_intro":"","info_block_position":"","show_category":"","link_category":"","show_parent_category":"","link_parent_category":"","show_author":"","link_author":"","show_create_date":"","show_modify_date":"","show_publish_date":"","show_item_navigation":"","show_icons":"","show_print_icon":"","show_email_icon":"","show_vote":"","show_hits":"","show_noauth":"","urls_position":"","alternative_readmore":"","article_layout":"","show_publishing_options":"","show_article_options":"","show_urls_images_backend":"","show_urls_images_frontend":""}', 7, 2, '', '', 2, 10, '{"robots":"","author":"","rights":"","xreference":""}', 0, '*', ''),
(24, 59, 'Οριστική Αποδοχή Αιτήματος (Ανταλλαγή)', '2013-08-13-21-16-51', '<?php\r\n \r\n function connect_db($name)\r\n {\r\n try\r\n {\r\n @ $con = mysqli_connect(''localhost'', ''root'', ''OgfTt&TTtG?'', $name);\r\n \r\n if (mysqli_connect_errno()) {\r\n printf("Connect failed: %s\\n", mysqli_connect_error());\r\n exit();\r\n }\r\n \r\n $con->select_db($name);\r\n \r\n if (!$con->set_charset(''utf8''))\r\n printf("Error loading character set utf8: %s\\n", $mysqli->error);\r\n \r\n //echo $con;\r\n \r\n return $con;\r\n }\r\n catch (Exception $e)\r\n {\r\n return -1;\r\n }\r\n }\r\n \r\n \r\n?>\r\n\r\n\r\n<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\r\n<html xmlns="http://www.w3.org/1999/xhtml">\r\n<head>\r\n</head>\r\n\r\n\r\n<body>\r\n \r\n <?php\r\n \r\n if ( isset($_GET[''duty_id'']) )\r\n {\r\n \r\n $con = connect_db(''central_db'');\r\n \r\n \r\n \r\n $query_string = "SELECT * FROM change_list";\r\n $query_string .= " WHERE id=".$_GET[''duty_id''];\r\n $result = $con->query($query_string);\r\n \r\n while ($change = $result->fetch_array())\r\n {\r\n $change_date = $change[''request_date''];\r\n $change_start = $change[''request_start_time''];\r\n $change_user_id = $change[''user_id''];\r\n }\r\n \r\n \r\n \r\n $query_string = "SELECT duty_start_time, duty_end_time FROM program";\r\n $query_string .= " WHERE program_id=".$_GET[''duty_id''];\r\n $result = $con->query($query_string);\r\n \r\n while ($program = $result->fetch_array())\r\n {\r\n $prog_diff_times_secs = strtotime($program[''duty_end_time'']) - strtotime($program[''duty_start_time'']);\r\n }\r\n \r\n \r\n $change_end = date(''H:i:s'', strtotime($change_start) + $prog_diff_times_secs);\r\n \r\n $query_string = "UPDATE program SET date=''".$change_date."'', duty_start_time=''".$change_start."'', duty_end_time=''".$change_end."''";\r\n $query_string .= " WHERE program_id=".$_GET[''duty_id''];\r\n $con->query($query_string);\r\n \r\n \r\n $query_string = "DELETE FROM change_list";\r\n $query_string .= " WHERE id=".$_GET[''duty_id''];\r\n $con->query($query_string);\r\n \r\n \r\n \r\n \r\n \r\n // ******************** NOTIFY *********************** //\r\n \r\n $query_string = "INSERT INTO notify_user VALUES (NULL, ".$change_user_id.", ".$_GET[''duty_id''].", 1, ''Your request for date ".$change_date." and time ".$change_start." has fulfilled.'')";\r\n $con->query($query_string);\r\n \r\n $con->close();\r\n \r\n header(''Location: http://localhost/HFPM_WebApp_J/index.php/requests-users'');\r\n \r\n }\r\n else\r\n {\r\n header(''Location: http://localhost/HFPM_WebApp_J/index.php/error'');\r\n }\r\n \r\n ?>\r\n \r\n</body>\r\n</html>', '', 1, 2, '2013-08-13 21:16:51', 385, '', '2013-09-03 20:09:45', 385, 0, '0000-00-00 00:00:00', '2013-08-13 21:16:51', '0000-00-00 00:00:00', '{"image_intro":"","float_intro":"","image_intro_alt":"","image_intro_caption":"","image_fulltext":"","float_fulltext":"","image_fulltext_alt":"","image_fulltext_caption":""}', '{"urla":false,"urlatext":"","targeta":"","urlb":false,"urlbtext":"","targetb":"","urlc":false,"urlctext":"","targetc":""}', '{"show_title":"","link_titles":"","show_tags":"","show_intro":"","info_block_position":"","show_category":"","link_category":"","show_parent_category":"","link_parent_category":"","show_author":"","link_author":"","show_create_date":"","show_modify_date":"","show_publish_date":"","show_item_navigation":"","show_icons":"","show_print_icon":"","show_email_icon":"","show_vote":"","show_hits":"","show_noauth":"","urls_position":"","alternative_readmore":"","article_layout":"","show_publishing_options":"","show_article_options":"","show_urls_images_backend":"","show_urls_images_frontend":""}', 3, 1, '', '', 2, 21, '{"robots":"","author":"","rights":"","xreference":""}', 0, '*', ''),
(25, 60, 'Καλώς Ήρθατε', '2013-08-14-11-04-01', '<h4>Καλώς ήρθατε στην εφαρμογή διαχείρισης νοσοκομειακής μονάδας.<br><br>\r\n\r\nΑπό εδώ μπορείτε να δημιουργείτε νέους χρήστες του συστήματος, νέα προγράμματα, να βλέπετε την λίστα χρηστών και προγραμμάτων, καθώς και τα αιτήματα των χρηστών για αλλαγές στα προγράμματά τους.<br>\r\nΕπίσης υπάρχει η δυνατότητα επεξεργασίας χρήστη και επιλογή αποδοχής/απόρριψης αιτημάτων!<br><br>\r\n\r\nΓια να ξεκινήσετε κάντε κλικ σε κάποιο από τα στοιχεία του μενού στα δεξιά σας!</h4>', '', 1, 2, '2013-08-14 11:04:01', 385, '', '2013-08-14 11:09:06', 385, 0, '0000-00-00 00:00:00', '2013-08-14 11:04:01', '0000-00-00 00:00:00', '{"image_intro":"","float_intro":"","image_intro_alt":"","image_intro_caption":"","image_fulltext":"","float_fulltext":"","image_fulltext_alt":"","image_fulltext_caption":""}', '{"urla":false,"urlatext":"","targeta":"","urlb":false,"urlbtext":"","targetb":"","urlc":false,"urlctext":"","targetc":""}', '{"show_title":"","link_titles":"","show_tags":"","show_intro":"","info_block_position":"","show_category":"","link_category":"","show_parent_category":"","link_parent_category":"","show_author":"","link_author":"","show_create_date":"","show_modify_date":"","show_publish_date":"","show_item_navigation":"","show_icons":"","show_print_icon":"","show_email_icon":"","show_vote":"","show_hits":"","show_noauth":"","urls_position":"","alternative_readmore":"","article_layout":"","show_publishing_options":"","show_article_options":"","show_urls_images_backend":"","show_urls_images_frontend":""}', 4, 0, '', '', 1, 63, '{"robots":"","author":"","rights":"","xreference":""}', 0, '*', '');
-- --------------------------------------------------------
--
-- Table structure for table `luacm_contentitem_tag_map`
--
CREATE TABLE IF NOT EXISTS `luacm_contentitem_tag_map` (
`type_alias` varchar(255) NOT NULL DEFAULT '',
`core_content_id` int(10) unsigned NOT NULL COMMENT 'PK from the core content table',
`content_item_id` int(11) NOT NULL COMMENT 'PK from the content type table',
`tag_id` int(10) unsigned NOT NULL COMMENT 'PK from the tag table',
`tag_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'Date of most recent save for this tag-item',
`type_id` mediumint(8) NOT NULL COMMENT 'PK from the content_type table',
UNIQUE KEY `uc_ItemnameTagid` (`type_id`,`content_item_id`,`tag_id`),
KEY `idx_tag_type` (`tag_id`,`type_id`),
KEY `idx_date_id` (`tag_date`,`tag_id`),
KEY `idx_tag` (`tag_id`),
KEY `idx_type` (`type_id`),
KEY `idx_core_content_id` (`core_content_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Maps items from content tables to tags';
-- --------------------------------------------------------
--
-- Table structure for table `luacm_content_frontpage`
--
CREATE TABLE IF NOT EXISTS `luacm_content_frontpage` (
`content_id` int(11) NOT NULL DEFAULT '0',
`ordering` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`content_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `luacm_content_rating`
--
CREATE TABLE IF NOT EXISTS `luacm_content_rating` (
`content_id` int(11) NOT NULL DEFAULT '0',
`rating_sum` int(10) unsigned NOT NULL DEFAULT '0',
`rating_count` int(10) unsigned NOT NULL DEFAULT '0',
`lastip` varchar(50) NOT NULL DEFAULT '',
PRIMARY KEY (`content_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `luacm_content_types`
--
CREATE TABLE IF NOT EXISTS `luacm_content_types` (
`type_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`type_title` varchar(255) NOT NULL DEFAULT '',
`type_alias` varchar(255) NOT NULL DEFAULT '',
`table` varchar(255) NOT NULL DEFAULT '',
`rules` text NOT NULL,
`field_mappings` text NOT NULL,
`router` varchar(255) NOT NULL DEFAULT '',
PRIMARY KEY (`type_id`),
KEY `idx_alias` (`type_alias`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=11 ;
--
-- Dumping data for table `luacm_content_types`
--
INSERT INTO `luacm_content_types` (`type_id`, `type_title`, `type_alias`, `table`, `rules`, `field_mappings`, `router`) VALUES
(1, 'Article', 'com_content.article', '{"special":{"dbtable":"#__content","key":"id","type":"Content","prefix":"JTable","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}', '', '{"common":{"core_content_item_id":"id","core_title":"title","core_state":"state","core_alias":"alias","core_created_time":"created","core_modified_time":"modified","core_body":"introtext", "core_hits":"hits","core_publish_up":"publish_up","core_publish_down":"publish_down","core_access":"access", "core_params":"attribs", "core_featured":"featured", "core_metadata":"metadata", "core_language":"language", "core_images":"images", "core_urls":"urls", "core_version":"version", "core_ordering":"ordering", "core_metakey":"metakey", "core_metadesc":"metadesc", "core_catid":"catid", "core_xreference":"xreference", "asset_id":"asset_id"}, "special": {"fulltext":"fulltext"}}', 'ContentHelperRoute::getArticleRoute'),
(2, 'Weblink', 'com_weblinks.weblink', '{"special":{"dbtable":"#__weblinks","key":"id","type":"Weblink","prefix":"WeblinksTable","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}', '', '{"common":{"core_content_item_id":"id","core_title":"title","core_state":"state","core_alias":"alias","core_created_time":"created","core_modified_time":"modified","core_body":"description", "core_hits":"hits","core_publish_up":"publish_up","core_publish_down":"publish_down","core_access":"access", "core_params":"params", "core_featured":"featured", "core_metadata":"metadata", "core_language":"language", "core_images":"images", "core_urls":"url", "core_version":"version", "core_ordering":"ordering", "core_metakey":"metakey", "core_metadesc":"metadesc", "core_catid":"catid", "core_xreference":"xreference", "asset_id":"null"}, "special": {}}', 'WeblinksHelperRoute::getWeblinkRoute'),
(3, 'Contact', 'com_contact.contact', '{"special":{"dbtable":"#__contact_details","key":"id","type":"Contact","prefix":"ContactTable","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}', '', '{"common":{"core_content_item_id":"id","core_title":"name","core_state":"published","core_alias":"alias","core_created_time":"created","core_modified_time":"modified","core_body":"address", "core_hits":"hits","core_publish_up":"publish_up","core_publish_down":"publish_down","core_access":"access", "core_params":"params", "core_featured":"featured", "core_metadata":"metadata", "core_language":"language", "core_images":"image", "core_urls":"webpage", "core_version":"version", "core_ordering":"ordering", "core_metakey":"metakey", "core_metadesc":"metadesc", "core_catid":"catid", "core_xreference":"xreference", "asset_id":"null"}, "special": {"con_position":"con_position","suburb":"suburb","state":"state","country":"country","postcode":"postcode","telephone":"telephone","fax":"fax","misc":"misc","email_to":"email_to","default_con":"default_con","user_id":"user_id","mobile":"mobile","sortname1":"sortname1","sortname2":"sortname2","sortname3":"sortname3"}}', 'ContactHelperRoute::getContactRoute'),
(4, 'Newsfeed', 'com_newsfeeds.newsfeed', '{"special":{"dbtable":"#__newsfeeds","key":"id","type":"Newsfeed","prefix":"NewsfeedsTable","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}', '', '{"common":{"core_content_item_id":"id","core_title":"name","core_state":"published","core_alias":"alias","core_created_time":"created","core_modified_time":"modified","core_body":"description", "core_hits":"hits","core_publish_up":"publish_up","core_publish_down":"publish_down","core_access":"access", "core_params":"params", "core_featured":"featured", "core_metadata":"metadata", "core_language":"language", "core_images":"images", "core_urls":"link", "core_version":"version", "core_ordering":"ordering", "core_metakey":"metakey", "core_metadesc":"metadesc", "core_catid":"catid", "core_xreference":"xreference", "asset_id":"null"}, "special": {"numarticles":"numarticles","cache_time":"cache_time","rtl":"rtl"}}', 'NewsfeedsHelperRoute::getNewsfeedRoute'),
(5, 'User', 'com_users.user', '{"special":{"dbtable":"#__users","key":"id","type":"User","prefix":"JTable","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}', '', '{"common":{"core_content_item_id":"id","core_title":"name","core_state":"null","core_alias":"username","core_created_time":"registerdate","core_modified_time":"lastvisitDate","core_body":"null", "core_hits":"null","core_publish_up":"null","core_publish_down":"null","access":"null", "core_params":"params", "core_featured":"null", "core_metadata":"null", "core_language":"null", "core_images":"null", "core_urls":"null", "core_version":"null", "core_ordering":"null", "core_metakey":"null", "core_metadesc":"null", "core_catid":"null", "core_xreference":"null", "asset_id":"null"}, "special": {}}', 'UsersHelperRoute::getUserRoute'),
(6, 'Article Category', 'com_content.category', '{"special":{"dbtable":"#__categories","key":"id","type":"Category","prefix":"JTable","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}', '', '{"common":{"core_content_item_id":"id","core_title":"title","core_state":"published","core_alias":"alias","core_created_time":"created_time","core_modified_time":"modified_time","core_body":"description", "core_hits":"hits","core_publish_up":"null","core_publish_down":"null","core_access":"access", "core_params":"params", "core_featured":"null", "core_metadata":"metadata", "core_language":"language", "core_images":"null", "core_urls":"null", "core_version":"version", "core_ordering":"null", "core_metakey":"metakey", "core_metadesc":"metadesc", "core_catid":"parent_id", "core_xreference":"null", "asset_id":"asset_id"}, "special": {"parent_id":"parent_id","lft":"lft","rgt":"rgt","level":"level","path":"path","extension":"extension","note":"note"}}', 'ContentHelperRoute::getCategoryRoute'),
(7, 'Contact Category', 'com_contact.category', '{"special":{"dbtable":"#__categories","key":"id","type":"Category","prefix":"JTable","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}', '', '{"common":{"core_content_item_id":"id","core_title":"title","core_state":"published","core_alias":"alias","core_created_time":"created_time","core_modified_time":"modified_time","core_body":"description", "core_hits":"hits","core_publish_up":"null","core_publish_down":"null","core_access":"access", "core_params":"params", "core_featured":"null", "core_metadata":"metadata", "core_language":"language", "core_images":"null", "core_urls":"null", "core_version":"version", "core_ordering":"null", "core_metakey":"metakey", "core_metadesc":"metadesc", "core_catid":"parent_id", "core_xreference":"null", "asset_id":"asset_id"}, "special": {"parent_id":"parent_id","lft":"lft","rgt":"rgt","level":"level","path":"path","extension":"extension","note":"note"}}', 'ContactHelperRoute::getCategoryRoute'),
(8, 'Newsfeeds Category', 'com_newsfeeds.category', '{"special":{"dbtable":"#__categories","key":"id","type":"Category","prefix":"JTable","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}', '', '{"common":{"core_content_item_id":"id","core_title":"title","core_state":"published","core_alias":"alias","core_created_time":"created_time","core_modified_time":"modified_time","core_body":"description", "core_hits":"hits","core_publish_up":"null","core_publish_down":"null","core_access":"access", "core_params":"params", "core_featured":"null", "core_metadata":"metadata", "core_language":"language", "core_images":"null", "core_urls":"null", "core_version":"version", "core_ordering":"null", "core_metakey":"metakey", "core_metadesc":"metadesc", "core_catid":"parent_id", "core_xreference":"null", "asset_id":"asset_id"}, "special": {"parent_id":"parent_id","lft":"lft","rgt":"rgt","level":"level","path":"path","extension":"extension","note":"note"}}', 'NewsfeedsHelperRoute::getCategoryRoute'),
(9, 'Weblinks Category', 'com_weblinks.category', '{"special":{"dbtable":"#__categories","key":"id","type":"Category","prefix":"JTable","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}', '', '{"common":{"core_content_item_id":"id","core_title":"title","core_state":"published","core_alias":"alias","core_created_time":"created_time","core_modified_time":"modified_time","core_body":"description", "core_hits":"hits","core_publish_up":"null","core_publish_down":"null","core_access":"access", "core_params":"params", "core_featured":"null", "core_metadata":"metadata", "core_language":"language", "core_images":"null", "core_urls":"null", "core_version":"version", "core_ordering":"null", "core_metakey":"metakey", "core_metadesc":"metadesc", "core_catid":"parent_id", "core_xreference":"null", "asset_id":"asset_id"}, "special": {"parent_id":"parent_id","lft":"lft","rgt":"rgt","level":"level","path":"path","extension":"extension","note":"note"}}', 'WeblinksHelperRoute::getCategoryRoute'),
(10, 'Tag', 'com_tags.tag', '{"special":{"dbtable":"#__tags","key":"tag_id","type":"Tag","prefix":"TagsTable","config":"array()"},"common":{"dbtable":"#__ucm_content","key":"ucm_id","type":"Corecontent","prefix":"JTable","config":"array()"}}', '', '{"common":{"core_content_item_id":"id","core_title":"title","core_state":"published","core_alias":"alias","core_created_time":"created_time","core_modified_time":"modified_time","core_body":"description", "core_hits":"hits","core_publish_up":"null","core_publish_down":"null","core_access":"access", "core_params":"params", "core_featured":"featured", "core_metadata":"metadata", "core_language":"language", "core_images":"images", "core_urls":"urls", "core_version":"version", "core_ordering":"null", "core_metakey":"metakey", "core_metadesc":"metadesc", "core_catid":"null", "core_xreference":"null", "asset_id":"null"}, "special": {"parent_id":"parent_id","lft":"lft","rgt":"rgt","level":"level","path":"path"}}', 'TagsHelperRoute::getTagRoute');
-- --------------------------------------------------------
--
-- Table structure for table `luacm_core_log_searches`
--
CREATE TABLE IF NOT EXISTS `luacm_core_log_searches` (
`search_term` varchar(128) NOT NULL DEFAULT '',
`hits` int(10) unsigned NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `luacm_extensions`
--
CREATE TABLE IF NOT EXISTS `luacm_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,
`client_id` tinyint(3) NOT NULL,
`enabled` tinyint(3) NOT NULL DEFAULT '1',
`access` int(10) unsigned NOT NULL DEFAULT '1',
`protected` tinyint(3) NOT NULL DEFAULT '0',
`manifest_cache` text NOT NULL,
`params` text NOT NULL,
`custom_data` text NOT NULL,
`system_data` text NOT NULL,
`checked_out` int(10) unsigned NOT NULL DEFAULT '0',
`checked_out_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`ordering` int(11) DEFAULT '0',
`state` int(11) DEFAULT '0',
PRIMARY KEY (`extension_id`),
KEY `element_clientid` (`element`,`client_id`),
KEY `element_folder_clientid` (`element`,`folder`,`client_id`),
KEY `extension` (`type`,`element`,`folder`,`client_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=10002 ;
--
-- Dumping data for table `luacm_extensions`
--
INSERT INTO `luacm_extensions` (`extension_id`, `name`, `type`, `element`, `folder`, `client_id`, `enabled`, `access`, `protected`, `manifest_cache`, `params`, `custom_data`, `system_data`, `checked_out`, `checked_out_time`, `ordering`, `state`) VALUES
(1, 'com_mailto', 'component', 'com_mailto', '', 0, 1, 1, 1, '{"name":"com_mailto","type":"component","creationDate":"April 2006","author":"Joomla! Project","copyright":"(C) 2005 - 2013 Open Source Matters. All rights reserved.\\t","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"COM_MAILTO_XML_DESCRIPTION","group":""}', '', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(2, 'com_wrapper', 'component', 'com_wrapper', '', 0, 1, 1, 1, '{"name":"com_wrapper","type":"component","creationDate":"April 2006","author":"Joomla! Project","copyright":"(C) 2005 - 2013 Open Source Matters. All rights reserved.\\n\\t","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"COM_WRAPPER_XML_DESCRIPTION","group":""}', '', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(3, 'com_admin', 'component', 'com_admin', '', 1, 1, 1, 1, '{"name":"com_admin","type":"component","creationDate":"April 2006","author":"Joomla! Project","copyright":"(C) 2005 - 2013 Open Source Matters. All rights reserved.\\n\\t","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"COM_ADMIN_XML_DESCRIPTION","group":""}', '', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(4, 'com_banners', 'component', 'com_banners', '', 1, 1, 1, 0, '{"name":"com_banners","type":"component","creationDate":"April 2006","author":"Joomla! Project","copyright":"(C) 2005 - 2013 Open Source Matters. All rights reserved.\\n\\t","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"COM_BANNERS_XML_DESCRIPTION","group":""}', '{"purchase_type":"3","track_impressions":"0","track_clicks":"0","metakey_prefix":""}', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(5, 'com_cache', 'component', 'com_cache', '', 1, 1, 1, 1, '{"name":"com_cache","type":"component","creationDate":"April 2006","author":"Joomla! Project","copyright":"(C) 2005 - 2013 Open Source Matters. All rights reserved.\\t","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"COM_CACHE_XML_DESCRIPTION","group":""}', '', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(6, 'com_categories', 'component', 'com_categories', '', 1, 1, 1, 1, '{"name":"com_categories","type":"component","creationDate":"December 2007","author":"Joomla! Project","copyright":"(C) 2005 - 2013 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"COM_CATEGORIES_XML_DESCRIPTION","group":""}', '', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(7, 'com_checkin', 'component', 'com_checkin', '', 1, 1, 1, 1, '{"name":"com_checkin","type":"component","creationDate":"Unknown","author":"Joomla! Project","copyright":"(C) 2005 - 2008 Open Source Matters. All rights reserved.\\n\\t","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"COM_CHECKIN_XML_DESCRIPTION","group":""}', '', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(8, 'com_contact', 'component', 'com_contact', '', 1, 1, 1, 0, '{"name":"com_contact","type":"component","creationDate":"April 2006","author":"Joomla! Project","copyright":"(C) 2005 - 2013 Open Source Matters. All rights reserved.\\n\\t","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"COM_CONTACT_XML_DESCRIPTION","group":""}', '{"show_contact_category":"hide","show_contact_list":"0","presentation_style":"sliders","show_name":"1","show_position":"1","show_email":"0","show_street_address":"1","show_suburb":"1","show_state":"1","show_postcode":"1","show_country":"1","show_telephone":"1","show_mobile":"1","show_fax":"1","show_webpage":"1","show_misc":"1","show_image":"1","image":"","allow_vcard":"0","show_articles":"0","show_profile":"0","show_links":"0","linka_name":"","linkb_name":"","linkc_name":"","linkd_name":"","linke_name":"","contact_icons":"0","icon_address":"","icon_email":"","icon_telephone":"","icon_mobile":"","icon_fax":"","icon_misc":"","show_headings":"1","show_position_headings":"1","show_email_headings":"0","show_telephone_headings":"1","show_mobile_headings":"0","show_fax_headings":"0","allow_vcard_headings":"0","show_suburb_headings":"1","show_state_headings":"1","show_country_headings":"1","show_email_form":"1","show_email_copy":"1","banned_email":"","banned_subject":"","banned_text":"","validate_session":"1","custom_reply":"0","redirect":"","show_category_crumb":"0","metakey":"","metadesc":"","robots":"","author":"","rights":"","xreference":""}', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(9, 'com_cpanel', 'component', 'com_cpanel', '', 1, 1, 1, 1, '{"name":"com_cpanel","type":"component","creationDate":"April 2006","author":"Joomla! Project","copyright":"(C) 2005 - 2013 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"COM_CPANEL_XML_DESCRIPTION","group":""}', '', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(10, 'com_installer', 'component', 'com_installer', '', 1, 1, 1, 1, '{"name":"com_installer","type":"component","creationDate":"April 2006","author":"Joomla! Project","copyright":"(C) 2005 - 2013 Open Source Matters. All rights reserved.\\t","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"COM_INSTALLER_XML_DESCRIPTION","group":""}', '{}', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(11, 'com_languages', 'component', 'com_languages', '', 1, 1, 1, 1, '{"name":"com_languages","type":"component","creationDate":"2006","author":"Joomla! Project","copyright":"(C) 2005 - 2013 Open Source Matters. All rights reserved.\\n\\t","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"COM_LANGUAGES_XML_DESCRIPTION","group":""}', '{"administrator":"en-GB","site":"el-GR"}', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(12, 'com_login', 'component', 'com_login', '', 1, 1, 1, 1, '{"name":"com_login","type":"component","creationDate":"April 2006","author":"Joomla! Project","copyright":"(C) 2005 - 2013 Open Source Matters. All rights reserved.\\t","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"COM_LOGIN_XML_DESCRIPTION","group":""}', '', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(13, 'com_media', 'component', 'com_media', '', 1, 1, 0, 1, '{"name":"com_media","type":"component","creationDate":"April 2006","author":"Joomla! Project","copyright":"(C) 2005 - 2013 Open Source Matters. All rights reserved.\\t","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"COM_MEDIA_XML_DESCRIPTION","group":""}', '{"upload_extensions":"bmp,csv,doc,gif,ico,jpg,jpeg,odg,odp,ods,odt,pdf,png,ppt,swf,txt,xcf,xls,BMP,CSV,DOC,GIF,ICO,JPG,JPEG,ODG,ODP,ODS,ODT,PDF,PNG,PPT,SWF,TXT,XCF,XLS","upload_maxsize":"10","file_path":"images","image_path":"images","restrict_uploads":"1","allowed_media_usergroup":"3","check_mime":"1","image_extensions":"bmp,gif,jpg,png","ignore_extensions":"","upload_mime":"image\\/jpeg,image\\/gif,image\\/png,image\\/bmp,application\\/x-shockwave-flash,application\\/msword,application\\/excel,application\\/pdf,application\\/powerpoint,text\\/plain,application\\/x-zip","upload_mime_illegal":"text\\/html"}', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(14, 'com_menus', 'component', 'com_menus', '', 1, 1, 1, 1, '{"name":"com_menus","type":"component","creationDate":"April 2006","author":"Joomla! Project","copyright":"(C) 2005 - 2013 Open Source Matters. All rights reserved.\\t","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"COM_MENUS_XML_DESCRIPTION","group":""}', '{}', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(15, 'com_messages', 'component', 'com_messages', '', 1, 1, 1, 1, '{"name":"com_messages","type":"component","creationDate":"April 2006","author":"Joomla! Project","copyright":"(C) 2005 - 2013 Open Source Matters. All rights reserved.\\t","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"COM_MESSAGES_XML_DESCRIPTION","group":""}', '', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(16, 'com_modules', 'component', 'com_modules', '', 1, 1, 1, 1, '{"name":"com_modules","type":"component","creationDate":"April 2006","author":"Joomla! Project","copyright":"(C) 2005 - 2013 Open Source Matters. All rights reserved.\\t","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"COM_MODULES_XML_DESCRIPTION","group":""}', '{}', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(17, 'com_newsfeeds', 'component', 'com_newsfeeds', '', 1, 1, 1, 0, '{"name":"com_newsfeeds","type":"component","creationDate":"April 2006","author":"Joomla! Project","copyright":"(C) 2005 - 2013 Open Source Matters. All rights reserved.\\t","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"COM_NEWSFEEDS_XML_DESCRIPTION","group":""}', '{"show_feed_image":"1","show_feed_description":"1","show_item_description":"1","feed_word_count":"0","show_headings":"1","show_name":"1","show_articles":"0","show_link":"1","show_description":"1","show_description_image":"1","display_num":"","show_pagination_limit":"1","show_pagination":"1","show_pagination_results":"1","show_cat_items":"1"}', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(18, 'com_plugins', 'component', 'com_plugins', '', 1, 1, 1, 1, '{"name":"com_plugins","type":"component","creationDate":"April 2006","author":"Joomla! Project","copyright":"(C) 2005 - 2013 Open Source Matters. All rights reserved.\\t","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"COM_PLUGINS_XML_DESCRIPTION","group":""}', '{}', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(19, 'com_search', 'component', 'com_search', '', 1, 1, 1, 0, '{"name":"com_search","type":"component","creationDate":"April 2006","author":"Joomla! Project","copyright":"(C) 2005 - 2013 Open Source Matters. All rights reserved.\\n\\t","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"COM_SEARCH_XML_DESCRIPTION","group":""}', '{"enabled":"0","show_date":"1"}', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(20, 'com_templates', 'component', 'com_templates', '', 1, 1, 1, 1, '{"name":"com_templates","type":"component","creationDate":"April 2006","author":"Joomla! Project","copyright":"(C) 2005 - 2013 Open Source Matters. All rights reserved.\\t","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"COM_TEMPLATES_XML_DESCRIPTION","group":""}', '{}', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(21, 'com_weblinks', 'component', 'com_weblinks', '', 1, 1, 1, 0, '{"name":"com_weblinks","type":"component","creationDate":"April 2006","author":"Joomla! Project","copyright":"(C) 2005 - 2013 Open Source Matters. All rights reserved.\\n\\t","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"COM_WEBLINKS_XML_DESCRIPTION","group":""}', '{"show_comp_description":"1","comp_description":"","show_link_hits":"1","show_link_description":"1","show_other_cats":"0","show_headings":"0","show_numbers":"0","show_report":"1","count_clicks":"1","target":"0","link_icons":""}', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(22, 'com_content', 'component', 'com_content', '', 1, 1, 0, 1, '{"name":"com_content","type":"component","creationDate":"April 2006","author":"Joomla! Project","copyright":"(C) 2005 - 2013 Open Source Matters. All rights reserved.\\t","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"COM_CONTENT_XML_DESCRIPTION","group":""}', '{"article_layout":"_:default","show_title":"1","link_titles":"0","show_intro":"0","info_block_position":"0","show_category":"0","link_category":"0","show_parent_category":"0","link_parent_category":"0","show_author":"0","link_author":"0","show_create_date":"0","show_modify_date":"0","show_publish_date":"0","show_item_navigation":"0","show_vote":"0","show_readmore":"0","show_readmore_title":"0","readmore_limit":"100","show_tags":"0","show_icons":"0","show_print_icon":"0","show_email_icon":"0","show_hits":"0","show_noauth":"0","urls_position":"0","show_publishing_options":"1","show_article_options":"1","show_urls_images_frontend":"0","show_urls_images_backend":"1","targeta":0,"targetb":0,"targetc":0,"float_intro":"left","float_fulltext":"left","category_layout":"_:blog","show_category_heading_title_text":"1","show_category_title":"0","show_description":"0","show_description_image":"0","maxLevel":"1","show_empty_categories":"0","show_no_articles":"1","show_subcat_desc":"1","show_cat_num_articles":"0","show_base_description":"1","maxLevelcat":"-1","show_empty_categories_cat":"0","show_subcat_desc_cat":"1","show_cat_num_articles_cat":"1","num_leading_articles":"1","num_intro_articles":"4","num_columns":"2","num_links":"4","multi_column_order":"0","show_subcategory_content":"0","show_pagination_limit":"1","filter_field":"hide","show_headings":"1","list_show_date":"0","date_format":"","list_show_hits":"1","list_show_author":"1","orderby_pri":"order","orderby_sec":"rdate","order_date":"published","show_pagination":"2","show_pagination_results":"1","show_feed_link":"1","feed_summary":"0","feed_show_readmore":"0"}', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(23, 'com_config', 'component', 'com_config', '', 1, 1, 0, 1, '{"name":"com_config","type":"component","creationDate":"April 2006","author":"Joomla! Project","copyright":"(C) 2005 - 2013 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"COM_CONFIG_XML_DESCRIPTION","group":""}', '{"filters":{"1":{"filter_type":"NH","filter_tags":"","filter_attributes":""},"9":{"filter_type":"BL","filter_tags":"","filter_attributes":""},"6":{"filter_type":"BL","filter_tags":"","filter_attributes":""},"7":{"filter_type":"NONE","filter_tags":"","filter_attributes":""},"2":{"filter_type":"NH","filter_tags":"","filter_attributes":""},"3":{"filter_type":"BL","filter_tags":"","filter_attributes":""},"4":{"filter_type":"BL","filter_tags":"","filter_attributes":""},"5":{"filter_type":"BL","filter_tags":"","filter_attributes":""},"8":{"filter_type":"NONE","filter_tags":"","filter_attributes":""}}}', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(24, 'com_redirect', 'component', 'com_redirect', '', 1, 1, 0, 1, '{"name":"com_redirect","type":"component","creationDate":"April 2006","author":"Joomla! Project","copyright":"(C) 2005 - 2013 Open Source Matters. All rights reserved.\\t","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"COM_REDIRECT_XML_DESCRIPTION","group":""}', '{}', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(25, 'com_users', 'component', 'com_users', '', 1, 1, 0, 1, '{"name":"com_users","type":"component","creationDate":"April 2006","author":"Joomla! Project","copyright":"(C) 2005 - 2013 Open Source Matters. All rights reserved.\\t","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"COM_USERS_XML_DESCRIPTION","group":""}', '{"allowUserRegistration":"0","new_usertype":"2","guest_usergroup":"9","sendpassword":"1","useractivation":"2","mail_to_admin":"1","captcha":"","frontend_userparams":"1","site_language":"0","change_login_name":"0","reset_count":"10","reset_time":"1","minimum_length":"4","minimum_integers":"0","minimum_symbols":"0","minimum_uppercase":"0","mailSubjectPrefix":"","mailBodySuffix":""}', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(27, 'com_finder', 'component', 'com_finder', '', 1, 1, 0, 0, '{"name":"com_finder","type":"component","creationDate":"August 2011","author":"Joomla! Project","copyright":"(C) 2005 - 2013 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"COM_FINDER_XML_DESCRIPTION","group":""}', '{"show_description":"1","description_length":255,"allow_empty_query":"0","show_url":"1","show_advanced":"1","expand_advanced":"0","show_date_filters":"0","highlight_terms":"1","opensearch_name":"","opensearch_description":"","batch_size":"50","memory_table_limit":30000,"title_multiplier":"1.7","text_multiplier":"0.7","meta_multiplier":"1.2","path_multiplier":"2.0","misc_multiplier":"0.3","stemmer":"snowball"}', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(28, 'com_joomlaupdate', 'component', 'com_joomlaupdate', '', 1, 1, 0, 1, '{"name":"com_joomlaupdate","type":"component","creationDate":"February 2012","author":"Joomla! Project","copyright":"(C) 2005 - 2013 Open Source Matters. All rights reserved.\\t","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"COM_JOOMLAUPDATE_XML_DESCRIPTION","group":""}', '{}', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(29, 'com_tags', 'component', 'com_tags', '', 1, 1, 1, 1, '{"name":"com_tags","type":"component","creationDate":"December 2013","author":"Joomla! Project","copyright":"(C) 2005 - 2013 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.1.0","description":"COM_TAGS_XML_DESCRIPTION","group":""}', '{"show_tag_title":"0","tag_list_show_tag_image":"0","tag_list_show_tag_description":"0","tag_list_image":"","show_tag_num_items":"0","tag_list_orderby":"title","tag_list_orderby_direction":"ASC","show_headings":"0","tag_list_show_date":"0","tag_list_show_item_image":"0","tag_list_show_item_description":"0","tag_list_item_maximum_characters":0,"return_any_or_all":"1","include_children":"0","maximum":200,"tag_list_language_filter":"all","tags_layout":"_:default","all_tags_orderby":"title","all_tags_orderby_direction":"ASC","all_tags_show_tag_image":"0","all_tags_show_tag_descripion":"0","all_tags_tag_maximum_characters":20,"all_tags_show_tag_hits":"0","filter_field":"1","show_pagination_limit":"1","show_pagination":"2","show_pagination_results":"1","tag_field_ajax_mode":"1","show_feed_link":"1"}', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(100, 'PHPMailer', 'library', 'phpmailer', '', 0, 1, 1, 1, '{"name":"PHPMailer","type":"library","creationDate":"2001","author":"PHPMailer","copyright":"(c) 2001-2003, Brent R. Matzelle, (c) 2004-2009, Andy Prevost. All Rights Reserved., (c) 2010-2013, Jim Jagielski. All Rights Reserved.","authorEmail":"jimjag@gmail.com","authorUrl":"https:\\/\\/github.com\\/PHPMailer\\/PHPMailer","version":"5.2.6","description":"LIB_PHPMAILER_XML_DESCRIPTION","group":""}', '', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(101, 'SimplePie', 'library', 'simplepie', '', 0, 1, 1, 1, '{"name":"SimplePie","type":"library","creationDate":"2004","author":"SimplePie","copyright":"Copyright (c) 2004-2009, Ryan Parman and Geoffrey Sneddon","authorEmail":"","authorUrl":"http:\\/\\/simplepie.org\\/","version":"1.2","description":"LIB_SIMPLEPIE_XML_DESCRIPTION","group":""}', '', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(102, 'phputf8', 'library', 'phputf8', '', 0, 1, 1, 1, '{"name":"phputf8","type":"library","creationDate":"2006","author":"Harry Fuecks","copyright":"Copyright various authors","authorEmail":"hfuecks@gmail.com","authorUrl":"http:\\/\\/sourceforge.net\\/projects\\/phputf8","version":"0.5","description":"LIB_PHPUTF8_XML_DESCRIPTION","group":""}', '', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(103, 'Joomla! Platform', 'library', 'joomla', '', 0, 1, 1, 1, '{"name":"Joomla! Platform","type":"library","creationDate":"2008","author":"Joomla! Project","copyright":"Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"http:\\/\\/www.joomla.org","version":"12.2","description":"LIB_JOOMLA_XML_DESCRIPTION","group":""}', '{}', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(104, 'IDNA Convert', 'library', 'idna_convert', '', 0, 1, 1, 1, '{"name":"IDNA Convert","type":"library","creationDate":"2004","author":"phlyLabs","copyright":"2004-2011 phlyLabs Berlin, http:\\/\\/phlylabs.de","authorEmail":"phlymail@phlylabs.de","authorUrl":"http:\\/\\/phlylabs.de","version":"0.8.0","description":"LIB_IDNA_XML_DESCRIPTION","group":""}', '', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(200, 'mod_articles_archive', 'module', 'mod_articles_archive', '', 0, 1, 1, 0, '{"name":"mod_articles_archive","type":"module","creationDate":"July 2006","author":"Joomla! Project","copyright":"Copyright (C) 2005 - 2013 Open Source Matters.\\n\\t\\tAll rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"MOD_ARTICLES_ARCHIVE_XML_DESCRIPTION","group":""}', '', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(201, 'mod_articles_latest', 'module', 'mod_articles_latest', '', 0, 1, 1, 0, '{"name":"mod_articles_latest","type":"module","creationDate":"July 2004","author":"Joomla! Project","copyright":"Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"MOD_LATEST_NEWS_XML_DESCRIPTION","group":""}', '', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(202, 'mod_articles_popular', 'module', 'mod_articles_popular', '', 0, 1, 1, 0, '{"name":"mod_articles_popular","type":"module","creationDate":"July 2006","author":"Joomla! Project","copyright":"Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"MOD_POPULAR_XML_DESCRIPTION","group":""}', '', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(203, 'mod_banners', 'module', 'mod_banners', '', 0, 1, 1, 0, '{"name":"mod_banners","type":"module","creationDate":"July 2006","author":"Joomla! Project","copyright":"Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"MOD_BANNERS_XML_DESCRIPTION","group":""}', '', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(204, 'mod_breadcrumbs', 'module', 'mod_breadcrumbs', '', 0, 1, 1, 1, '{"name":"mod_breadcrumbs","type":"module","creationDate":"July 2006","author":"Joomla! Project","copyright":"Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"MOD_BREADCRUMBS_XML_DESCRIPTION","group":""}', '', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(205, 'mod_custom', 'module', 'mod_custom', '', 0, 1, 1, 1, '{"name":"mod_custom","type":"module","creationDate":"July 2004","author":"Joomla! Project","copyright":"Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"MOD_CUSTOM_XML_DESCRIPTION","group":""}', '', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(206, 'mod_feed', 'module', 'mod_feed', '', 0, 1, 1, 0, '{"name":"mod_feed","type":"module","creationDate":"July 2005","author":"Joomla! Project","copyright":"Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"MOD_FEED_XML_DESCRIPTION","group":""}', '', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(207, 'mod_footer', 'module', 'mod_footer', '', 0, 1, 1, 0, '{"name":"mod_footer","type":"module","creationDate":"July 2006","author":"Joomla! Project","copyright":"Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"MOD_FOOTER_XML_DESCRIPTION","group":""}', '', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(208, 'mod_login', 'module', 'mod_login', '', 0, 1, 1, 1, '{"name":"mod_login","type":"module","creationDate":"July 2006","author":"Joomla! Project","copyright":"Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"MOD_LOGIN_XML_DESCRIPTION","group":""}', '', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(209, 'mod_menu', 'module', 'mod_menu', '', 0, 1, 1, 1, '{"name":"mod_menu","type":"module","creationDate":"July 2004","author":"Joomla! Project","copyright":"Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"MOD_MENU_XML_DESCRIPTION","group":""}', '', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(210, 'mod_articles_news', 'module', 'mod_articles_news', '', 0, 1, 1, 0, '{"name":"mod_articles_news","type":"module","creationDate":"July 2006","author":"Joomla! Project","copyright":"Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"MOD_ARTICLES_NEWS_XML_DESCRIPTION","group":""}', '', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(211, 'mod_random_image', 'module', 'mod_random_image', '', 0, 1, 1, 0, '{"name":"mod_random_image","type":"module","creationDate":"July 2006","author":"Joomla! Project","copyright":"Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"MOD_RANDOM_IMAGE_XML_DESCRIPTION","group":""}', '', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(212, 'mod_related_items', 'module', 'mod_related_items', '', 0, 1, 1, 0, '{"name":"mod_related_items","type":"module","creationDate":"July 2004","author":"Joomla! Project","copyright":"Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"MOD_RELATED_XML_DESCRIPTION","group":""}', '', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(213, 'mod_search', 'module', 'mod_search', '', 0, 1, 1, 0, '{"name":"mod_search","type":"module","creationDate":"July 2004","author":"Joomla! Project","copyright":"Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"MOD_SEARCH_XML_DESCRIPTION","group":""}', '', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(214, 'mod_stats', 'module', 'mod_stats', '', 0, 1, 1, 0, '{"name":"mod_stats","type":"module","creationDate":"July 2004","author":"Joomla! Project","copyright":"Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"MOD_STATS_XML_DESCRIPTION","group":""}', '', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(215, 'mod_syndicate', 'module', 'mod_syndicate', '', 0, 1, 1, 1, '{"name":"mod_syndicate","type":"module","creationDate":"May 2006","author":"Joomla! Project","copyright":"Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"MOD_SYNDICATE_XML_DESCRIPTION","group":""}', '', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(216, 'mod_users_latest', 'module', 'mod_users_latest', '', 0, 1, 1, 0, '{"name":"mod_users_latest","type":"module","creationDate":"December 2009","author":"Joomla! Project","copyright":"Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"MOD_USERS_LATEST_XML_DESCRIPTION","group":""}', '', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(217, 'mod_weblinks', 'module', 'mod_weblinks', '', 0, 1, 1, 0, '{"name":"mod_weblinks","type":"module","creationDate":"July 2009","author":"Joomla! Project","copyright":"Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"MOD_WEBLINKS_XML_DESCRIPTION","group":""}', '', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(218, 'mod_whosonline', 'module', 'mod_whosonline', '', 0, 1, 1, 0, '{"name":"mod_whosonline","type":"module","creationDate":"July 2004","author":"Joomla! Project","copyright":"Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"MOD_WHOSONLINE_XML_DESCRIPTION","group":""}', '', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(219, 'mod_wrapper', 'module', 'mod_wrapper', '', 0, 1, 1, 0, '{"name":"mod_wrapper","type":"module","creationDate":"October 2004","author":"Joomla! Project","copyright":"Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"MOD_WRAPPER_XML_DESCRIPTION","group":""}', '', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(220, 'mod_articles_category', 'module', 'mod_articles_category', '', 0, 1, 1, 0, '{"name":"mod_articles_category","type":"module","creationDate":"February 2010","author":"Joomla! Project","copyright":"Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"MOD_ARTICLES_CATEGORY_XML_DESCRIPTION","group":""}', '', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(221, 'mod_articles_categories', 'module', 'mod_articles_categories', '', 0, 1, 1, 0, '{"name":"mod_articles_categories","type":"module","creationDate":"February 2010","author":"Joomla! Project","copyright":"Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"MOD_ARTICLES_CATEGORIES_XML_DESCRIPTION","group":""}', '', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(222, 'mod_languages', 'module', 'mod_languages', '', 0, 1, 1, 1, '{"name":"mod_languages","type":"module","creationDate":"February 2010","author":"Joomla! Project","copyright":"Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"MOD_LANGUAGES_XML_DESCRIPTION","group":""}', '', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(223, 'mod_finder', 'module', 'mod_finder', '', 0, 1, 0, 0, '{"name":"mod_finder","type":"module","creationDate":"August 2011","author":"Joomla! Project","copyright":"(C) 2005 - 2013 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"MOD_FINDER_XML_DESCRIPTION","group":""}', '', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(300, 'mod_custom', 'module', 'mod_custom', '', 1, 1, 1, 1, '{"name":"mod_custom","type":"module","creationDate":"July 2004","author":"Joomla! Project","copyright":"Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"MOD_CUSTOM_XML_DESCRIPTION","group":""}', '', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(301, 'mod_feed', 'module', 'mod_feed', '', 1, 1, 1, 0, '{"name":"mod_feed","type":"module","creationDate":"July 2005","author":"Joomla! Project","copyright":"Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"MOD_FEED_XML_DESCRIPTION","group":""}', '', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(302, 'mod_latest', 'module', 'mod_latest', '', 1, 1, 1, 0, '{"name":"mod_latest","type":"module","creationDate":"July 2004","author":"Joomla! Project","copyright":"Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"MOD_LATEST_XML_DESCRIPTION","group":""}', '', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(303, 'mod_logged', 'module', 'mod_logged', '', 1, 1, 1, 0, '{"name":"mod_logged","type":"module","creationDate":"January 2005","author":"Joomla! Project","copyright":"Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"MOD_LOGGED_XML_DESCRIPTION","group":""}', '', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(304, 'mod_login', 'module', 'mod_login', '', 1, 1, 1, 1, '{"name":"mod_login","type":"module","creationDate":"March 2005","author":"Joomla! Project","copyright":"Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"MOD_LOGIN_XML_DESCRIPTION","group":""}', '', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(305, 'mod_menu', 'module', 'mod_menu', '', 1, 1, 1, 0, '{"name":"mod_menu","type":"module","creationDate":"March 2006","author":"Joomla! Project","copyright":"Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"MOD_MENU_XML_DESCRIPTION","group":""}', '', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(307, 'mod_popular', 'module', 'mod_popular', '', 1, 1, 1, 0, '{"name":"mod_popular","type":"module","creationDate":"July 2004","author":"Joomla! Project","copyright":"Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"MOD_POPULAR_XML_DESCRIPTION","group":""}', '', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(308, 'mod_quickicon', 'module', 'mod_quickicon', '', 1, 1, 1, 1, '{"name":"mod_quickicon","type":"module","creationDate":"Nov 2005","author":"Joomla! Project","copyright":"Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"MOD_QUICKICON_XML_DESCRIPTION","group":""}', '', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(309, 'mod_status', 'module', 'mod_status', '', 1, 1, 1, 0, '{"name":"mod_status","type":"module","creationDate":"Feb 2006","author":"Joomla! Project","copyright":"(C) 2005 - 2013 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"MOD_STATUS_XML_DESCRIPTION","group":""}', '', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(310, 'mod_submenu', 'module', 'mod_submenu', '', 1, 1, 1, 0, '{"name":"mod_submenu","type":"module","creationDate":"Feb 2006","author":"Joomla! Project","copyright":"Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"MOD_SUBMENU_XML_DESCRIPTION","group":""}', '', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(311, 'mod_title', 'module', 'mod_title', '', 1, 1, 1, 0, '{"name":"mod_title","type":"module","creationDate":"Nov 2005","author":"Joomla! Project","copyright":"Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"MOD_TITLE_XML_DESCRIPTION","group":""}', '', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(312, 'mod_toolbar', 'module', 'mod_toolbar', '', 1, 1, 1, 1, '{"name":"mod_toolbar","type":"module","creationDate":"Nov 2005","author":"Joomla! Project","copyright":"Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"MOD_TOOLBAR_XML_DESCRIPTION","group":""}', '', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(313, 'mod_multilangstatus', 'module', 'mod_multilangstatus', '', 1, 1, 1, 0, '{"name":"mod_multilangstatus","type":"module","creationDate":"September 2011","author":"Joomla! Project","copyright":"Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"MOD_MULTILANGSTATUS_XML_DESCRIPTION","group":""}', '{"cache":"0"}', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(314, 'mod_version', 'module', 'mod_version', '', 1, 1, 1, 0, '{"name":"mod_version","type":"module","creationDate":"January 2012","author":"Joomla! Project","copyright":"Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"MOD_VERSION_XML_DESCRIPTION","group":""}', '{"format":"short","product":"1","cache":"0"}', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(315, 'mod_stats_admin', 'module', 'mod_stats_admin', '', 1, 1, 1, 0, '{"name":"mod_stats_admin","type":"module","creationDate":"July 2004","author":"Joomla! Project","copyright":"Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"MOD_STATS_XML_DESCRIPTION","group":""}', '{"serverinfo":"0","siteinfo":"0","counter":"0","increase":"0","cache":"1","cache_time":"900","cachemode":"static"}', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(316, 'mod_tags_popular', 'module', 'mod_tags_popular', '', 0, 1, 1, 0, '{"name":"mod_tags_popular","type":"module","creationDate":"January 2013","author":"Joomla! Project","copyright":"Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.1.0","description":"MOD_TAGS_POPULAR_XML_DESCRIPTION","group":""}', '{"maximum":"5","timeframe":"alltime","owncache":"1"}', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(317, 'mod_tags_similar', 'module', 'mod_tags_similar', '', 0, 1, 1, 0, '{"name":"mod_tags_similar","type":"module","creationDate":"January 2013","author":"Joomla! Project","copyright":"Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.1.0","description":"MOD_TAGS_SIMILAR_XML_DESCRIPTION","group":""}', '{"maximum":"5","matchtype":"any","owncache":"1"}', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(400, 'plg_authentication_gmail', 'plugin', 'gmail', 'authentication', 0, 0, 1, 0, '{"name":"plg_authentication_gmail","type":"plugin","creationDate":"February 2006","author":"Joomla! Project","copyright":"Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"PLG_GMAIL_XML_DESCRIPTION","group":""}', '{"applysuffix":"0","suffix":"","verifypeer":"1","user_blacklist":""}', '', '', 0, '0000-00-00 00:00:00', 1, 0),
(401, 'plg_authentication_joomla', 'plugin', 'joomla', 'authentication', 0, 1, 1, 1, '{"name":"plg_authentication_joomla","type":"plugin","creationDate":"November 2005","author":"Joomla! Project","copyright":"Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"PLG_AUTH_JOOMLA_XML_DESCRIPTION","group":""}', '{}', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(402, 'plg_authentication_ldap', 'plugin', 'ldap', 'authentication', 0, 0, 1, 0, '{"name":"plg_authentication_ldap","type":"plugin","creationDate":"November 2005","author":"Joomla! Project","copyright":"Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"PLG_LDAP_XML_DESCRIPTION","group":""}', '{"host":"","port":"389","use_ldapV3":"0","negotiate_tls":"0","no_referrals":"0","auth_method":"bind","base_dn":"","search_string":"","users_dn":"","username":"admin","password":"bobby7","ldap_fullname":"fullName","ldap_email":"mail","ldap_uid":"uid"}', '', '', 0, '0000-00-00 00:00:00', 3, 0),
(404, 'plg_content_emailcloak', 'plugin', 'emailcloak', 'content', 0, 1, 1, 0, '{"name":"plg_content_emailcloak","type":"plugin","creationDate":"November 2005","author":"Joomla! Project","copyright":"Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"PLG_CONTENT_EMAILCLOAK_XML_DESCRIPTION","group":""}', '{"mode":"1"}', '', '', 0, '0000-00-00 00:00:00', 1, 0),
(406, 'plg_content_loadmodule', 'plugin', 'loadmodule', 'content', 0, 1, 1, 0, '{"name":"plg_content_loadmodule","type":"plugin","creationDate":"November 2005","author":"Joomla! Project","copyright":"Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"PLG_LOADMODULE_XML_DESCRIPTION","group":""}', '{"style":"xhtml"}', '', '', 0, '2011-09-18 15:22:50', 0, 0),
(407, 'plg_content_pagebreak', 'plugin', 'pagebreak', 'content', 0, 1, 1, 0, '{"name":"plg_content_pagebreak","type":"plugin","creationDate":"November 2005","author":"Joomla! Project","copyright":"Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"PLG_CONTENT_PAGEBREAK_XML_DESCRIPTION","group":""}', '{"title":"1","multipage_toc":"1","showall":"1"}', '', '', 0, '0000-00-00 00:00:00', 4, 0),
(408, 'plg_content_pagenavigation', 'plugin', 'pagenavigation', 'content', 0, 1, 1, 0, '{"name":"plg_content_pagenavigation","type":"plugin","creationDate":"January 2006","author":"Joomla! Project","copyright":"Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"PLG_PAGENAVIGATION_XML_DESCRIPTION","group":""}', '{"position":"1"}', '', '', 0, '0000-00-00 00:00:00', 5, 0),
(409, 'plg_content_vote', 'plugin', 'vote', 'content', 0, 1, 1, 0, '{"name":"plg_content_vote","type":"plugin","creationDate":"November 2005","author":"Joomla! Project","copyright":"Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"PLG_VOTE_XML_DESCRIPTION","group":""}', '{}', '', '', 0, '0000-00-00 00:00:00', 6, 0),
(410, 'plg_editors_codemirror', 'plugin', 'codemirror', 'editors', 0, 1, 1, 1, '{"name":"plg_editors_codemirror","type":"plugin","creationDate":"28 March 2011","author":"Marijn Haverbeke","copyright":"","authorEmail":"N\\/A","authorUrl":"","version":"1.0","description":"PLG_CODEMIRROR_XML_DESCRIPTION","group":""}', '{"linenumbers":"0","tabmode":"indent"}', '', '', 0, '0000-00-00 00:00:00', 1, 0),
(411, 'plg_editors_none', 'plugin', 'none', 'editors', 0, 1, 1, 1, '{"name":"plg_editors_none","type":"plugin","creationDate":"August 2004","author":"Unknown","copyright":"","authorEmail":"N\\/A","authorUrl":"","version":"3.0.0","description":"PLG_NONE_XML_DESCRIPTION","group":""}', '{}', '', '', 0, '0000-00-00 00:00:00', 2, 0),
(412, 'plg_editors_tinymce', 'plugin', 'tinymce', 'editors', 0, 1, 1, 0, '{"name":"plg_editors_tinymce","type":"plugin","creationDate":"2005-2012","author":"Moxiecode Systems AB","copyright":"Moxiecode Systems AB","authorEmail":"N\\/A","authorUrl":"tinymce.moxiecode.com\\/","version":"3.5.6","description":"PLG_TINY_XML_DESCRIPTION","group":""}', '{"mode":"1","skin":"0","entity_encoding":"raw","lang_mode":"0","lang_code":"en","text_direction":"ltr","content_css":"1","content_css_custom":"","relative_urls":"1","newlines":"0","invalid_elements":"script,applet,iframe","extended_elements":"","toolbar":"top","toolbar_align":"left","html_height":"550","html_width":"750","resizing":"true","resize_horizontal":"false","element_path":"1","fonts":"1","paste":"1","searchreplace":"1","insertdate":"1","format_date":"%Y-%m-%d","inserttime":"1","format_time":"%H:%M:%S","colors":"1","table":"1","smilies":"1","media":"1","hr":"1","directionality":"1","fullscreen":"1","style":"1","layer":"1","xhtmlxtras":"1","visualchars":"1","nonbreaking":"1","template":"1","blockquote":"1","wordcount":"1","advimage":"1","advlink":"1","advlist":"1","autosave":"1","contextmenu":"1","inlinepopups":"1","custom_plugin":"","custom_button":""}', '', '', 0, '0000-00-00 00:00:00', 3, 0),
(413, 'plg_editors-xtd_article', 'plugin', 'article', 'editors-xtd', 0, 1, 1, 1, '{"name":"plg_editors-xtd_article","type":"plugin","creationDate":"October 2009","author":"Joomla! Project","copyright":"Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"PLG_ARTICLE_XML_DESCRIPTION","group":""}', '{}', '', '', 0, '0000-00-00 00:00:00', 1, 0),
(414, 'plg_editors-xtd_image', 'plugin', 'image', 'editors-xtd', 0, 1, 1, 0, '{"name":"plg_editors-xtd_image","type":"plugin","creationDate":"August 2004","author":"Joomla! Project","copyright":"Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"PLG_IMAGE_XML_DESCRIPTION","group":""}', '{}', '', '', 0, '0000-00-00 00:00:00', 2, 0),
(415, 'plg_editors-xtd_pagebreak', 'plugin', 'pagebreak', 'editors-xtd', 0, 1, 1, 0, '{"name":"plg_editors-xtd_pagebreak","type":"plugin","creationDate":"August 2004","author":"Joomla! Project","copyright":"Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"PLG_EDITORSXTD_PAGEBREAK_XML_DESCRIPTION","group":""}', '{}', '', '', 0, '0000-00-00 00:00:00', 3, 0),
(416, 'plg_editors-xtd_readmore', 'plugin', 'readmore', 'editors-xtd', 0, 1, 1, 0, '{"name":"plg_editors-xtd_readmore","type":"plugin","creationDate":"March 2006","author":"Joomla! Project","copyright":"Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"PLG_READMORE_XML_DESCRIPTION","group":""}', '{}', '', '', 0, '0000-00-00 00:00:00', 4, 0),
(417, 'plg_search_categories', 'plugin', 'categories', 'search', 0, 1, 1, 0, '{"name":"plg_search_categories","type":"plugin","creationDate":"November 2005","author":"Joomla! Project","copyright":"Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"PLG_SEARCH_CATEGORIES_XML_DESCRIPTION","group":""}', '{"search_limit":"50","search_content":"1","search_archived":"1"}', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(418, 'plg_search_contacts', 'plugin', 'contacts', 'search', 0, 1, 1, 0, '{"name":"plg_search_contacts","type":"plugin","creationDate":"November 2005","author":"Joomla! Project","copyright":"Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"PLG_SEARCH_CONTACTS_XML_DESCRIPTION","group":""}', '{"search_limit":"50","search_content":"1","search_archived":"1"}', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(419, 'plg_search_content', 'plugin', 'content', 'search', 0, 1, 1, 0, '{"name":"plg_search_content","type":"plugin","creationDate":"November 2005","author":"Joomla! Project","copyright":"Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"PLG_SEARCH_CONTENT_XML_DESCRIPTION","group":""}', '{"search_limit":"50","search_content":"1","search_archived":"1"}', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(420, 'plg_search_newsfeeds', 'plugin', 'newsfeeds', 'search', 0, 1, 1, 0, '{"name":"plg_search_newsfeeds","type":"plugin","creationDate":"November 2005","author":"Joomla! Project","copyright":"Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"PLG_SEARCH_NEWSFEEDS_XML_DESCRIPTION","group":""}', '{"search_limit":"50","search_content":"1","search_archived":"1"}', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(421, 'plg_search_weblinks', 'plugin', 'weblinks', 'search', 0, 1, 1, 0, '{"name":"plg_search_weblinks","type":"plugin","creationDate":"November 2005","author":"Joomla! Project","copyright":"Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"PLG_SEARCH_WEBLINKS_XML_DESCRIPTION","group":""}', '{"search_limit":"50","search_content":"1","search_archived":"1"}', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(422, 'plg_system_languagefilter', 'plugin', 'languagefilter', 'system', 0, 0, 1, 1, '{"name":"plg_system_languagefilter","type":"plugin","creationDate":"July 2010","author":"Joomla! Project","copyright":"Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"PLG_SYSTEM_LANGUAGEFILTER_XML_DESCRIPTION","group":""}', '{}', '', '', 0, '0000-00-00 00:00:00', 1, 0),
(423, 'plg_system_p3p', 'plugin', 'p3p', 'system', 0, 1, 1, 0, '{"name":"plg_system_p3p","type":"plugin","creationDate":"September 2010","author":"Joomla! Project","copyright":"Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"PLG_P3P_XML_DESCRIPTION","group":""}', '{"headers":"NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM"}', '', '', 0, '0000-00-00 00:00:00', 2, 0),
(424, 'plg_system_cache', 'plugin', 'cache', 'system', 0, 0, 1, 1, '{"name":"plg_system_cache","type":"plugin","creationDate":"February 2007","author":"Joomla! Project","copyright":"Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"PLG_CACHE_XML_DESCRIPTION","group":""}', '{"browsercache":"0","cachetime":"15"}', '', '', 0, '0000-00-00 00:00:00', 9, 0);
INSERT INTO `luacm_extensions` (`extension_id`, `name`, `type`, `element`, `folder`, `client_id`, `enabled`, `access`, `protected`, `manifest_cache`, `params`, `custom_data`, `system_data`, `checked_out`, `checked_out_time`, `ordering`, `state`) VALUES
(425, 'plg_system_debug', 'plugin', 'debug', 'system', 0, 1, 1, 0, '{"name":"plg_system_debug","type":"plugin","creationDate":"December 2006","author":"Joomla! Project","copyright":"Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"PLG_DEBUG_XML_DESCRIPTION","group":""}', '{"profile":"1","queries":"1","memory":"1","language_files":"1","language_strings":"1","strip-first":"1","strip-prefix":"","strip-suffix":""}', '', '', 0, '0000-00-00 00:00:00', 4, 0),
(426, 'plg_system_log', 'plugin', 'log', 'system', 0, 1, 1, 1, '{"name":"plg_system_log","type":"plugin","creationDate":"April 2007","author":"Joomla! Project","copyright":"Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"PLG_LOG_XML_DESCRIPTION","group":""}', '{}', '', '', 0, '0000-00-00 00:00:00', 5, 0),
(427, 'plg_system_redirect', 'plugin', 'redirect', 'system', 0, 0, 1, 1, '{"name":"plg_system_redirect","type":"plugin","creationDate":"April 2009","author":"Joomla! Project","copyright":"Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"PLG_REDIRECT_XML_DESCRIPTION","group":""}', '{}', '', '', 0, '0000-00-00 00:00:00', 6, 0),
(428, 'plg_system_remember', 'plugin', 'remember', 'system', 0, 1, 1, 1, '{"name":"plg_system_remember","type":"plugin","creationDate":"April 2007","author":"Joomla! Project","copyright":"Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"PLG_REMEMBER_XML_DESCRIPTION","group":""}', '{}', '', '', 0, '0000-00-00 00:00:00', 7, 0),
(429, 'plg_system_sef', 'plugin', 'sef', 'system', 0, 1, 1, 0, '{"name":"plg_system_sef","type":"plugin","creationDate":"December 2007","author":"Joomla! Project","copyright":"Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"PLG_SEF_XML_DESCRIPTION","group":""}', '{}', '', '', 0, '0000-00-00 00:00:00', 8, 0),
(430, 'plg_system_logout', 'plugin', 'logout', 'system', 0, 1, 1, 1, '{"name":"plg_system_logout","type":"plugin","creationDate":"April 2009","author":"Joomla! Project","copyright":"Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"PLG_SYSTEM_LOGOUT_XML_DESCRIPTION","group":""}', '{}', '', '', 0, '0000-00-00 00:00:00', 3, 0),
(431, 'plg_user_contactcreator', 'plugin', 'contactcreator', 'user', 0, 0, 1, 0, '{"name":"plg_user_contactcreator","type":"plugin","creationDate":"August 2009","author":"Joomla! Project","copyright":"(C) 2005 - 2013 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"PLG_CONTACTCREATOR_XML_DESCRIPTION","group":""}', '{"autowebpage":"","category":"34","autopublish":"0"}', '', '', 0, '0000-00-00 00:00:00', 1, 0),
(432, 'plg_user_joomla', 'plugin', 'joomla', 'user', 0, 1, 1, 0, '{"name":"plg_user_joomla","type":"plugin","creationDate":"December 2006","author":"Joomla! Project","copyright":"(C) 2005 - 2009 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"PLG_USER_JOOMLA_XML_DESCRIPTION","group":""}', '{"autoregister":"1"}', '', '', 0, '0000-00-00 00:00:00', 2, 0),
(433, 'plg_user_profile', 'plugin', 'profile', 'user', 0, 0, 1, 0, '{"name":"plg_user_profile","type":"plugin","creationDate":"January 2008","author":"Joomla! Project","copyright":"(C) 2005 - 2013 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"PLG_USER_PROFILE_XML_DESCRIPTION","group":""}', '{"register-require_address1":"1","register-require_address2":"1","register-require_city":"1","register-require_region":"1","register-require_country":"1","register-require_postal_code":"1","register-require_phone":"1","register-require_website":"1","register-require_favoritebook":"1","register-require_aboutme":"1","register-require_tos":"1","register-require_dob":"1","profile-require_address1":"1","profile-require_address2":"1","profile-require_city":"1","profile-require_region":"1","profile-require_country":"1","profile-require_postal_code":"1","profile-require_phone":"1","profile-require_website":"1","profile-require_favoritebook":"1","profile-require_aboutme":"1","profile-require_tos":"1","profile-require_dob":"1"}', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(434, 'plg_extension_joomla', 'plugin', 'joomla', 'extension', 0, 1, 1, 1, '{"name":"plg_extension_joomla","type":"plugin","creationDate":"May 2010","author":"Joomla! Project","copyright":"Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"PLG_EXTENSION_JOOMLA_XML_DESCRIPTION","group":""}', '{}', '', '', 0, '0000-00-00 00:00:00', 1, 0),
(435, 'plg_content_joomla', 'plugin', 'joomla', 'content', 0, 1, 1, 0, '{"name":"plg_content_joomla","type":"plugin","creationDate":"November 2010","author":"Joomla! Project","copyright":"Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"PLG_CONTENT_JOOMLA_XML_DESCRIPTION","group":""}', '{}', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(436, 'plg_system_languagecode', 'plugin', 'languagecode', 'system', 0, 0, 1, 0, '{"name":"plg_system_languagecode","type":"plugin","creationDate":"November 2011","author":"Joomla! Project","copyright":"Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"PLG_SYSTEM_LANGUAGECODE_XML_DESCRIPTION","group":""}', '{}', '', '', 0, '0000-00-00 00:00:00', 10, 0),
(437, 'plg_quickicon_joomlaupdate', 'plugin', 'joomlaupdate', 'quickicon', 0, 1, 1, 1, '{"name":"plg_quickicon_joomlaupdate","type":"plugin","creationDate":"August 2011","author":"Joomla! Project","copyright":"Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"PLG_QUICKICON_JOOMLAUPDATE_XML_DESCRIPTION","group":""}', '{}', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(438, 'plg_quickicon_extensionupdate', 'plugin', 'extensionupdate', 'quickicon', 0, 1, 1, 1, '{"name":"plg_quickicon_extensionupdate","type":"plugin","creationDate":"August 2011","author":"Joomla! Project","copyright":"Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"PLG_QUICKICON_EXTENSIONUPDATE_XML_DESCRIPTION","group":""}', '{}', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(439, 'plg_captcha_recaptcha', 'plugin', 'recaptcha', 'captcha', 0, 0, 1, 0, '{"name":"plg_captcha_recaptcha","type":"plugin","creationDate":"December 2011","author":"Joomla! Project","copyright":"Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"PLG_CAPTCHA_RECAPTCHA_XML_DESCRIPTION","group":""}', '{"public_key":"","private_key":"","theme":"clean"}', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(440, 'plg_system_highlight', 'plugin', 'highlight', 'system', 0, 1, 1, 0, '{"name":"plg_system_highlight","type":"plugin","creationDate":"August 2011","author":"Joomla! Project","copyright":"(C) 2005 - 2013 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"PLG_SYSTEM_HIGHLIGHT_XML_DESCRIPTION","group":""}', '{}', '', '', 0, '0000-00-00 00:00:00', 7, 0),
(441, 'plg_content_finder', 'plugin', 'finder', 'content', 0, 0, 1, 0, '{"name":"plg_content_finder","type":"plugin","creationDate":"December 2011","author":"Joomla! Project","copyright":"Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"PLG_CONTENT_FINDER_XML_DESCRIPTION","group":""}', '{}', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(442, 'plg_finder_categories', 'plugin', 'categories', 'finder', 0, 1, 1, 0, '{"name":"plg_finder_categories","type":"plugin","creationDate":"August 2011","author":"Joomla! Project","copyright":"(C) 2005 - 2013 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"PLG_FINDER_CATEGORIES_XML_DESCRIPTION","group":""}', '{}', '', '', 0, '0000-00-00 00:00:00', 1, 0),
(443, 'plg_finder_contacts', 'plugin', 'contacts', 'finder', 0, 1, 1, 0, '{"name":"plg_finder_contacts","type":"plugin","creationDate":"August 2011","author":"Joomla! Project","copyright":"(C) 2005 - 2013 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"PLG_FINDER_CONTACTS_XML_DESCRIPTION","group":""}', '{}', '', '', 0, '0000-00-00 00:00:00', 2, 0),
(444, 'plg_finder_content', 'plugin', 'content', 'finder', 0, 1, 1, 0, '{"name":"plg_finder_content","type":"plugin","creationDate":"August 2011","author":"Joomla! Project","copyright":"(C) 2005 - 2013 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"PLG_FINDER_CONTENT_XML_DESCRIPTION","group":""}', '{}', '', '', 0, '0000-00-00 00:00:00', 3, 0),
(445, 'plg_finder_newsfeeds', 'plugin', 'newsfeeds', 'finder', 0, 1, 1, 0, '{"name":"plg_finder_newsfeeds","type":"plugin","creationDate":"August 2011","author":"Joomla! Project","copyright":"(C) 2005 - 2013 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"PLG_FINDER_NEWSFEEDS_XML_DESCRIPTION","group":""}', '{}', '', '', 0, '0000-00-00 00:00:00', 4, 0),
(446, 'plg_finder_weblinks', 'plugin', 'weblinks', 'finder', 0, 1, 1, 0, '{"name":"plg_finder_weblinks","type":"plugin","creationDate":"August 2011","author":"Joomla! Project","copyright":"(C) 2005 - 2013 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"PLG_FINDER_WEBLINKS_XML_DESCRIPTION","group":""}', '{}', '', '', 0, '0000-00-00 00:00:00', 5, 0),
(447, 'plg_finder_tags', 'plugin', 'tags', 'finder', 0, 1, 1, 0, '{"name":"plg_finder_tags","type":"plugin","creationDate":"February 2013","author":"Joomla! Project","copyright":"(C) 2005 - 2013 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"PLG_FINDER_TAGS_XML_DESCRIPTION","group":""}', '{}', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(503, 'beez3', 'template', 'beez3', '', 0, 1, 1, 0, '{"name":"beez3","type":"template","creationDate":"25 November 2009","author":"Angie Radtke","copyright":"Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.","authorEmail":"a.radtke@derauftritt.de","authorUrl":"http:\\/\\/www.der-auftritt.de","version":"3.1.0","description":"TPL_BEEZ3_XML_DESCRIPTION","group":""}', '{"wrapperSmall":"53","wrapperLarge":"72","sitetitle":"","sitedescription":"","navposition":"center","templatecolor":"nature"}', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(504, 'hathor', 'template', 'hathor', '', 1, 1, 1, 0, '{"name":"hathor","type":"template","creationDate":"May 2010","author":"Andrea Tarr","copyright":"Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.","authorEmail":"hathor@tarrconsulting.com","authorUrl":"http:\\/\\/www.tarrconsulting.com","version":"3.0.0","description":"TPL_HATHOR_XML_DESCRIPTION","group":""}', '{"showSiteName":"0","colourChoice":"0","boldText":"0"}', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(506, 'protostar', 'template', 'protostar', '', 0, 1, 1, 0, '{"name":"protostar","type":"template","creationDate":"4\\/30\\/2012","author":"Kyle Ledbetter","copyright":"Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"","version":"1.0","description":"TPL_PROTOSTAR_XML_DESCRIPTION","group":""}', '{"templateColor":"","logoFile":"","googleFont":"1","googleFontName":"Open+Sans","fluidContainer":"0"}', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(507, 'isis', 'template', 'isis', '', 1, 1, 1, 0, '{"name":"isis","type":"template","creationDate":"3\\/30\\/2012","author":"Kyle Ledbetter","copyright":"Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"","version":"1.0","description":"TPL_ISIS_XML_DESCRIPTION","group":""}', '{"templateColor":"","logoFile":""}', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(600, 'English (United Kingdom)', 'language', 'en-GB', '', 0, 1, 1, 1, '{"name":"English (United Kingdom)","type":"language","creationDate":"2013-03-07","author":"Joomla! Project","copyright":"Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.1.4","description":"en-GB site language","group":""}', '', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(601, 'English (United Kingdom)', 'language', 'en-GB', '', 1, 1, 1, 1, '{"name":"English (United Kingdom)","type":"language","creationDate":"2013-03-07","author":"Joomla! Project","copyright":"Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.1.4","description":"en-GB administrator language","group":""}', '', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(700, 'files_joomla', 'file', 'joomla', '', 0, 1, 1, 1, '{"name":"files_joomla","type":"file","creationDate":"August 2013","author":"Joomla! Project","copyright":"(C) 2005 - 2013 Open Source Matters. All rights reserved","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.1.5","description":"FILES_JOOMLA_XML_DESCRIPTION","group":""}', '', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(10000, 'DirectPHP', 'plugin', 'DirectPHP', 'content', 0, 1, 1, 0, '{"name":"DirectPHP","type":"plugin","creationDate":"Oct 2011","author":"kksou","copyright":"(C) kksou.com. All Rights Reserved.","authorEmail":"support@kksou.com","authorUrl":"www.kksou.com\\/php-gtk2\\/","version":"3.0","description":"This plugin allows direct embedding of PHP commands right inside Joomla content page for dynamic contents. To see examples of using this plugin, please refer to: http:\\/\\/www.kksou.com\\/php-gtk2\\/Joomla\\/DirectPHP-plugin.php","group":""}', '{"using_no_editor":"0","block_list":"basename, chgrp, chmod, chown, clearstatcache, copy, delete, dirname, disk_free_space, disk_total_space, diskfreespace, fclose, feof, fflush, fgetc, fgetcsv, fgets, fgetss, file_exists, file_get_contents, file_put_contents, file, fileatime, filectime, filegroup, fileinode, filemtime, fileowner, fileperms, filesize, filetype, flock, fnmatch, fopen, fpassthru, fputcsv, fputs, fread, fscanf, fseek, fstat, ftell, ftruncate, fwrite, glob, lchgrp, lchown, link, linkinfo, lstat, move_uploaded_file, opendir, parse_ini_file, pathinfo, pclose, popen, readfile, readdir, readllink, realpath, rename, rewind, rmdir, set_file_buffer, stat, symlink, tempnam, tmpfile, touch, umask, unlink, fsockopen, system, exec, passthru, escapeshellcmd, pcntl_exec, proc_open, proc_close, mkdir, rmdir"}', '', '', 0, '0000-00-00 00:00:00', 0, 0),
(10001, 'Greek (Hellenic)', 'language', 'el-GR', '', 0, 1, 1, 0, '{"name":"Greek (Hellenic)","type":"language","creationDate":"2013-03-23","author":"chriszemp","copyright":"Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.","authorEmail":"chriszemp11@yahoo.gr","authorUrl":"http:\\/\\/www.joomla.gr","version":"3.1.0 v1","description":"Greek language pack for Joomla! 3.1 [Site]","group":""}', '{}', '', '', 0, '0000-00-00 00:00:00', 0, 0);
-- --------------------------------------------------------
--
-- Table structure for table `luacm_finder_filters`
--
CREATE TABLE IF NOT EXISTS `luacm_finder_filters` (
`filter_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`title` varchar(255) NOT NULL,
`alias` varchar(255) NOT NULL,
`state` tinyint(1) NOT NULL DEFAULT '1',
`created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`created_by` int(10) unsigned NOT NULL,
`created_by_alias` varchar(255) NOT NULL,
`modified` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`modified_by` int(10) unsigned NOT NULL DEFAULT '0',
`checked_out` int(10) unsigned NOT NULL DEFAULT '0',
`checked_out_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`map_count` int(10) unsigned NOT NULL DEFAULT '0',
`data` text NOT NULL,
`params` mediumtext,
PRIMARY KEY (`filter_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `luacm_finder_links`
--
CREATE TABLE IF NOT EXISTS `luacm_finder_links` (
`link_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`url` varchar(255) NOT NULL,
`route` varchar(255) NOT NULL,
`title` varchar(255) DEFAULT NULL,
`description` varchar(255) DEFAULT NULL,
`indexdate` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`md5sum` varchar(32) DEFAULT NULL,
`published` tinyint(1) NOT NULL DEFAULT '1',
`state` int(5) DEFAULT '1',
`access` int(5) DEFAULT '0',
`language` varchar(8) NOT NULL,
`publish_start_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`publish_end_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`start_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`end_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`list_price` double unsigned NOT NULL DEFAULT '0',
`sale_price` double unsigned NOT NULL DEFAULT '0',
`type_id` int(11) NOT NULL,
`object` mediumblob NOT NULL,
PRIMARY KEY (`link_id`),
KEY `idx_type` (`type_id`),
KEY `idx_title` (`title`),
KEY `idx_md5` (`md5sum`),
KEY `idx_url` (`url`(75)),
KEY `idx_published_list` (`published`,`state`,`access`,`publish_start_date`,`publish_end_date`,`list_price`),
KEY `idx_published_sale` (`published`,`state`,`access`,`publish_start_date`,`publish_end_date`,`sale_price`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `luacm_finder_links_terms0`
--
CREATE TABLE IF NOT EXISTS `luacm_finder_links_terms0` (
`link_id` int(10) unsigned NOT NULL,
`term_id` int(10) unsigned NOT NULL,
`weight` float unsigned NOT NULL,
PRIMARY KEY (`link_id`,`term_id`),
KEY `idx_term_weight` (`term_id`,`weight`),
KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `luacm_finder_links_terms1`
--
CREATE TABLE IF NOT EXISTS `luacm_finder_links_terms1` (
`link_id` int(10) unsigned NOT NULL,
`term_id` int(10) unsigned NOT NULL,
`weight` float unsigned NOT NULL,
PRIMARY KEY (`link_id`,`term_id`),
KEY `idx_term_weight` (`term_id`,`weight`),
KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `luacm_finder_links_terms2`
--
CREATE TABLE IF NOT EXISTS `luacm_finder_links_terms2` (
`link_id` int(10) unsigned NOT NULL,
`term_id` int(10) unsigned NOT NULL,
`weight` float unsigned NOT NULL,
PRIMARY KEY (`link_id`,`term_id`),
KEY `idx_term_weight` (`term_id`,`weight`),
KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `luacm_finder_links_terms3`
--
CREATE TABLE IF NOT EXISTS `luacm_finder_links_terms3` (
`link_id` int(10) unsigned NOT NULL,
`term_id` int(10) unsigned NOT NULL,
`weight` float unsigned NOT NULL,
PRIMARY KEY (`link_id`,`term_id`),
KEY `idx_term_weight` (`term_id`,`weight`),
KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `luacm_finder_links_terms4`
--
CREATE TABLE IF NOT EXISTS `luacm_finder_links_terms4` (
`link_id` int(10) unsigned NOT NULL,
`term_id` int(10) unsigned NOT NULL,
`weight` float unsigned NOT NULL,
PRIMARY KEY (`link_id`,`term_id`),
KEY `idx_term_weight` (`term_id`,`weight`),
KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `luacm_finder_links_terms5`
--
CREATE TABLE IF NOT EXISTS `luacm_finder_links_terms5` (
`link_id` int(10) unsigned NOT NULL,
`term_id` int(10) unsigned NOT NULL,
`weight` float unsigned NOT NULL,
PRIMARY KEY (`link_id`,`term_id`),
KEY `idx_term_weight` (`term_id`,`weight`),
KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `luacm_finder_links_terms6`
--
CREATE TABLE IF NOT EXISTS `luacm_finder_links_terms6` (
`link_id` int(10) unsigned NOT NULL,
`term_id` int(10) unsigned NOT NULL,
`weight` float unsigned NOT NULL,
PRIMARY KEY (`link_id`,`term_id`),
KEY `idx_term_weight` (`term_id`,`weight`),
KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `luacm_finder_links_terms7`
--
CREATE TABLE IF NOT EXISTS `luacm_finder_links_terms7` (
`link_id` int(10) unsigned NOT NULL,
`term_id` int(10) unsigned NOT NULL,
`weight` float unsigned NOT NULL,
PRIMARY KEY (`link_id`,`term_id`),
KEY `idx_term_weight` (`term_id`,`weight`),
KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `luacm_finder_links_terms8`
--
CREATE TABLE IF NOT EXISTS `luacm_finder_links_terms8` (
`link_id` int(10) unsigned NOT NULL,
`term_id` int(10) unsigned NOT NULL,
`weight` float unsigned NOT NULL,
PRIMARY KEY (`link_id`,`term_id`),
KEY `idx_term_weight` (`term_id`,`weight`),
KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `luacm_finder_links_terms9`
--
CREATE TABLE IF NOT EXISTS `luacm_finder_links_terms9` (
`link_id` int(10) unsigned NOT NULL,
`term_id` int(10) unsigned NOT NULL,
`weight` float unsigned NOT NULL,
PRIMARY KEY (`link_id`,`term_id`),
KEY `idx_term_weight` (`term_id`,`weight`),
KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `luacm_finder_links_termsa`
--
CREATE TABLE IF NOT EXISTS `luacm_finder_links_termsa` (
`link_id` int(10) unsigned NOT NULL,
`term_id` int(10) unsigned NOT NULL,
`weight` float unsigned NOT NULL,
PRIMARY KEY (`link_id`,`term_id`),
KEY `idx_term_weight` (`term_id`,`weight`),
KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `luacm_finder_links_termsb`
--
CREATE TABLE IF NOT EXISTS `luacm_finder_links_termsb` (
`link_id` int(10) unsigned NOT NULL,
`term_id` int(10) unsigned NOT NULL,
`weight` float unsigned NOT NULL,
PRIMARY KEY (`link_id`,`term_id`),
KEY `idx_term_weight` (`term_id`,`weight`),
KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `luacm_finder_links_termsc`
--
CREATE TABLE IF NOT EXISTS `luacm_finder_links_termsc` (
`link_id` int(10) unsigned NOT NULL,
`term_id` int(10) unsigned NOT NULL,
`weight` float unsigned NOT NULL,
PRIMARY KEY (`link_id`,`term_id`),
KEY `idx_term_weight` (`term_id`,`weight`),
KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `luacm_finder_links_termsd`
--
CREATE TABLE IF NOT EXISTS `luacm_finder_links_termsd` (
`link_id` int(10) unsigned NOT NULL,
`term_id` int(10) unsigned NOT NULL,
`weight` float unsigned NOT NULL,
PRIMARY KEY (`link_id`,`term_id`),
KEY `idx_term_weight` (`term_id`,`weight`),
KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `luacm_finder_links_termse`
--
CREATE TABLE IF NOT EXISTS `luacm_finder_links_termse` (
`link_id` int(10) unsigned NOT NULL,
`term_id` int(10) unsigned NOT NULL,
`weight` float unsigned NOT NULL,
PRIMARY KEY (`link_id`,`term_id`),
KEY `idx_term_weight` (`term_id`,`weight`),
KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `luacm_finder_links_termsf`
--
CREATE TABLE IF NOT EXISTS `luacm_finder_links_termsf` (
`link_id` int(10) unsigned NOT NULL,
`term_id` int(10) unsigned NOT NULL,
`weight` float unsigned NOT NULL,
PRIMARY KEY (`link_id`,`term_id`),
KEY `idx_term_weight` (`term_id`,`weight`),
KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `luacm_finder_taxonomy`
--
CREATE TABLE IF NOT EXISTS `luacm_finder_taxonomy` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`parent_id` int(10) unsigned NOT NULL DEFAULT '0',
`title` varchar(255) NOT NULL,
`state` tinyint(1) unsigned NOT NULL DEFAULT '1',
`access` tinyint(1) unsigned NOT NULL DEFAULT '0',
`ordering` tinyint(1) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `parent_id` (`parent_id`),
KEY `state` (`state`),
KEY `ordering` (`ordering`),
KEY `access` (`access`),
KEY `idx_parent_published` (`parent_id`,`state`,`access`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
--
-- Dumping data for table `luacm_finder_taxonomy`
--
INSERT INTO `luacm_finder_taxonomy` (`id`, `parent_id`, `title`, `state`, `access`, `ordering`) VALUES
(1, 0, 'ROOT', 0, 0, 0);