@ -48,8 +48,8 @@ INSERT INTO settings_current (variable, subkey, type, category, selected_value,
INSERT INTO settings_current ( variable , subkey , type , category , selected_value , title , comment , scope , subkeytext , access_url_changeable ) VALUES ( ' cas_add_user_firstname_attr ' , NULL , ' textfield ' , ' CAS ' , ' ' , ' CasUserAddFirstnameAttributeTitle ' , ' CasUserAddFirstnameAttributeComment ' , NULL , NULL , 0 ) ;
INSERT INTO settings_current ( variable , subkey , type , category , selected_value , title , comment , scope , subkeytext , access_url_changeable ) VALUES ( ' cas_add_user_lastname_attr ' , NULL , ' textfield ' , ' CAS ' , ' ' , ' CasUserAddLastnameAttributeTitle ' , ' CasUserAddLastnameAttributeComment ' , NULL , NULL , 0 ) ;
-- Custom Pages
INSERT INTO settings_current ( variable , type , category , selected_value , title , comment , scope ) VALUES ( ' use_custom_pages ' , ' radio ' , ' Platform ' , ' false ' , ' UseCustomPages ' , ' UseCustomPagesComment ' , ' platform ' ) ;
INSERT INTO settings_options ( variable , value , display_text ) VALUES ( ' use_custom_pages ' , ' true ' , ' Yes ' ) , ( ' use_custom_pages ' , ' false ' , ' No ' ) ;
- - INSERT INTO settings_current ( variable , type , category , selected_value , title , comment , scope ) VALUES ( ' use_custom_pages ' , ' radio ' , ' Platform ' , ' false ' , ' UseCustomPages ' , ' UseCustomPagesComment ' , ' platform ' ) ;
- - INSERT INTO settings_options ( variable , value , display_text ) VALUES ( ' use_custom_pages ' , ' true ' , ' Yes ' ) , ( ' use_custom_pages ' , ' false ' , ' No ' ) ;
-- Pages after login by role
INSERT INTO settings_current ( variable , subkey , type , category , selected_value , title , comment , scope , subkeytext , access_url_changeable ) VALUES ( ' student_page_after_login ' , NULL , ' textfield ' , ' Platform ' , ' ' , ' StudentPageAfterLoginTitle ' , ' StudentPageAfterLoginComment ' , NULL , NULL , 0 ) ;
INSERT INTO settings_current ( variable , subkey , type , category , selected_value , title , comment , scope , subkeytext , access_url_changeable ) VALUES ( ' teacher_page_after_login ' , NULL , ' textfield ' , ' Platform ' , ' ' , ' TeacherPageAfterLoginTitle ' , ' TeacherPageAfterLoginComment ' , NULL , NULL , 0 ) ;
@ -68,20 +68,20 @@ INSERT INTO settings_current (variable, subkey, type, category, selected_value,
INSERT INTO settings_current ( variable , subkey , type , category , selected_value , title , comment , scope , subkeytext , access_url_changeable ) VALUES ( ' custom_tab_2_url ' , NULL , ' textfield ' , ' Platform ' , ' ' , ' CustomTab2URLTitle ' , ' CustomTab2URLComment ' , NULL , NULL , 0 ) ;
INSERT INTO settings_current ( variable , subkey , type , category , selected_value , title , comment , scope , subkeytext , access_url_changeable ) VALUES ( ' custom_tab_3_name ' , NULL , ' textfield ' , ' Platform ' , ' ' , ' CustomTab3NameTitle ' , ' CustomTab3NameComment ' , NULL , NULL , 0 ) ;
INSERT INTO settings_current ( variable , subkey , type , category , selected_value , title , comment , scope , subkeytext , access_url_changeable ) VALUES ( ' custom_tab_3_url ' , NULL , ' textfield ' , ' Platform ' , ' ' , ' CustomTab3URLTitle ' , ' CustomTab3URLComment ' , NULL , NULL , 0 ) ;
-- INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('languagePriority1', NULL, 'radio', 'Languages', 'course_lang', 'LanguagePriority1Title', 'LanguagePriority1Comment', NULL, NULL, 0) ;
-- INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('languagePriority2', NULL, 'radio', 'Languages', 'user_profil_lang', 'LanguagePriority2Title', 'LanguagePriority2Comment', NULL, NULL, 0) ;
-- INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('languagePriority3', NULL, 'radio', 'Languages', 'user_selected_lang', 'LanguagePriority3Title', 'LanguagePriority3Comment', NULL, NULL, 0) ;
-- INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('languagePriority4', NULL, 'radio', 'Languages', 'platform_lang', 'LanguagePriority4Title', 'LanguagePriority4Comment', NULL, NULL, 0) ;
-- INSERT INTO settings_options (variable, value, display_text) VALUES ('languagePriority1','platform_lang','PlatformLanguage'), ('languagePriority1','user_profil_lang','UserLanguage'), ('languagePriority1','user_selected_lang','UserSelectedLanguage'), ('languagePriority1','course_lang','CourseLanguage'), ('languagePriority2','platform_lang','PlatformLanguage'), ('languagePriority2','user_profil_lang','UserLanguage'), ('languagePriority2','user_selected_lang','UserSelectedLanguage'), ('languagePriority2','course_lang','CourseLanguage'), ('languagePriority3','platform_lang','PlatformLanguage'), ('languagePriority3','user_profil_lang','UserLanguage'), ('languagePriority3','user_selected_lang','UserSelectedLanguage'), ('languagePriority3','course_lang','CourseLanguage'), ('languagePriority4','platform_lang','PlatformLanguage'), ('languagePriority4','user_profil_lang','UserLanguage'), ('languagePriority4','user_selected_lang','UserSelectedLanguage'), ('languagePriority4','course_lang','CourseLanguage') ;
INSERT INTO settings_current ( variable , subkey , type , category , selected_value , title , comment , scope , subkeytext , access_url_changeable ) VALUES ( ' languagePriority1 ' , NULL , ' radio ' , ' Languages ' , ' course_lang ' , ' LanguagePriority1Title ' , ' LanguagePriority1Comment ' , NULL , NULL , 0 ) ;
INSERT INTO settings_current ( variable , subkey , type , category , selected_value , title , comment , scope , subkeytext , access_url_changeable ) VALUES ( ' languagePriority2 ' , NULL , ' radio ' , ' Languages ' , ' user_profil_lang ' , ' LanguagePriority2Title ' , ' LanguagePriority2Comment ' , NULL , NULL , 0 ) ;
INSERT INTO settings_current ( variable , subkey , type , category , selected_value , title , comment , scope , subkeytext , access_url_changeable ) VALUES ( ' languagePriority3 ' , NULL , ' radio ' , ' Languages ' , ' user_selected_lang ' , ' LanguagePriority3Title ' , ' LanguagePriority3Comment ' , NULL , NULL , 0 ) ;
INSERT INTO settings_current ( variable , subkey , type , category , selected_value , title , comment , scope , subkeytext , access_url_changeable ) VALUES ( ' languagePriority4 ' , NULL , ' radio ' , ' Languages ' , ' platform_lang ' , ' LanguagePriority4Title ' , ' LanguagePriority4Comment ' , NULL , NULL , 0 ) ;
INSERT INTO settings_options ( variable , value , display_text ) VALUES ( ' languagePriority1 ' , ' platform_lang ' , ' PlatformLanguage ' ) , ( ' languagePriority1 ' , ' user_profil_lang ' , ' UserLanguage ' ) , ( ' languagePriority1 ' , ' user_selected_lang ' , ' UserSelectedLanguage ' ) , ( ' languagePriority1 ' , ' course_lang ' , ' CourseLanguage ' ) , ( ' languagePriority2 ' , ' platform_lang ' , ' PlatformLanguage ' ) , ( ' languagePriority2 ' , ' user_profil_lang ' , ' UserLanguage ' ) , ( ' languagePriority2 ' , ' user_selected_lang ' , ' UserSelectedLanguage ' ) , ( ' languagePriority2 ' , ' course_lang ' , ' CourseLanguage ' ) , ( ' languagePriority3 ' , ' platform_lang ' , ' PlatformLanguage ' ) , ( ' languagePriority3 ' , ' user_profil_lang ' , ' UserLanguage ' ) , ( ' languagePriority3 ' , ' user_selected_lang ' , ' UserSelectedLanguage ' ) , ( ' languagePriority3 ' , ' course_lang ' , ' CourseLanguage ' ) , ( ' languagePriority4 ' , ' platform_lang ' , ' PlatformLanguage ' ) , ( ' languagePriority4 ' , ' user_profil_lang ' , ' UserLanguage ' ) , ( ' languagePriority4 ' , ' user_selected_lang ' , ' UserSelectedLanguage ' ) , ( ' languagePriority4 ' , ' course_lang ' , ' CourseLanguage ' ) ;
-- INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('activate_send_event_by_mail', NULL, 'radio', 'Platform', 'false', 'ActivateSendEventByMailTitle', 'ActivateSendEventByMailComment', NULL, NULL, 0);
-- INSERT INTO settings_options (variable, value, display_text) VALUES ('activate_send_event_by_mail', 'true', 'Yes'),('activate_send_event_by_mail', 'false', 'No');
INSERT INTO settings_current ( variable , subkey , type , category , selected_value , title , comment , scope , subkeytext , access_url_changeable ) VALUES ( ' scorm_cumulative_session_time ' , NULL , ' radio ' , ' Course ' , ' true ' , ' ScormCumulativeSessionTimeTitle ' , ' ScormCumulativeSessionTimeComment ' , NULL , NULL , 0 ) ;
INSERT INTO settings_options ( variable , value , display_text ) VALUES ( ' scorm_cumulative_session_time ' , ' true ' , ' Yes ' ) , ( ' scorm_cumulative_session_time ' , ' false ' , ' No ' ) ;
-- CREATE TABLE event_type ( id int unsigned NOT NULL AUTO_INCREMENT, name varchar(50) NOT NULL, name_lang_var varchar(40) NOT NULL, desc_lang_var varchar(50) NOT NULL, PRIMARY KEY (id)) ;
-- CREATE TABLE event_type_message ( id int unsigned NOT NULL AUTO_INCREMENT, event_type_id int NOT NULL, language_id int NOT NULL, message varchar(200) NOT NULL, subject varchar(60) NOT NULL, PRIMARY KEY (id)) ;
-- CREATE TABLE user_rel_event_type ( id int NOT NULL AUTO_INCREMENT, user_id int unsigned NOT NULL, event_type_id int unsigned NOT NULL, PRIMARY KEY (id)) ;
-- INSERT INTO `event_type` VALUES (1, 'course_deleted','courseDeletedTitle','courseDeletedComment'),(2,'course_created','courseCreatedTitle','courseCreatedComment'),(3,'user_deleted','userDeletedTitle','userDeletedComment'),(4,'user_created','userCreatedTitle','userCreatedComment'), (5, 'session_created','sessionCreatedTitle','sessionCreatedComment'), (6,'session_deleted','sessionDeletedTitle','sessionDeletedComment'), (7,'session_category_created','sessionCategoryCreatedTitle','sessionCategoryCreatedComment'),(8,'session_category_deleted','sessionCategoryDeletedTitle','sessionCategoryDeletedComment'),(9,'settings_changed','settingsChangedTitle','settingsChangedComment'),(10,'user_subscribed','userSubscribedTitle','userSubscribedComment'), (11,'user_unsubscribed','userUnsubscribedTitle','userUnsubscribedComment') ;
-- INSERT INTO `event_type_message` (`id`,`event_type_id`, `language_id`, `message`,`subject`) VALUES (1,4,10,'Bonjour, \r\n\r\nL\'utilisateur %username% (%firstname% %lastname%) a été créé.\r\nEmail : %mail%\r\n\r\nBien à vous.',''),(2,1,10,'Delete formation',''),(3,2,10,'Create formation',''),(4,3,10,'Bonjour, \r\n\r\nL\' utilisateur %username% (%firstname% %lastname%) a été supprimé.\r\n\r\nBien à vous.',''),(6,5,10,'Create session test',''),(7,6,10,'Delete session',''),(8,7,10,'Create category session',''),(9,8,10,'Delete category session',''),(10,9,10,'Change setting',''),(11,10,10,'Subscribe',''),(12,11,10,'Unsubscribe','');
CREATE TABLE event_type ( id int unsigned NOT NULL AUTO_INCREMENT , name varchar ( 50 ) NOT NULL , name_lang_var varchar ( 40 ) NOT NULL , desc_lang_var varchar ( 50 ) NOT NULL , PRIMARY KEY ( id ) ) ;
CREATE TABLE event_type_email_template ( id int unsigned NOT NULL AUTO_INCREMENT , event_type_id int NOT NULL , language_id int NOT NULL , message varchar ( 200 ) NOT NULL , subject varchar ( 60 ) NOT NULL , PRIMARY KEY ( id ) ) ;
CREATE TABLE user_rel_event_type ( id int NOT NULL AUTO_INCREMENT , user_id int unsigned NOT NULL , event_type_id int unsigned NOT NULL , PRIMARY KEY ( id ) ) ;
INSERT INTO ` event_type ` VALUES ( 1 , ' course_deleted ' , ' courseDeletedTitle ' , ' courseDeletedComment ' ) , ( 2 , ' course_created ' , ' courseCreatedTitle ' , ' courseCreatedComment ' ) , ( 3 , ' user_deleted ' , ' userDeletedTitle ' , ' userDeletedComment ' ) , ( 4 , ' user_created ' , ' userCreatedTitle ' , ' userCreatedComment ' ) , ( 5 , ' session_created ' , ' sessionCreatedTitle ' , ' sessionCreatedComment ' ) , ( 6 , ' session_deleted ' , ' sessionDeletedTitle ' , ' sessionDeletedComment ' ) , ( 7 , ' session_category_created ' , ' sessionCategoryCreatedTitle ' , ' sessionCategoryCreatedComment ' ) , ( 8 , ' session_category_deleted ' , ' sessionCategoryDeletedTitle ' , ' sessionCategoryDeletedComment ' ) , ( 9 , ' settings_changed ' , ' settingsChangedTitle ' , ' settingsChangedComment ' ) , ( 10 , ' user_subscribed ' , ' userSubscribedTitle ' , ' userSubscribedComment ' ) , ( 11 , ' user_unsubscribed ' , ' userUnsubscribedTitle ' , ' userUnsubscribedComment ' ) ;
INSERT INTO ` event_type_email_template ` ( ` id ` , ` event_type_id ` , ` language_id ` , ` message ` , ` subject ` ) VALUES ( 1 , 4 , 10 , ' Bonjour, \r\n\r\nL\ ' utilisateur % username % ( % firstname % % lastname % ) a é té créé . \ r \ nEmail : % mail % \ r \ n \ r \ nBien à vous . ' , '' ),(2,1,10, ' Delete formation ' , '' ),(3,2,10, ' Create formation ' , '' ),(4,3,10, ' Bonjour , \ r \ n \ r \ nL \ ' utilisateur %username% (%firstname% %lastname%) a été supprimé.\r\n\r\nBien à vous. ', ' ') , ( 6 , 5 , 10 , ' Create session test ', ' ') , ( 7 , 6 , 10 , ' Delete session ', ' ') , ( 8 , 7 , 10 , ' Create category session ', ' ') , ( 9 , 8 , 10 , ' Delete category session ', ' ') , ( 10 , 9 , 10 , ' Change setting ', ' ') , ( 11 , 10 , 10 , ' Subscribe ', ' ') , ( 12 , 11 , 10 , ' Unsubscribe ', ' ') ;
INSERT INTO user_field ( field_type , field_variable , field_display_text , field_visible , field_changeable ) values ( 1 , ' already_logged_in ' , ' Already logged in ' , 0 , 0 ) ;
INSERT INTO user_field ( field_type , field_variable , field_display_text , field_visible , field_changeable ) values ( 1 , ' update_type ' , ' Update script type ' , 0 , 0 ) ;
CREATE TABLE announcement_rel_group ( group_id int NOT NULL , announcement_id int NOT NULL , PRIMARY KEY ( group_id , announcement_id ) ) ;