Browse Source

Feature #4856 adding a webcam - filter to enabled-disabled by platform admin

Juan Carlos Raña 12 years ago
parent
commit
6aa0a6b778
2 changed files with 11 additions and 3 deletions
  1. 6 3
      main/install/db_main.sql
  2. 5 0
      main/install/migrate-db-1.8.8-1.9.0-pre.sql

+ 6 - 3
main/install/db_main.sql

@@ -869,7 +869,8 @@ VALUES
 ('activate_email_template', NULL, 'radio', 'Platform', 'false', 'ActivateEmailTemplateTitle', 'ActivateEmailTemplateComment', NULL, NULL, 0),
 ('enable_iframe_inclusion', NULL, 'radio', 'Editor', 'false', 'EnableIframeInclusionTitle', 'EnableIframeInclusionComment', NULL, NULL, 1),
 ('show_hot_courses', NULL, 'radio', 'Platform', 'true', 'ShowHotCoursesTitle', 'ShowHotCoursesComment', NULL, NULL, 1),
-('chamilo_database_version', NULL, 'textfield',NULL, '1.9.0.18189','DatabaseVersion','', NULL, NULL, 0);
+('enable_webcam_clip',NULL,'radio','Tools','false','EnableWebCamClipTitle','EnableWebCamClipComment',NULL,NULL, 0),
+('chamilo_database_version', NULL, 'textfield',NULL, '1.9.0.18190','DatabaseVersion','', NULL, NULL, 0);
 UNLOCK TABLES;
 /*!40000 ALTER TABLE settings_current ENABLE KEYS */;
 
@@ -1207,10 +1208,12 @@ VALUES
 ('platform_unsubscribe_allowed', 'false', 'No'),
 ('activate_email_template', 'true', 'Yes'),
 ('activate_email_template', 'false', 'No'),
- ('enable_iframe_inclusion', 'true', 'Yes'),
+('enable_iframe_inclusion', 'true', 'Yes'),
 ('enable_iframe_inclusion', 'false', 'No'),
 ('show_hot_courses', 'true', 'Yes'),
-('show_hot_courses', 'false', 'No');
+('show_hot_courses', 'false', 'No'),
+('enable_webcam_clip', 'true', 'Yes'),
+('enable_webcam_clip', 'false', 'No');
 
 UNLOCK TABLES;
 

+ 5 - 0
main/install/migrate-db-1.8.8-1.9.0-pre.sql

@@ -183,6 +183,11 @@ UPDATE settings_current SET category = 'Session' WHERE variable IN ('show_tutor_
 
 INSERT INTO language (original_name, english_name, isocode, dokeos_folder, available) VALUES ('বাংলা','bengali','bn','bengali',0), ('الصومالية','somali','so','somali',0);
 
+
+INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('enable_webcam_clip', NULL, 'radio', 'Tools', 'false', 'EnableWebCamClipTitle', 'EnableWebCamClipComment', NULL, NULL, 0);
+INSERT INTO settings_options (variable, value, display_text) VALUES ('enable_webcam_clip', 'true', 'Yes');
+INSERT INTO settings_options (variable, value, display_text) VALUES ('enable_webcam_clip', 'false', 'No');
+
 -- Course ranking
 CREATE TABLE track_course_ranking (id   int unsigned not null PRIMARY KEY AUTO_INCREMENT, c_id  int unsigned not null, session_id  int unsigned not null default 0, url_id  int unsigned not null default 0, accesses int unsigned not null default 0, total_score int unsigned not null default 0, users int unsigned not null default 0, creation_date datetime not null);