');
- $form->addElement('text', 'numeric_calification', get_lang('QualifyNumeric'),'Style="width:40px"');
+ $form->addElement('text', 'numeric_calification', get_lang('QualificationNumeric'),'Style="width:40px"');
$form->addElement('text', 'calification_notebook_title', get_lang('TitleColumnGradebook'));
$form->applyFilter('calification_notebook_title', 'html_filter');
$form->addElement('text', 'weight_calification', get_lang('QualifyWeight'),'value="0.00" Style="width:40px" onfocus="this.select();"');
@@ -2384,7 +2384,7 @@ function show_edit_post_form($current_post, $current_thread, $current_forum, $fo
} else {
$form -> addElement('html','
');
}
- $form->addElement('text', 'numeric_calification', get_lang('QualifyNumeric'),'value="'.$current_thread['thread_qualify_max'].'" Style="width:40px"');
+ $form->addElement('text', 'numeric_calification', get_lang('QualificationNumeric'),'value="'.$current_thread['thread_qualify_max'].'" Style="width:40px"');
$form->addElement('text', 'calification_notebook_title', get_lang('TitleColumnGradebook'),'value="'.$current_thread['thread_title_qualify'].'"');
$form->applyFilter('calification_notebook_title', 'html_filter');
$form->addElement('text', 'weight_calification', get_lang('QualifyWeight'),'value="'.$current_thread['thread_weight'].'" Style="width:40px"');
diff --git a/main/gradebook/gradebook_view_result.php b/main/gradebook/gradebook_view_result.php
index 56eb7569b8..f49170c7dc 100755
--- a/main/gradebook/gradebook_view_result.php
+++ b/main/gradebook/gradebook_view_result.php
@@ -217,7 +217,7 @@ if ($export_result_form->validate()) {
$pdf->ezText(get_lang('Weight') . ' : ' . $eval[0]->get_weight(), 12, array (
'justification' => 'left'
));
- $pdf->ezText(get_lang('Max') . ' : ' . $eval[0]->get_max(), 12, array (
+ $pdf->ezText(get_lang('QualificationNumeric') . ' : ' . $eval[0]->get_max(), 12, array (
'justification' => 'left'
));
$pdf->ezText($average, 12, array (
diff --git a/main/gradebook/lib/fe/evalform.class.php b/main/gradebook/lib/fe/evalform.class.php
index 2826560315..6cdd52c88d 100755
--- a/main/gradebook/lib/fe/evalform.class.php
+++ b/main/gradebook/lib/fe/evalform.class.php
@@ -312,12 +312,12 @@ class EvalForm extends FormValidator
));
if ($edit) {
if (!$this->evaluation_object->has_results()) {
- $this->add_textfield('max', get_lang('Max'), true, array (
+ $this->add_textfield('max', get_lang('QualificationNumeric'), true, array (
'size' => '4',
'maxlength' => '4'
));
} else {
- $this->add_textfield('max', get_lang('Max'), false, array (
+ $this->add_textfield('max', get_lang('QualificationNumeric'), false, array (
'size' => '4',
'maxlength' => '4',
'disabled' => 'disabled'
@@ -325,7 +325,7 @@ class EvalForm extends FormValidator
$this->addElement('static','label','','
'.get_lang('CannotChangeTheMaxNote').'');
}
} else {
- $this->add_textfield('max', get_lang('Max'), true, array (
+ $this->add_textfield('max', get_lang('QualificationNumeric'), true, array (
'size' => '4',
'maxlength' => '4'
));
diff --git a/main/gradebook/lib/fe/linkaddeditform.class.php b/main/gradebook/lib/fe/linkaddeditform.class.php
index 0b212a5568..f0899c0916 100755
--- a/main/gradebook/lib/fe/linkaddeditform.class.php
+++ b/main/gradebook/lib/fe/linkaddeditform.class.php
@@ -80,9 +80,9 @@ class LinkAddEditForm extends FormValidator
// ELEMENT: max
if ($link->needs_max()) {
if ($form_type == self :: TYPE_EDIT && $link->has_results()) {
- $this->add_textfield('max', get_lang('Max'), false, array ('size' => '4','maxlength' => '4', 'disabled' => 'disabled'));
+ $this->add_textfield('max', get_lang('QualificationNumeric'), false, array ('size' => '4','maxlength' => '4', 'disabled' => 'disabled'));
} else {
- $this->add_textfield('max', get_lang('Max'), true, array ('size' => '4','maxlength' => '4'));
+ $this->add_textfield('max', get_lang('QualificationNumeric'), true, array ('size' => '4','maxlength' => '4'));
$this->addRule('max', get_lang('OnlyNumbers'), 'numeric');
$this->addRule(array ('max', 'zero'), get_lang('NegativeValue'), 'compare', '>=');
}
diff --git a/main/inc/lib/add_course.lib.inc.php b/main/inc/lib/add_course.lib.inc.php
index 09522a4e50..3ae30ac440 100755
--- a/main/inc/lib/add_course.lib.inc.php
+++ b/main/inc/lib/add_course.lib.inc.php
@@ -850,6 +850,7 @@ function update_Db_course($courseDbName, $language = null)
qualificator_id INT UNSIGNED NOT NULL DEFAULT 0,
weight float(6,2) UNSIGNED NOT NULL default 0,
session_id INT UNSIGNED NOT NULL default 0,
+ user_id INTEGER NOT NULL,
PRIMARY KEY (id)
)" . $charset_clause;
Database::query($sql);
@@ -2538,7 +2539,7 @@ function register_course($courseSysCode, $courseScreenCode, $courseRepository, $
user_id = '".Database::escape_string($uidCreator) . "',
status = '1',
role = '".lang2db(get_lang('Professor')) . "',
- tutor_id='1',
+ tutor_id='0',
sort='". ($i_course_sort) . "',
user_course_cat='0'";
Database::query($sql);
diff --git a/main/inc/lib/course_home.lib.php b/main/inc/lib/course_home.lib.php
old mode 100644
new mode 100755
index 9a5999c815..2e8b661102
--- a/main/inc/lib/course_home.lib.php
+++ b/main/inc/lib/course_home.lib.php
@@ -24,7 +24,7 @@ class CourseHome {
case 'Basic' :
$condition_display_tools = ' WHERE a.link=t.link AND t.position="basic" ';
- if (api_is_coach()) {
+ if (api_is_coach() || api_is_course_tutor()) {
$condition_display_tools = ' WHERE a.link=t.link AND (t.position="basic" OR a.name = "'.TOOL_TRACKING.'") ';
}
@@ -137,7 +137,7 @@ class CourseHome {
$tool['img'] = api_get_path(WEB_IMG_PATH).$tool['img'];
// VISIBLE
- if (($tool['visibility'] || (api_is_coach() && $tool['name'] == TOOL_TRACKING)) || $cat == 'courseAdmin' || $cat == 'platformAdmin') {
+ if (($tool['visibility'] || ((api_is_coach() || api_is_course_tutor()) && $tool['name'] == TOOL_TRACKING)) || $cat == 'courseAdmin' || $cat == 'platformAdmin') {
if (strpos($tool['name'], 'visio_') !== false) {
$cell_content .= '
'.$tool_name.'';
} elseif (strpos($tool['name'], 'chat') !== false && api_get_course_setting('allow_open_chat_window')) {
@@ -224,7 +224,7 @@ class CourseHome {
case TOOL_PUBLIC:
$condition_display_tools = ' WHERE visibility = 1 ';
- if (api_is_coach()) {
+ if (api_is_coach() || api_is_course_tutor()) {
$condition_display_tools = ' WHERE visibility = 1 OR (visibility = 0 AND name = "'.TOOL_TRACKING.'") ';
}
@@ -438,7 +438,7 @@ class CourseHome {
switch ($course_tool_category) {
case TOOL_STUDENT_VIEW:
$condition_display_tools = ' WHERE visibility = 1 AND (category = "authoring" OR category = "interaction") ';
- if (api_is_coach()) {
+ if (api_is_coach() || api_is_course_tutor()) {
$condition_display_tools = ' WHERE (visibility = 1 AND (category = "authoring" OR category = "interaction") OR (name = "'.TOOL_TRACKING.'") ) ';
}
$sql = "SELECT * FROM $course_tool_table $condition_display_tools $condition_session ORDER BY id";
diff --git a/main/inc/lib/usermanager.lib.php b/main/inc/lib/usermanager.lib.php
old mode 100644
new mode 100755
index 1899a7ed4f..afea4165fb
--- a/main/inc/lib/usermanager.lib.php
+++ b/main/inc/lib/usermanager.lib.php
@@ -3000,7 +3000,7 @@ class UserManager
* @param string The course id
* @return int The user id
*/
- function get_user_id_of_course_admin_or_session_admin ($course_id) {
+ public function get_user_id_of_course_admin_or_session_admin ($course_id) {
$session=api_get_session_id();
$table_user = Database::get_main_table(TABLE_MAIN_USER);
$table_course_user = Database::get_main_table(TABLE_MAIN_COURSE_USER);
@@ -3036,7 +3036,7 @@ class UserManager
* @param int The user id
* @return boolean
*/
- function is_user_certified($cat_id,$user_id) {
+ public function is_user_certified($cat_id,$user_id) {
$table_certificate = Database::get_main_table(TABLE_MAIN_GRADEBOOK_CERTIFICATE);
$sql='SELECT path_certificate FROM '.$table_certificate.' WHERE cat_id="'.Database::escape_string($cat_id).'" AND user_id="'.Database::escape_string($user_id).'" ';
$rs=Database::query($sql,__FILE__,__LINE__);
@@ -3054,7 +3054,7 @@ class UserManager
* @param int The user id
* @return array if there is not information return false
*/
- function get_info_gradebook_certificate($course_code,$user_id) {
+ public function get_info_gradebook_certificate($course_code,$user_id) {
$tbl_grade_certificate = Database::get_main_table(TABLE_MAIN_GRADEBOOK_CERTIFICATE);
$tbl_grade_category = Database::get_main_table(TABLE_MAIN_GRADEBOOK_CATEGORY);
$sql='SELECT * FROM '.$tbl_grade_certificate.' WHERE cat_id= (SELECT id FROM '.$tbl_grade_category.' WHERE course_code = "'.Database::escape_string($course_code).'" ) AND user_id="'.Database::escape_string($user_id).'" ';
@@ -3071,7 +3071,7 @@ class UserManager
* @param int The user id
* @return array containing path_certificate and cat_id
*/
- function get_user_path_certificate($user_id) {
+ public function get_user_path_certificate($user_id) {
$my_certificate = array();
$table_certificate = Database::get_main_table(TABLE_MAIN_GRADEBOOK_CERTIFICATE);
$table_gradebook_category = Database::get_main_table(TABLE_MAIN_GRADEBOOK_CATEGORY);
@@ -3096,4 +3096,33 @@ class UserManager
}
+ /**
+ * This function check if the user is a coach inside session course
+ * @param int User id
+ * @param string Course code
+ * @param int Session id
+ * @return bool True if the user is a coach
+ *
+ */
+ public function is_session_course_coach($user_id, $course_code, $session_id) {
+
+ $tbl_session_course_rel_user = Database::get_main_table(TABLE_MAIN_SESSION_COURSE_USER);
+
+ // protect data
+ $user_id = intval($user_id);
+ $course_code = Database::escape_string($course_code);
+ $session_id = intval($session_id);
+ $result = false;
+
+ $sql = "SELECT id_session FROM $tbl_session_course_rel_user WHERE id_session=$session_id AND course_code='$course_code' AND id_user = $user_id AND status=2 ";
+ $res = Database::query($sql);
+
+ if (Database::num_rows($res) > 0) {
+ $result = true;
+ }
+
+ return $result;
+
+ }
+
}
diff --git a/main/install/db_main.sql b/main/install/db_main.sql
old mode 100644
new mode 100755
diff --git a/main/install/migrate-db-1.8.6.2-1.8.7-pre.sql b/main/install/migrate-db-1.8.6.2-1.8.7-pre.sql
index 9e09341b1b..247a5b86b1 100755
--- a/main/install/migrate-db-1.8.6.2-1.8.7-pre.sql
+++ b/main/install/migrate-db-1.8.6.2-1.8.7-pre.sql
@@ -19,7 +19,6 @@ ALTER TABLE session_rel_user ADD COLUMN relation_type int NOT NULL default 0;
ALTER TABLE course_rel_user ADD COLUMN relation_type int NOT NULL default 0;
INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url, access_url_changeable) VALUES ('course_create_active_tools','notebook','checkbox','Tools','true','CourseCreateActiveToolsTitle','CourseCreateActiveToolsComment',NULL,'Notebook',1,0);
-INSERT INTO course_module (name, link, image, `row`, `column`, position) VALUES ('notebook','notebook/index.php','notebook.gif',2,1,'basic');
ALTER TABLE course DROP PRIMARY KEY , ADD UNIQUE KEY code (code);
ALTER TABLE course ADD id int NOT NULL auto_increment PRIMARY KEY FIRST;
CREATE TABLE block (id INT NOT NULL auto_increment, name VARCHAR(255) NULL, description TEXT NULL, path VARCHAR(255) NOT NULL, controller VARCHAR(100) NOT NULL, active TINYINT NOT NULL default 1, PRIMARY KEY(id));
@@ -124,11 +123,12 @@ INSERT INTO course_setting (variable,value,category) VALUES ('allow_user_view_us
ALTER TABLE tool_intro ADD COLUMN session_id INT NOT NULL DEFAULT 0 AFTER intro_text, DROP PRIMARY KEY, ADD PRIMARY KEY USING BTREE(id, session_id);
CREATE TABLE thematic (id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, title VARCHAR( 255 ) NOT NULL, content TEXT NULL, display_order int unsigned not null default 0, active TINYINT NOT NULL default 0, session_id INT NOT NULL DEFAULT 0);
ALTER TABLE thematic ADD INDEX (active, session_id);
-CREATE TABLE thematic_plan (id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, thematic_id INT NOT NULL, title VARCHAR(255) NOT NULL, description TEXT NULL, description_type` INT NOT NULL);
+CREATE TABLE thematic_plan (id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, thematic_id INT NOT NULL, title VARCHAR(255) NOT NULL, description TEXT NULL, description_type INT NOT NULL);
ALTER TABLE thematic_plan ADD INDEX (thematic_id, description_type);
CREATE TABLE thematic_advance (id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, thematic_id INT NOT NULL, attendance_id INT NOT NULL DEFAULT 0, content TEXT NOT NULL, start_date DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00', duration INT NOT NULL DEFAULT 0, done_advance tinyint NOT NULL DEFAULT 0);
ALTER TABLE thematic_advance ADD INDEX (thematic_id);
INSERT INTO course_setting (variable,value,category) VALUES ('display_info_advance_inside_homecourse',1,'thematic_advance');
INSERT INTO tool(name, link, image, visibility, admin, address, added_tool, target, category) VALUES ('course_progress','course_progress/index.php','course_progress.gif',0,'0','squaregrey.gif',0,'_self','authoring');
ALTER TABLE lp ADD prerequisite int unsigned NOT NULL DEFAULT 0;
-ALTER TABLE student_publication MODIFY COLUMN description TEXT DEFAULT NULL;
\ No newline at end of file
+ALTER TABLE student_publication MODIFY COLUMN description TEXT DEFAULT NULL;
+ALTER TABLE student_publication ADD COLUMN user_id INTEGER NOT NULL AFTER session_id;
\ No newline at end of file
diff --git a/main/install/update-db-1.8.6.2-1.8.7.inc.php b/main/install/update-db-1.8.6.2-1.8.7.inc.php
index 5968589134..ac56f6086f 100755
--- a/main/install/update-db-1.8.6.2-1.8.7.inc.php
+++ b/main/install/update-db-1.8.6.2-1.8.7.inc.php
@@ -347,8 +347,31 @@ if (defined('SYSTEM_INSTALLATION')) {
error_log('Error in '.$query.': '.Database::error());
}
}
-
- //updating parent_id of the student_publication table
+ $t_student_publication = $row_course['db_name'].".student_publication";
+ $t_item_property = $row_course['db_name'].".item_property";
+
+ if ($singleDbForm) {
+ $t_student_publication = "$prefix{$row_course['db_name']}_student_publication";
+ $t_item_property = "$prefix{$row_course['db_name']}_item_property";
+ }
+ $sql_insert_user = "SELECT ref, insert_user_id FROM $t_item_property WHERE tool='work'";
+
+ $rs_insert_user = Database::query($sql_insert_user);
+
+ if ($rs_insert_user === false) {
+ error_log('Could not query insert_user_id table: '.Database::error());
+ } else {
+ if (Database::num_rows($rs_insert_user) > 0) {
+ while ($row_ids = Database::fetch_array($rs_insert_user)) {
+ $user_id = $row_ids['insert_user_id'];
+ $ref = $row_ids['ref'];
+ $sql_upd = "UPDATE $t_student_publication SET user_id='$user_id' WHERE id='$ref'";
+ Database::query($sql_upd);
+ }
+ }
+ }
+
+ //updating parent_id of the student_publication table
$sql = 'SELECT id, url, parent_id FROM '.$row_course['db_name'].'.student_publication ';
$result = Database::query($sql);
if (Database::num_rows($result) > 0) {
@@ -387,10 +410,17 @@ if (defined('SYSTEM_INSTALLATION')) {
}
}
}
- }
- }
- }
+
+
+
+
+
+
+ }
+ }
+ }
}
+
} else {
echo 'You are not allowed here !';
diff --git a/main/lang/bulgarian/document.inc.php b/main/lang/bulgarian/document.inc.php
old mode 100644
new mode 100755
index 782a912178..394dc1a871
--- a/main/lang/bulgarian/document.inc.php
+++ b/main/lang/bulgarian/document.inc.php
@@ -215,4 +215,7 @@ $HelpDefaultDirDocuments = "Тази директория е създадена
$HelpSharedFolder = "Тази директория съдържа файлове, които са създадени от курсистите при използване на текстовия редактор (това не важи за групи). По подразбиране вложените папки и файлове са видими за всеки инструктор, но са скрити за курсистите. Ако направите някоя от папките на курсистите видима, то останалите курсисти ще могат да видят нейното съдържание.";
$TemplateImage = "Изображение на шаблона";
$MoveElement = "Преместване";
+$CertificateName = "Име на сертификата";
+$CreateCertificate = "Създаване на сертификат";
+$CertificateOverview = "списъка със сертификатите";
?>
\ No newline at end of file
diff --git a/main/lang/bulgarian/exercice.inc.php b/main/lang/bulgarian/exercice.inc.php
old mode 100644
new mode 100755
index 0d6fa00097..0429ed51f9
--- a/main/lang/bulgarian/exercice.inc.php
+++ b/main/lang/bulgarian/exercice.inc.php
@@ -364,4 +364,6 @@ $XResultsCleaned = "%d резултата са изтрити.";
$CopyExercise = "Копиране на теста в нов";
$CleanStudentResults = "Изтриване на всички резултати на курсистите за теста";
$ImportQtiQuiz = "Qti2 импорт на тестове.";
+$Copy = "Копиране";
+$DefaultContent = "Създаване на примерно съдържание";
?>
\ No newline at end of file
diff --git a/main/lang/bulgarian/gradebook.inc.php b/main/lang/bulgarian/gradebook.inc.php
old mode 100644
new mode 100755
index b49ed3adc4..15630fa3de
--- a/main/lang/bulgarian/gradebook.inc.php
+++ b/main/lang/bulgarian/gradebook.inc.php
@@ -135,8 +135,8 @@ $GradebookPreviousWeight = "Предишно тегро на ресурса";
$FolderView = "Начална страница на оценяванията";
$GradebookSkillsRanking = "Оценка на уменията";
$SaveScoringRules = "Записване на правилата за оценяване";
-$AttachCertificate = "Прилагане на сертификат";
-$GradebookSeeListOfStudentsCertificates = "Списък на сертификатите на курсистите";
+$AttachCertificate = "Задаване на сертификат";
+$GradebookSeeListOfStudentsCertificates = "Сертификати на курсистите";
$CreateCertificate = "Създаване на сертификат";
$UploadCertificate = "Качване на сертификат";
$CertificateName = "Име на сертификата";
@@ -158,7 +158,7 @@ $IsDefaultCertificate = "Сертификатът е зададен по под
$ImportPresences = "Импортиране на присъствия";
$AddPresences = "Добавяне на присъствия";
$DeletePresences = "Изтриване на присъствия";
-$GradebookListOfStudentsCertificates = "Списък на сертификатите";
+$GradebookListOfStudentsCertificates = "Сертификати на курсистите";
$NewPresence = "Ново присъствие";
$EditPresence = "Редактиране на присъствие";
$SavedEditPresence = "Записване на присъствието";
diff --git a/main/lang/bulgarian/learnpath.inc.php b/main/lang/bulgarian/learnpath.inc.php
old mode 100644
new mode 100755
index 81dc08e09a..8c68b36a60
--- a/main/lang/bulgarian/learnpath.inc.php
+++ b/main/lang/bulgarian/learnpath.inc.php
@@ -246,4 +246,5 @@ $SaveAudioAndOrganization = "Запис на аудиофайловете и т
$UploadOnlyMp3Files = "Моля, качвайте само mp3 файлове.";
$ModifyHotPotatoes = "Промяна на HotPotatoes";
$SaveHotpotatoes = "Запис на HotPotatoes";
+$ReturnToLPList = "Изход";
?>
\ No newline at end of file
diff --git a/main/lang/english/admin.inc.php b/main/lang/english/admin.inc.php
index 4181875b29..79b8560acd 100644
--- a/main/lang/english/admin.inc.php
+++ b/main/lang/english/admin.inc.php
@@ -1213,4 +1213,5 @@ $TheSubLanguageForThisLanguageHasBeenAdded = "The sub-language of this language
$ReturnToLanguagesList = "Return to the languages list";
$ActivityCoach = "The coach of the session, shall have all rights and privileges on all the courses that belong to the session.";
$CategoriesNumber = "Categories";
+$CourseProgress = "Course progress";
?>
\ No newline at end of file
diff --git a/main/lang/english/exercice.inc.php b/main/lang/english/exercice.inc.php
index 9297972eaf..20f987a7a9 100644
--- a/main/lang/english/exercice.inc.php
+++ b/main/lang/english/exercice.inc.php
@@ -364,4 +364,5 @@ $XResultsCleaned = "%d results cleaned";
$CopyExercise = "Copy this exercise as a new one";
$CleanStudentResults = "Clear all students results for this exercise";
$ImportQtiQuiz = "Import exercises Qti2";
+$DefaultContent = "Generate default content";
?>
\ No newline at end of file
diff --git a/main/lang/english/trad4all.inc.php b/main/lang/english/trad4all.inc.php
index c2581eff58..92ce7cd7a8 100644
--- a/main/lang/english/trad4all.inc.php
+++ b/main/lang/english/trad4all.inc.php
@@ -94,7 +94,7 @@ $dateFormatShort = "%b %d, %y";
$dateFormatLong = "%A %B %d, %Y";
$dateTimeFormatLong = "%B %d, %Y at %I:%M %p";
$timeNoSecFormat = "%I:%M %p";
-$langYes = "yes";
+$langYes = "Yes";
$langNo = "No";
$Next = "Next";
$langAllowed = "Allowed";
@@ -859,4 +859,5 @@ $NewThematicAdvance = "New thematic advance";
$ResultsHiddenByExerciseSetting = "Results hidden by the exercise setting";
$ThematicSectionHasBeenCreatedSuccessfull = "Thematic section has been created success full";
$NowYouShouldAddThematicPlanXAndThematicAdvanceX = "Now you should add thematic plan %s and thematic advance %s";
+$QualificationNumeric = "Numeric score under";
?>
\ No newline at end of file
diff --git a/main/lang/spanish/admin.inc.php b/main/lang/spanish/admin.inc.php
index fb52f4b6fd..efd0af4104 100644
--- a/main/lang/spanish/admin.inc.php
+++ b/main/lang/spanish/admin.inc.php
@@ -1213,4 +1213,7 @@ $TheSubLanguageForThisLanguageHasBeenAdded = "El sub-lenguaje de este idioma ha
$ReturnToLanguagesList = "Volver a la lista de idiomas";
$ActivityCoach = "El tutor de la sesion, tendrá todos los derechos y permisos en todos los cursos que pertenecen a la sesion.";
$CategoriesNumber = "Categorías";
+$ExportAllCoursesList = "Exportar toda la lista de cursos";
+$ExportSelectedCoursesFromCoursesList = "Exportar solo algunos cursos de la lista";
+$WhichCoursesToExport = "Seleccione los cursos que desea exportar";
?>
\ No newline at end of file
diff --git a/main/lang/spanish/document.inc.php b/main/lang/spanish/document.inc.php
index ad718f4968..47e17fe445 100644
--- a/main/lang/spanish/document.inc.php
+++ b/main/lang/spanish/document.inc.php
@@ -215,4 +215,5 @@ $HelpDefaultDirDocuments = "Este directorio contiene los archivos suministrados
$HelpSharedFolder = "Este directorio contiene los archivos que los estudiantes (y Ud.) envían a un curso a través del editor si no lo hacen desde la herramienta grupos. Por defecto serán visibles por cualquier profesor, pero estarán ocultos para otros estudiantes salvo que accedan a ellos mediante un acceso directo. Si hace visible el directorio de un estudiante otros estudiantes podrán ver todo lo que contenga.";
$TemplateImage = "Imagen de la plantilla";
$MoveElement = "Mover elemento";
+$CertificateName = "Nombre del certificado";
?>
\ No newline at end of file
diff --git a/main/lang/spanish/exercice.inc.php b/main/lang/spanish/exercice.inc.php
index e88fc47af0..bcdf10c881 100644
--- a/main/lang/spanish/exercice.inc.php
+++ b/main/lang/spanish/exercice.inc.php
@@ -366,4 +366,5 @@ $CleanStudentResults = "Borrar todos los resultados de los estudiantes en este e
$ImportQtiQuiz = "Importar ejercicios de Qti2";
$ReUseACopyInCurrentTest = "Reutilizar una copia de esta pregunta en el ejercicio actual";
$Copy = "Copia";
+$DefaultContent = "Generar contenido por defecto";
?>
\ No newline at end of file
diff --git a/main/lang/spanish/trad4all.inc.php b/main/lang/spanish/trad4all.inc.php
index dae1c2cf72..a48feaa6b1 100644
--- a/main/lang/spanish/trad4all.inc.php
+++ b/main/lang/spanish/trad4all.inc.php
@@ -887,4 +887,5 @@ $SelectAnAttendance = "Seleccionar hoja de asistencia";
$ResultsHiddenByExerciseSetting = "Resultados ocultos por la configuración del ejercicio";
$ThematicSectionHasBeenCreatedSuccessfull = "Sección temática ha sido creado con éxito";
$NowYouShouldAddThematicPlanXAndThematicAdvanceX = "Ahora debes añadir plan temático %s y avance temático %s";
+$QualificationNumeric = "Calificación numérica sobre";
?>
\ No newline at end of file
diff --git a/main/mySpace/lp_tracking.php b/main/mySpace/lp_tracking.php
index 8ab3e726b1..f6d999abe7 100755
--- a/main/mySpace/lp_tracking.php
+++ b/main/mySpace/lp_tracking.php
@@ -41,7 +41,7 @@ if (isset($_GET['course'])) {
$user_infos = UserManager :: get_user_info_by_id($user_id);
$name = api_get_person_name($user_infos['firstname'], $user_infos['lastname']);
-if (!api_is_platform_admin(true) && !CourseManager :: is_course_teacher($_user['user_id'], $cidReq) && !Tracking :: is_allowed_to_coach_student($_user['user_id'],$_GET['student_id']) && !api_is_drh()) {
+if (!api_is_platform_admin(true) && !CourseManager :: is_course_teacher($_user['user_id'], $cidReq) && !Tracking :: is_allowed_to_coach_student($_user['user_id'],$_GET['student_id']) && !api_is_drh() && !api_is_course_tutor()) {
Display::display_header('');
api_not_allowed();
Display::display_footer();
diff --git a/main/mySpace/myStudents.php b/main/mySpace/myStudents.php
index b872c0ae65..cbf2c4142f 100755
--- a/main/mySpace/myStudents.php
+++ b/main/mySpace/myStudents.php
@@ -158,7 +158,7 @@ if (isset ($_GET['details'])) {
api_block_anonymous_users();
-if (!api_is_allowed_to_edit() && !api_is_coach() && !api_is_drh() && $_user['status'] != SESSIONADMIN && !api_is_platform_admin(true)) {
+if (!api_is_allowed_to_edit() && !api_is_coach() && !api_is_drh() && !api_is_course_tutor() && $_user['status'] != SESSIONADMIN && !api_is_platform_admin(true)) {
api_not_allowed(true);
}
diff --git a/main/tracking/courseLog.php b/main/tracking/courseLog.php
index ea1d71c23f..bfddf89d6c 100755
--- a/main/tracking/courseLog.php
+++ b/main/tracking/courseLog.php
@@ -34,7 +34,7 @@ if (isset($_GET['from']) && $_GET['from'] == 'myspace') {
}
// access restrictions
-$is_allowedToTrack = $is_courseAdmin || $is_platformAdmin || $is_courseCoach || $is_sessionAdmin || api_is_drh();
+$is_allowedToTrack = $is_courseAdmin || $is_platformAdmin || $is_courseCoach || $is_sessionAdmin || api_is_drh() || api_is_course_tutor();
if (!$is_allowedToTrack && !api_is_session_admin()) {
Display :: display_header(null);
diff --git a/main/user/userInfo.php b/main/user/userInfo.php
index e763eff30b..1ce02530a8 100755
--- a/main/user/userInfo.php
+++ b/main/user/userInfo.php
@@ -23,6 +23,7 @@ $language_file = array ('registration', 'userInfo');
require_once '../inc/global.inc.php';
require_once api_get_path(LIBRARY_PATH).'formvalidator/FormValidator.class.php';
require_once api_get_path(LIBRARY_PATH).'usermanager.lib.php';
+require_once api_get_path(LIBRARY_PATH).'sessionmanager.lib.php';
require_once api_get_path(LIBRARY_PATH).'tracking.lib.php';
$htmlHeadXtra[] = '