Adds a configuration option to log transactions on exercises tool

skala
Marco Villegas 13 years ago
parent 633dc47e83
commit 89fb772f1a
  1. 3
      main/admin/settings.php
  2. 3
      main/install/1.10.0/db_main.sql
  3. 3
      main/install/1.10.0/migrate-db-1.9.0-1.10.0-pre.sql
  4. 6
      main/lang/english/admin.inc.php

@ -436,6 +436,8 @@ $action_images['templates'] = 'template.png';
$action_images['plugins'] = 'plugins.png'; $action_images['plugins'] = 'plugins.png';
$action_images['shibboleth'] = 'shibboleth.png'; $action_images['shibboleth'] = 'shibboleth.png';
$action_images['facebook'] = 'facebook.png'; $action_images['facebook'] = 'facebook.png';
// @todo Use a different image.
$action_images['logtransactions'] = 'tuning.png';
$action_array = array(); $action_array = array();
$resultcategories = array(); $resultcategories = array();
@ -460,6 +462,7 @@ $resultcategories[] = array('category' => 'LDAP');
$resultcategories[] = array('category' => 'CAS'); $resultcategories[] = array('category' => 'CAS');
$resultcategories[] = array('category' => 'Shibboleth'); $resultcategories[] = array('category' => 'Shibboleth');
$resultcategories[] = array('category' => 'Facebook'); $resultcategories[] = array('category' => 'Facebook');
$resultcategories[] = array('category' => 'LogTransactions');
foreach ($resultcategories as $row) { foreach ($resultcategories as $row) {

@ -913,7 +913,8 @@ VALUES
('allow_teachers_to_create_sessions', NULL,'radio','Session','false','AllowTeachersToCreateSessionsTitle','AllowTeachersToCreateSessionsComment', NULL, NULL, 0), ('allow_teachers_to_create_sessions', NULL,'radio','Session','false','AllowTeachersToCreateSessionsTitle','AllowTeachersToCreateSessionsComment', NULL, NULL, 0),
('chamilo_database_version', NULL, 'textfield', NULL, '1.10.0.001','DatabaseVersion','', NULL, NULL, 0), ('chamilo_database_version', NULL, 'textfield', NULL, '1.10.0.001','DatabaseVersion','', NULL, NULL, 0),
('use_virtual_keyboard', NULL, 'radio', 'Platform', 'false','ShowVirtualKeyboardTitle','ShowVirtualKeyboardComment', NULL, NULL, 1), ('use_virtual_keyboard', NULL, 'radio', 'Platform', 'false','ShowVirtualKeyboardTitle','ShowVirtualKeyboardComment', NULL, NULL, 1),
('disable_copy_paste', NULL, 'radio', 'Platform', 'false','DisableCopyPasteTitle','DisableCopyPasteComment', NULL, NULL, 1); ('disable_copy_paste', NULL, 'radio', 'Platform', 'false','DisableCopyPasteTitle','DisableCopyPasteComment', NULL, NULL, 1),
('log_transactions','exercise','checkbox','LogTransactions','false','LogTransactionsForExercises','LogTransactionsForExercisesComment',NULL,'LogTransactionsForExercisesText', 1);
UNLOCK TABLES; UNLOCK TABLES;
/*!40000 ALTER TABLE settings_current ENABLE KEYS */; /*!40000 ALTER TABLE settings_current ENABLE KEYS */;

@ -243,5 +243,8 @@ ALTER TABLE c_quiz_category MODIFY c_id INT NOT NULL;
ALTER TABLE c_quiz_category DROP PRIMARY KEY; ALTER TABLE c_quiz_category DROP PRIMARY KEY;
ALTER TABLE c_quiz_category ADD COLUMN iid INT unsigned NOT NULL auto_increment PRIMARY KEY; ALTER TABLE c_quiz_category ADD COLUMN iid INT unsigned NOT NULL auto_increment PRIMARY KEY;
-- Add new configuration setting to activate transaction logging.
INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('log_transactions','exercise','checkbox','LogTransactions','false','LogTransactionsForExercises','LogTransactionsForExercisesComment',NULL,'LogTransactionsForExercisesText', 1);
-- Do not move this -- Do not move this
UPDATE settings_current SET selected_value = '1.10.0.001' WHERE variable = 'chamilo_database_version'; UPDATE settings_current SET selected_value = '1.10.0.001' WHERE variable = 'chamilo_database_version';

@ -1676,4 +1676,8 @@ $SpaceUsedOnSystemCannotBeMeasuredOnWindows = "The space used on disk cannot be
$XOldTablesDeleted = "%d old tables deleted"; $XOldTablesDeleted = "%d old tables deleted";
$XOldDatabasesDeleted = "%d old databases deleted"; $XOldDatabasesDeleted = "%d old databases deleted";
$ExtensionShouldBeLoaded = "This extension should be loaded."; $ExtensionShouldBeLoaded = "This extension should be loaded.";
?> $LogTransactions = "Log Transactions";
$LogTransactionsForExercises = "Log Transactions for Exercise tool.";
$LogTransactionsForExercisesText = "Log Exercises.";
$LogTransactionsForExercisesComment = "When enabled, transactions will be saved. ";
?>

Loading…
Cancel
Save