diff --git a/documentation/dependencies.html b/documentation/dependencies.html old mode 100755 new mode 100644 diff --git a/license.txt b/license.txt old mode 100755 new mode 100644 diff --git a/main/admin/access_url_add_courses_to_url.php b/main/admin/access_url_add_courses_to_url.php old mode 100755 new mode 100644 diff --git a/main/admin/access_url_add_sessions_to_url.php b/main/admin/access_url_add_sessions_to_url.php old mode 100755 new mode 100644 diff --git a/main/admin/access_url_add_users_to_url.php b/main/admin/access_url_add_users_to_url.php old mode 100755 new mode 100644 diff --git a/main/admin/access_url_edit_courses_to_url.php b/main/admin/access_url_edit_courses_to_url.php old mode 100755 new mode 100644 diff --git a/main/admin/access_url_edit_sessions_to_url.php b/main/admin/access_url_edit_sessions_to_url.php old mode 100755 new mode 100644 diff --git a/main/admin/add_many_session_to_category.php b/main/admin/add_many_session_to_category.php old mode 100755 new mode 100644 diff --git a/main/admin/course_create_content.php b/main/admin/course_create_content.php old mode 100755 new mode 100644 diff --git a/main/admin/course_virtual.php b/main/admin/course_virtual.php old mode 100755 new mode 100644 diff --git a/main/admin/ldap_synchro.php b/main/admin/ldap_synchro.php old mode 100755 new mode 100644 diff --git a/main/admin/ldap_users_list.php b/main/admin/ldap_users_list.php old mode 100755 new mode 100644 diff --git a/main/admin/ldap_users_synchro.php b/main/admin/ldap_users_synchro.php old mode 100755 new mode 100644 diff --git a/main/admin/statistics/index.php b/main/admin/statistics/index.php old mode 100755 new mode 100644 diff --git a/main/admin/subscribe_class2course.php b/main/admin/subscribe_class2course.php old mode 100755 new mode 100644 diff --git a/main/admin/subscribe_user2class.php b/main/admin/subscribe_user2class.php old mode 100755 new mode 100644 diff --git a/main/admin/system_status.php b/main/admin/system_status.php old mode 100755 new mode 100644 diff --git a/main/attendance/attendance_list.php b/main/attendance/attendance_list.php old mode 100755 new mode 100644 diff --git a/main/auth/ldap/authldap.php b/main/auth/ldap/authldap.php old mode 100755 new mode 100644 diff --git a/main/auth/ldap/ldap_var.inc.php b/main/auth/ldap/ldap_var.inc.php old mode 100755 new mode 100644 diff --git a/main/auth/ldap/login.php b/main/auth/ldap/login.php old mode 100755 new mode 100644 diff --git a/main/auth/ldap/newUser.php b/main/auth/ldap/newUser.php old mode 100755 new mode 100644 diff --git a/main/auth/lost_password.lib.php b/main/auth/lost_password.lib.php old mode 100755 new mode 100644 diff --git a/main/auth/openid/login.php b/main/auth/openid/login.php old mode 100755 new mode 100644 diff --git a/main/auth/openid/openid.conf.php b/main/auth/openid/openid.conf.php old mode 100755 new mode 100644 diff --git a/main/auth/openid/openid.lib.php b/main/auth/openid/openid.lib.php old mode 100755 new mode 100644 diff --git a/main/auth/openid/whatis.php b/main/auth/openid/whatis.php old mode 100755 new mode 100644 diff --git a/main/auth/openid/xrds.lib.php b/main/auth/openid/xrds.lib.php old mode 100755 new mode 100644 diff --git a/main/blog/calendar.php b/main/blog/calendar.php old mode 100755 new mode 100644 diff --git a/main/calendar/allagendas.php b/main/calendar/allagendas.php old mode 100755 new mode 100644 diff --git a/main/calendar/myagenda.php b/main/calendar/myagenda.php old mode 100755 new mode 100644 diff --git a/main/chat/chat.php b/main/chat/chat.php old mode 100755 new mode 100644 diff --git a/main/chat/header_frame.inc.php b/main/chat/header_frame.inc.php old mode 100755 new mode 100644 diff --git a/main/course_info/delete_course.php b/main/course_info/delete_course.php old mode 100755 new mode 100644 diff --git a/main/course_info/download.lib.php b/main/course_info/download.lib.php old mode 100755 new mode 100644 diff --git a/main/course_info/download.php b/main/course_info/download.php old mode 100755 new mode 100644 diff --git a/main/course_info/maintenance.php b/main/course_info/maintenance.php old mode 100755 new mode 100644 diff --git a/main/course_info/postpone.php b/main/course_info/postpone.php old mode 100755 new mode 100644 diff --git a/main/course_progress/layout.php b/main/course_progress/layout.php old mode 100755 new mode 100644 diff --git a/main/course_progress/thematic_controller.php b/main/course_progress/thematic_controller.php old mode 100755 new mode 100644 diff --git a/main/coursecopy/backup.php b/main/coursecopy/backup.php old mode 100755 new mode 100644 diff --git a/main/coursecopy/classes/Announcement.class.php b/main/coursecopy/classes/Announcement.class.php old mode 100755 new mode 100644 diff --git a/main/coursecopy/classes/CourseArchiver.class.php b/main/coursecopy/classes/CourseArchiver.class.php old mode 100755 new mode 100644 diff --git a/main/coursecopy/classes/CourseSession.class.php b/main/coursecopy/classes/CourseSession.class.php old mode 100755 new mode 100644 diff --git a/main/coursecopy/classes/Document.class.php b/main/coursecopy/classes/Document.class.php old mode 100755 new mode 100644 diff --git a/main/coursecopy/classes/DummyCourseCreator.class.php b/main/coursecopy/classes/DummyCourseCreator.class.php old mode 100755 new mode 100644 diff --git a/main/coursecopy/classes/Event.class.php b/main/coursecopy/classes/Event.class.php old mode 100755 new mode 100644 diff --git a/main/coursecopy/classes/Forum.class.php b/main/coursecopy/classes/Forum.class.php old mode 100755 new mode 100644 diff --git a/main/coursecopy/classes/ForumCategory.class.php b/main/coursecopy/classes/ForumCategory.class.php old mode 100755 new mode 100644 diff --git a/main/coursecopy/classes/ForumPost.class.php b/main/coursecopy/classes/ForumPost.class.php old mode 100755 new mode 100644 diff --git a/main/coursecopy/classes/ForumTopic.class.php b/main/coursecopy/classes/ForumTopic.class.php old mode 100755 new mode 100644 diff --git a/main/coursecopy/classes/Glossary.class.php b/main/coursecopy/classes/Glossary.class.php old mode 100755 new mode 100644 diff --git a/main/coursecopy/classes/LinkCategory.class.php b/main/coursecopy/classes/LinkCategory.class.php old mode 100755 new mode 100644 diff --git a/main/coursecopy/classes/Quiz.class.php b/main/coursecopy/classes/Quiz.class.php old mode 100755 new mode 100644 diff --git a/main/coursecopy/classes/QuizQuestion.class.php b/main/coursecopy/classes/QuizQuestion.class.php old mode 100755 new mode 100644 diff --git a/main/coursecopy/classes/ScormDocument.class.php b/main/coursecopy/classes/ScormDocument.class.php old mode 100755 new mode 100644 diff --git a/main/coursecopy/classes/SurveyInvitation.class.php b/main/coursecopy/classes/SurveyInvitation.class.php old mode 100755 new mode 100644 diff --git a/main/coursecopy/classes/ToolIntro.class.php b/main/coursecopy/classes/ToolIntro.class.php old mode 100755 new mode 100644 diff --git a/main/coursecopy/classes/wiki.class.php b/main/coursecopy/classes/wiki.class.php old mode 100755 new mode 100644 diff --git a/main/coursecopy/create_backup.php b/main/coursecopy/create_backup.php old mode 100755 new mode 100644 diff --git a/main/coursecopy/import_backup.php b/main/coursecopy/import_backup.php old mode 100755 new mode 100644 diff --git a/main/coursecopy/recycle_course.php b/main/coursecopy/recycle_course.php old mode 100755 new mode 100644 diff --git a/main/css/public_admin/scorm.css b/main/css/public_admin/scorm.css old mode 100755 new mode 100644 diff --git a/main/document/download.php b/main/document/download.php old mode 100755 new mode 100644 diff --git a/main/document/footerpage.php b/main/document/footerpage.php old mode 100755 new mode 100644 diff --git a/main/document/headerpage.php b/main/document/headerpage.php old mode 100755 new mode 100644 diff --git a/main/document/quota.php b/main/document/quota.php old mode 100755 new mode 100644 diff --git a/main/document/showinframes.php b/main/document/showinframes.php old mode 100755 new mode 100644 diff --git a/main/document/slideshow.inc.php b/main/document/slideshow.inc.php old mode 100755 new mode 100644 diff --git a/main/document/slideshowoptions.php b/main/document/slideshowoptions.php old mode 100755 new mode 100644 diff --git a/main/dropbox/dropbox_init.inc.php b/main/dropbox/dropbox_init.inc.php old mode 100755 new mode 100644 diff --git a/main/dropbox/dropbox_submit.php b/main/dropbox/dropbox_submit.php old mode 100755 new mode 100644 diff --git a/main/dropbox/index.php b/main/dropbox/index.php old mode 100755 new mode 100644 diff --git a/main/exercice/GC.php b/main/exercice/GC.php old mode 100755 new mode 100644 diff --git a/main/exercice/Hpdownload.php b/main/exercice/Hpdownload.php old mode 100755 new mode 100644 diff --git a/main/exercice/exercise_submit_modal.php b/main/exercice/exercise_submit_modal.php old mode 100755 new mode 100644 diff --git a/main/exercice/export/exercise_import.inc.php b/main/exercice/export/exercise_import.inc.php old mode 100755 new mode 100644 diff --git a/main/exercice/export/exercise_import.php b/main/exercice/export/exercise_import.php old mode 100755 new mode 100644 diff --git a/main/exercice/export/index.php b/main/exercice/export/index.php old mode 100755 new mode 100644 diff --git a/main/exercice/export/qti/qti_classes.php b/main/exercice/export/qti/qti_classes.php old mode 100755 new mode 100644 diff --git a/main/exercice/export/qti/qti_export.php b/main/exercice/export/qti/qti_export.php old mode 100755 new mode 100644 diff --git a/main/exercice/export/qti2/qti2_classes.php b/main/exercice/export/qti2/qti2_classes.php old mode 100755 new mode 100644 diff --git a/main/exercice/export/qti2/qti2_export.php b/main/exercice/export/qti2/qti2_export.php old mode 100755 new mode 100644 diff --git a/main/exercice/export/scorm/scorm_classes.php b/main/exercice/export/scorm/scorm_classes.php old mode 100755 new mode 100644 diff --git a/main/exercice/export/scorm/scorm_export.php b/main/exercice/export/scorm/scorm_export.php old mode 100755 new mode 100644 diff --git a/main/exercice/feedback.php b/main/exercice/feedback.php old mode 100755 new mode 100644 diff --git a/main/exercice/hotspot.inc.php b/main/exercice/hotspot.inc.php old mode 100755 new mode 100644 diff --git a/main/exercice/hotspot_lang_conversion.php b/main/exercice/hotspot_lang_conversion.php old mode 100755 new mode 100644 diff --git a/main/exercice/hotspot_savescore.inc.php b/main/exercice/hotspot_savescore.inc.php old mode 100755 new mode 100644 diff --git a/main/exercice/hotspot_updatescore.inc.php b/main/exercice/hotspot_updatescore.inc.php old mode 100755 new mode 100644 diff --git a/main/exercice/savescores.php b/main/exercice/savescores.php old mode 100755 new mode 100644 diff --git a/main/exercice/testheaderpage.php b/main/exercice/testheaderpage.php old mode 100755 new mode 100644 diff --git a/main/glossary/glossary_ajax_request.php b/main/glossary/glossary_ajax_request.php old mode 100755 new mode 100644 diff --git a/main/gradebook/gradebook_add_link_select_course.php b/main/gradebook/gradebook_add_link_select_course.php old mode 100755 new mode 100644 diff --git a/main/gradebook/gradebook_add_result.php b/main/gradebook/gradebook_add_result.php old mode 100755 new mode 100644 diff --git a/main/gradebook/gradebook_add_user.php b/main/gradebook/gradebook_add_user.php old mode 100755 new mode 100644 diff --git a/main/gradebook/gradebook_edit_eval.php b/main/gradebook/gradebook_edit_eval.php old mode 100755 new mode 100644 diff --git a/main/gradebook/gradebook_edit_result.php b/main/gradebook/gradebook_edit_result.php old mode 100755 new mode 100644 diff --git a/main/gradebook/gradebook_scoring_system.php b/main/gradebook/gradebook_scoring_system.php old mode 100755 new mode 100644 diff --git a/main/gradebook/gradebook_showlog_link.php b/main/gradebook/gradebook_showlog_link.php old mode 100755 new mode 100644 diff --git a/main/gradebook/lib/be/gradebookitem.class.php b/main/gradebook/lib/be/gradebookitem.class.php old mode 100755 new mode 100644 diff --git a/main/gradebook/lib/be/linkfactory.class.php b/main/gradebook/lib/be/linkfactory.class.php old mode 100755 new mode 100644 diff --git a/main/gradebook/lib/be/result.class.php b/main/gradebook/lib/be/result.class.php old mode 100755 new mode 100644 diff --git a/main/gradebook/lib/fe/resulttable.class.php b/main/gradebook/lib/fe/resulttable.class.php old mode 100755 new mode 100644 diff --git a/main/gradebook/lib/fe/scoredisplayform.class.php b/main/gradebook/lib/fe/scoredisplayform.class.php old mode 100755 new mode 100644 diff --git a/main/gradebook/lib/fe/userform.class.php b/main/gradebook/lib/fe/userform.class.php old mode 100755 new mode 100644 diff --git a/main/gradebook/lib/fe/usertable.class.php b/main/gradebook/lib/fe/usertable.class.php old mode 100755 new mode 100644 diff --git a/main/gradebook/lib/user_data_generator.class.php b/main/gradebook/lib/user_data_generator.class.php old mode 100755 new mode 100644 diff --git a/main/gradebook/open_document.php b/main/gradebook/open_document.php old mode 100755 new mode 100644 diff --git a/main/gradebook/user_info.php b/main/gradebook/user_info.php old mode 100755 new mode 100644 diff --git a/main/gradebook/user_stats.php b/main/gradebook/user_stats.php old mode 100755 new mode 100644 diff --git a/main/help/allowed_html_tags.php b/main/help/allowed_html_tags.php old mode 100755 new mode 100644 diff --git a/main/help/faq.php b/main/help/faq.php old mode 100755 new mode 100644 diff --git a/main/help/help.php b/main/help/help.php old mode 100755 new mode 100644 diff --git a/main/inc/ajax/message.ajax.php b/main/inc/ajax/message.ajax.php old mode 100755 new mode 100644 diff --git a/main/inc/course_document.inc.php b/main/inc/course_document.inc.php old mode 100755 new mode 100644 diff --git a/main/inc/lib/WCAG/WCAG_rendering.php b/main/inc/lib/WCAG/WCAG_rendering.php old mode 100755 new mode 100644 diff --git a/main/inc/lib/access_url_edit_sessions_to_url_functions.lib.php b/main/inc/lib/access_url_edit_sessions_to_url_functions.lib.php old mode 100755 new mode 100644 diff --git a/main/inc/lib/access_url_edit_users_to_url_functions.lib.php b/main/inc/lib/access_url_edit_users_to_url_functions.lib.php old mode 100755 new mode 100644 diff --git a/main/inc/lib/array.lib.php b/main/inc/lib/array.lib.php old mode 100755 new mode 100644 diff --git a/main/inc/lib/course_document.lib.php b/main/inc/lib/course_document.lib.php old mode 100755 new mode 100644 diff --git a/main/inc/lib/dashboard.lib.php b/main/inc/lib/dashboard.lib.php old mode 100755 new mode 100644 diff --git a/main/inc/lib/diagnoser.lib.php b/main/inc/lib/diagnoser.lib.php old mode 100755 new mode 100644 diff --git a/main/inc/lib/fckeditor/editor/plugins/ajaxfilemanager/ajax_editor_reset.php b/main/inc/lib/fckeditor/editor/plugins/ajaxfilemanager/ajax_editor_reset.php old mode 100755 new mode 100644 diff --git a/main/inc/lib/fckeditor/editor/plugins/ajaxfilemanager/ajax_image_editor.php b/main/inc/lib/fckeditor/editor/plugins/ajaxfilemanager/ajax_image_editor.php old mode 100755 new mode 100644 diff --git a/main/inc/lib/fckeditor/editor/plugins/ajaxfilemanager/ajax_image_save.php b/main/inc/lib/fckeditor/editor/plugins/ajaxfilemanager/ajax_image_save.php old mode 100755 new mode 100644 diff --git a/main/inc/lib/fckeditor/editor/plugins/ajaxfilemanager/ajax_image_undo.php b/main/inc/lib/fckeditor/editor/plugins/ajaxfilemanager/ajax_image_undo.php old mode 100755 new mode 100644 diff --git a/main/inc/lib/fckeditor/editor/plugins/ajaxfilemanager/ajax_text_editor.php b/main/inc/lib/fckeditor/editor/plugins/ajaxfilemanager/ajax_text_editor.php old mode 100755 new mode 100644 diff --git a/main/inc/lib/fckeditor/editor/plugins/flvPlayer/lang/es.js b/main/inc/lib/fckeditor/editor/plugins/flvPlayer/lang/es.js old mode 100755 new mode 100644 diff --git a/main/inc/lib/fckeditor/fckeditor.php b/main/inc/lib/fckeditor/fckeditor.php old mode 100755 new mode 100644 diff --git a/main/inc/lib/fckeditor/toolbars/extended/documents.php b/main/inc/lib/fckeditor/toolbars/extended/documents.php old mode 100755 new mode 100644 diff --git a/main/inc/lib/fckeditor/toolbars/extended/learning_path_documents.php b/main/inc/lib/fckeditor/toolbars/extended/learning_path_documents.php old mode 100755 new mode 100644 diff --git a/main/inc/lib/formvalidator/Element/html_editor.php b/main/inc/lib/formvalidator/Element/html_editor.php old mode 100755 new mode 100644 diff --git a/main/inc/lib/geometry.lib.php b/main/inc/lib/geometry.lib.php old mode 100755 new mode 100644 diff --git a/main/inc/lib/getid3/module.audio-video.flv.php b/main/inc/lib/getid3/module.audio-video.flv.php old mode 100755 new mode 100644 diff --git a/main/inc/lib/import.lib.php b/main/inc/lib/import.lib.php old mode 100755 new mode 100644 diff --git a/main/inc/lib/internationalization_database/conversion/character_map_selector.php b/main/inc/lib/internationalization_database/conversion/character_map_selector.php old mode 100755 new mode 100644 diff --git a/main/inc/lib/internationalization_database/language_detection/update_language_profiles.php b/main/inc/lib/internationalization_database/language_detection/update_language_profiles.php old mode 100755 new mode 100644 diff --git a/main/inc/lib/internationalization_database/name_order_conventions.php b/main/inc/lib/internationalization_database/name_order_conventions.php old mode 100755 new mode 100644 diff --git a/main/inc/lib/internationalization_database/non_utf8_encodings.php b/main/inc/lib/internationalization_database/non_utf8_encodings.php old mode 100755 new mode 100644 diff --git a/main/inc/lib/internationalization_internal.lib.php b/main/inc/lib/internationalization_internal.lib.php old mode 100755 new mode 100644 diff --git a/main/inc/lib/javascript/asciimath/ASCIIMathML.js b/main/inc/lib/javascript/asciimath/ASCIIMathML.js old mode 100755 new mode 100644 diff --git a/main/inc/lib/javascript/asciimath/asciimath.html b/main/inc/lib/javascript/asciimath/asciimath.html old mode 100755 new mode 100644 diff --git a/main/inc/lib/javascript/asciimath/asciimathcalculator.html b/main/inc/lib/javascript/asciimath/asciimathcalculator.html old mode 100755 new mode 100644 diff --git a/main/inc/lib/javascript/asciimath/asciimathchanges.txt b/main/inc/lib/javascript/asciimath/asciimathchanges.txt old mode 100755 new mode 100644 diff --git a/main/inc/lib/javascript/asciimath/asciimathdemo.html b/main/inc/lib/javascript/asciimath/asciimathdemo.html old mode 100755 new mode 100644 diff --git a/main/inc/lib/javascript/asciimath/asciimathextend.html b/main/inc/lib/javascript/asciimath/asciimathextend.html old mode 100755 new mode 100644 diff --git a/main/inc/lib/javascript/asciimath/asciimathsample.html b/main/inc/lib/javascript/asciimath/asciimathsample.html old mode 100755 new mode 100644 diff --git a/main/inc/lib/javascript/asciimath/asciimathsyntax.html b/main/inc/lib/javascript/asciimath/asciimathsyntax.html old mode 100755 new mode 100644 diff --git a/main/inc/lib/javascript/asciimath/d.svg b/main/inc/lib/javascript/asciimath/d.svg old mode 100755 new mode 100644 diff --git a/main/inc/lib/javascript/asciimath/index.html b/main/inc/lib/javascript/asciimath/index.html old mode 100755 new mode 100644 diff --git a/main/inc/lib/javascript/asciimath/readme.txt b/main/inc/lib/javascript/asciimath/readme.txt old mode 100755 new mode 100644 diff --git a/main/inc/lib/legal.lib.php b/main/inc/lib/legal.lib.php old mode 100755 new mode 100644 diff --git a/main/inc/lib/magpierss/rss_cache.inc b/main/inc/lib/magpierss/rss_cache.inc old mode 100755 new mode 100644 diff --git a/main/inc/lib/magpierss/rss_fetch.inc b/main/inc/lib/magpierss/rss_fetch.inc old mode 100755 new mode 100644 diff --git a/main/inc/lib/magpierss/rss_parse.inc b/main/inc/lib/magpierss/rss_parse.inc old mode 100755 new mode 100644 diff --git a/main/inc/lib/magpierss/rss_utils.inc b/main/inc/lib/magpierss/rss_utils.inc old mode 100755 new mode 100644 diff --git a/main/inc/lib/mp3player/is_autostart.as.php b/main/inc/lib/mp3player/is_autostart.as.php old mode 100755 new mode 100644 diff --git a/main/inc/lib/pclzip/pclzip.lib.php b/main/inc/lib/pclzip/pclzip.lib.php old mode 100755 new mode 100644 diff --git a/main/inc/lib/pear/HTML/QuickForm/Renderer/Default.php b/main/inc/lib/pear/HTML/QuickForm/Renderer/Default.php old mode 100755 new mode 100644 diff --git a/main/inc/lib/pear/HTML/QuickForm/Rule/CompareDate.php b/main/inc/lib/pear/HTML/QuickForm/Rule/CompareDate.php old mode 100755 new mode 100644 diff --git a/main/inc/lib/pear/HTML/QuickForm/Rule/Date.php b/main/inc/lib/pear/HTML/QuickForm/Rule/Date.php old mode 100755 new mode 100644 diff --git a/main/inc/lib/pear/HTML/QuickForm/date.php b/main/inc/lib/pear/HTML/QuickForm/date.php old mode 100755 new mode 100644 diff --git a/main/inc/lib/pear/HTML/Table.php b/main/inc/lib/pear/HTML/Table.php old mode 100755 new mode 100644 diff --git a/main/inc/lib/pear/Pager/Common.php b/main/inc/lib/pear/Pager/Common.php old mode 100755 new mode 100644 diff --git a/main/inc/lib/pear/Pager/Pager_savebc.php b/main/inc/lib/pear/Pager/Pager_savebc.php old mode 100755 new mode 100644 diff --git a/main/inc/lib/pear/excelreader/reader.php b/main/inc/lib/pear/excelreader/reader.php old mode 100755 new mode 100644 diff --git a/main/inc/lib/search/DokeosIndexer.class.php b/main/inc/lib/search/DokeosIndexer.class.php old mode 100755 new mode 100644 diff --git a/main/inc/lib/search/DokeosQuery.php b/main/inc/lib/search/DokeosQuery.php old mode 100755 new mode 100644 diff --git a/main/inc/lib/search/IndexableChunk.class.php b/main/inc/lib/search/IndexableChunk.class.php old mode 100755 new mode 100644 diff --git a/main/inc/lib/search/get_terms.php b/main/inc/lib/search/get_terms.php old mode 100755 new mode 100644 diff --git a/main/inc/lib/search/search_widget.css b/main/inc/lib/search/search_widget.css old mode 100755 new mode 100644 diff --git a/main/inc/lib/search/search_widget.php b/main/inc/lib/search/search_widget.php old mode 100755 new mode 100644 diff --git a/main/inc/lib/search/tool_processors/document_processor.class.php b/main/inc/lib/search/tool_processors/document_processor.class.php old mode 100755 new mode 100644 diff --git a/main/inc/lib/search/tool_processors/learnpath_processor.class.php b/main/inc/lib/search/tool_processors/learnpath_processor.class.php old mode 100755 new mode 100644 diff --git a/main/inc/lib/search/tool_processors/link_processor.class.php b/main/inc/lib/search/tool_processors/link_processor.class.php old mode 100755 new mode 100644 diff --git a/main/inc/lib/search/tool_processors/quiz_processor.class.php b/main/inc/lib/search/tool_processors/quiz_processor.class.php old mode 100755 new mode 100644 diff --git a/main/inc/lib/search/tool_processors/search_processor.class.php b/main/inc/lib/search/tool_processors/search_processor.class.php old mode 100755 new mode 100644 diff --git a/main/inc/lib/search/xapian/XapianIndexer.class.php b/main/inc/lib/search/xapian/XapianIndexer.class.php old mode 100755 new mode 100644 diff --git a/main/inc/lib/search/xapian/XapianQuery.php b/main/inc/lib/search/xapian/XapianQuery.php old mode 100755 new mode 100644 diff --git a/main/inc/lib/statsUtils.lib.inc.php b/main/inc/lib/statsUtils.lib.inc.php old mode 100755 new mode 100644 diff --git a/main/inc/lib/tablesort.lib.php b/main/inc/lib/tablesort.lib.php old mode 100755 new mode 100644 diff --git a/main/inc/lib/upload.xajax.php b/main/inc/lib/upload.xajax.php old mode 100755 new mode 100644 diff --git a/main/inc/lib/xajax/tests/changeLister.php b/main/inc/lib/xajax/tests/changeLister.php old mode 100755 new mode 100644 diff --git a/main/inc/lib/xajax/xajax.inc.php b/main/inc/lib/xajax/xajax.inc.php old mode 100755 new mode 100644 diff --git a/main/inc/lib/xajax/xajaxCompress.php b/main/inc/lib/xajax/xajaxCompress.php old mode 100755 new mode 100644 diff --git a/main/inc/lib/xajax/xajaxResponse.inc.php b/main/inc/lib/xajax/xajaxResponse.inc.php old mode 100755 new mode 100644 diff --git a/main/inc/reduced_header.inc.php b/main/inc/reduced_header.inc.php old mode 100755 new mode 100644 diff --git a/main/install/db_user.sql b/main/install/db_user.sql old mode 100755 new mode 100644 diff --git a/main/install/migrate-db-1.8.7-1.8.8-pre.sql b/main/install/migrate-db-1.8.7-1.8.8-pre.sql old mode 100755 new mode 100644 diff --git a/main/install/update-configuration.inc.php b/main/install/update-configuration.inc.php old mode 100644 new mode 100755 diff --git a/main/install/update-db-1.8.5-1.8.6.inc.php b/main/install/update-db-1.8.5-1.8.6.inc.php old mode 100755 new mode 100644 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 old mode 100755 new mode 100644 diff --git a/main/messages/download.php b/main/messages/download.php old mode 100755 new mode 100644 diff --git a/main/messages/index.php b/main/messages/index.php old mode 100755 new mode 100644 diff --git a/main/messages/send_message.php b/main/messages/send_message.php old mode 100755 new mode 100644 diff --git a/main/metadata/doc/dcex.php b/main/metadata/doc/dcex.php old mode 100755 new mode 100644 diff --git a/main/metadata/doc/mdApiTest.php b/main/metadata/doc/mdApiTest.php old mode 100755 new mode 100644 diff --git a/main/metadata/doc/testMiniDom.php b/main/metadata/doc/testMiniDom.php old mode 100755 new mode 100644 diff --git a/main/metadata/doc/testXht.php b/main/metadata/doc/testXht.php old mode 100755 new mode 100644 diff --git a/main/metadata/importdocs.php b/main/metadata/importdocs.php old mode 100755 new mode 100644 diff --git a/main/metadata/importlinks.php b/main/metadata/importlinks.php old mode 100755 new mode 100644 diff --git a/main/metadata/importmanifest.php b/main/metadata/importmanifest.php old mode 100755 new mode 100644 diff --git a/main/metadata/md_mix.php b/main/metadata/md_mix.php old mode 100755 new mode 100644 diff --git a/main/metadata/md_phpdig.php b/main/metadata/md_phpdig.php old mode 100755 new mode 100644 diff --git a/main/metadata/md_scorm.php b/main/metadata/md_scorm.php old mode 100755 new mode 100644 diff --git a/main/metadata/openobject.php b/main/metadata/openobject.php old mode 100755 new mode 100644 diff --git a/main/metadata/phpdig/config.php b/main/metadata/phpdig/config.php old mode 100755 new mode 100644 diff --git a/main/metadata/phpdig/en-language.php b/main/metadata/phpdig/en-language.php old mode 100755 new mode 100644 diff --git a/main/metadata/phpdig/phpdig_functions.php b/main/metadata/phpdig/phpdig_functions.php old mode 100755 new mode 100644 diff --git a/main/metadata/phpdig/search.php b/main/metadata/phpdig/search.php old mode 100755 new mode 100644 diff --git a/main/metadata/phpdig/search_function.php b/main/metadata/phpdig/search_function.php old mode 100755 new mode 100644 diff --git a/main/metadata/search.php b/main/metadata/search.php old mode 100755 new mode 100644 diff --git a/main/metadata/statistics.php b/main/metadata/statistics.php old mode 100755 new mode 100644 diff --git a/main/metadata/update_indexabletext.php b/main/metadata/update_indexabletext.php old mode 100755 new mode 100644 diff --git a/main/mySpace/course.php b/main/mySpace/course.php old mode 100755 new mode 100644 diff --git a/main/mySpace/session.php b/main/mySpace/session.php old mode 100755 new mode 100644 diff --git a/main/mySpace/teachers.php b/main/mySpace/teachers.php old mode 100755 new mode 100644 diff --git a/main/mySpace/user_add.php b/main/mySpace/user_add.php old mode 100755 new mode 100644 diff --git a/main/mySpace/user_import.php b/main/mySpace/user_import.php old mode 100755 new mode 100644 diff --git a/main/newscorm/aiccItem.class.php b/main/newscorm/aiccItem.class.php old mode 100755 new mode 100644 diff --git a/main/newscorm/blank.php b/main/newscorm/blank.php old mode 100755 new mode 100644 diff --git a/main/newscorm/display_audiorecorder.php b/main/newscorm/display_audiorecorder.php old mode 100755 new mode 100644 diff --git a/main/newscorm/index.php b/main/newscorm/index.php old mode 100755 new mode 100644 diff --git a/main/newscorm/learnpathItem.class.php b/main/newscorm/learnpathItem.class.php index 253707c3fc..19ab4a8403 100644 --- a/main/newscorm/learnpathItem.class.php +++ b/main/newscorm/learnpathItem.class.php @@ -1154,7 +1154,7 @@ class learnpathItem { * @return bool True if the item is done ('completed','passed','succeeded'), false otherwise */ function is_done(){ - if ($this->status_is(array('completed', 'passed', 'succeeded'))) { + if ($this->status_is(array('completed', 'passed', 'succeeded', 'failed'))) { if (self::debug > 2) { error_log('New LP - In learnpath::is_done() - Item '.$this->get_id().' is complete', 0); } return true; }else{ @@ -2197,7 +2197,7 @@ class learnpathItem { $this->last_scorm_session_time = $total_sec; } //Step 3 update db only if status != completed, passed, browsed or seriousgamemode not activated - $case_completed=array('completed','passed','browsed'); //TODO COMPLETE + $case_completed=array('completed','passed','browsed','failed'); //TODO COMPLETE if ($this->seriousgame_mode!=1 || !in_array($row['status'], $case_completed)){ $update_view_sql='UPDATE '.$item_view_table." SET total_time =$total_time".' WHERE c_id = '.$course_id.' AND lp_item_id="'.$this->db_id.'" AND lp_view_id="'.$this->view_id.'" AND view_count="'.$this->attempt_id.'" ;'; @@ -2422,7 +2422,7 @@ class learnpathItem { } else { $my_type_lp = learnpath::get_type_static($this->lp_id); // This is a array containing values finished - $case_completed = array('completed', 'passed', 'browsed'); + $case_completed = array('completed', 'passed', 'browsed', 'failed'); //is not multiple attempts if ($this->seriousgame_mode==1 && $this->type=='sco') { diff --git a/main/newscorm/lp_ajax_log.php b/main/newscorm/lp_ajax_log.php old mode 100755 new mode 100644 diff --git a/main/newscorm/lp_ajax_save_item.php b/main/newscorm/lp_ajax_save_item.php index caa360b664..523ffe899d 100644 --- a/main/newscorm/lp_ajax_save_item.php +++ b/main/newscorm/lp_ajax_save_item.php @@ -143,7 +143,7 @@ function save_item($lp_id, $user_id, $view_id, $item_id, $score = -1, $max = -1, return $return; } $mystatus_in_db = $mylpi->get_status(true); - if ($mystatus_in_db != 'completed' && $mystatus_in_db != 'passed' && $mystatus_in_db != 'browsed') { + if ($mystatus_in_db != 'completed' && $mystatus_in_db != 'passed' && $mystatus_in_db != 'browsed' && $mystatus_in_db != 'failed') { $mystatus_in_memory = $mylpi->get_status(false); if ($mystatus_in_memory != $mystatus_in_db) { $mystatus = $mystatus_in_memory; diff --git a/main/newscorm/lp_api.php b/main/newscorm/lp_api.php old mode 100755 new mode 100644 diff --git a/main/newscorm/lp_author_image.php b/main/newscorm/lp_author_image.php old mode 100755 new mode 100644 diff --git a/main/newscorm/lp_comm.common.php b/main/newscorm/lp_comm.common.php old mode 100755 new mode 100644 diff --git a/main/newscorm/lp_footer.php b/main/newscorm/lp_footer.php old mode 100755 new mode 100644 diff --git a/main/newscorm/lp_header.php b/main/newscorm/lp_header.php old mode 100755 new mode 100644 diff --git a/main/newscorm/lp_list_search.php b/main/newscorm/lp_list_search.php old mode 100755 new mode 100644 diff --git a/main/newscorm/lp_log.php b/main/newscorm/lp_log.php old mode 100755 new mode 100644 diff --git a/main/newscorm/lp_message.php b/main/newscorm/lp_message.php old mode 100755 new mode 100644 diff --git a/main/newscorm/lp_nav.php b/main/newscorm/lp_nav.php old mode 100755 new mode 100644 diff --git a/main/newscorm/lp_toc.php b/main/newscorm/lp_toc.php old mode 100755 new mode 100644 diff --git a/main/newscorm/openoffice_presentation.class.php b/main/newscorm/openoffice_presentation.class.php old mode 100755 new mode 100644 diff --git a/main/newscorm/openoffice_text.class.php b/main/newscorm/openoffice_text.class.php old mode 100755 new mode 100644 diff --git a/main/newscorm/openoffice_text_document.class.php b/main/newscorm/openoffice_text_document.class.php old mode 100755 new mode 100644 diff --git a/main/notebook/index.php b/main/notebook/index.php old mode 100755 new mode 100644 diff --git a/main/permissions/all_permissions.inc.php b/main/permissions/all_permissions.inc.php old mode 100755 new mode 100644 diff --git a/main/permissions/group_permissions.inc.php b/main/permissions/group_permissions.inc.php old mode 100755 new mode 100644 diff --git a/main/permissions/roles.php b/main/permissions/roles.php old mode 100755 new mode 100644 diff --git a/main/reports/reports.lib.php b/main/reports/reports.lib.php index a1f43276c2..9688a80653 100644 --- a/main/reports/reports.lib.php +++ b/main/reports/reports.lib.php @@ -9,7 +9,7 @@ $reports_modules = array(); $reports_enabled_modules = array('quiz','course','scorm'); -$reports_enabled_templates = array('exercicesMultiCourses', 'courseTime'); +$reports_enabled_templates = array('exercicesMultiCourses', 'courseTime', 'courseArticulate'); // load templates @@ -160,7 +160,7 @@ function reports_getToolId($tool) { // return a sql clause returning triplet of (course, $session, $uid) the // current user is authorized to reed function reports_getVisibilitySQL () { - return "select cru.user_id, c.id, null from course c, course_rel_user cru where cru.course_code = c.code"; + return "select cru.user_id from ".Database::get_main_table(TABLE_MAIN_COURSE_USER).' cru'; // fixme sessions } diff --git a/main/reports/templates/courseArticulate.reports.php b/main/reports/templates/courseArticulate.reports.php new file mode 100644 index 0000000000..b314f87bc6 --- /dev/null +++ b/main/reports/templates/courseArticulate.reports.php @@ -0,0 +1,119 @@ + 'CourseArticulate', + 'getSQL' => 'reports_template_CourseArticulate_getSQL', + 'wizard' => +' + + This report does not need any particular settings
+ +
+'); + +function reports_template_CourseArticulate_getSQL() { + // settings + + + // Nom, prenom + $query = 'select u.lastname as "Last name", u.firstname as "First name" '; + $query .= 'from '.Database::get_main_table(TABLE_MAIN_USER).' u '; + $query .= ' where u.user_id in ('.reports_getVisibilitySQL().') '; + $query .= ' order by u.user_id '; + $queries[0] = $query; + + // Custom Field + foreach (array("tags" => "tags") as $k => $v) { // FIXME + $query = 'select ufv.field_value as "'.$v.'" '; + $query .= 'from '.Database::get_main_table(TABLE_MAIN_USER).' u '; + $query .= 'left join'.Database::get_main_table(TABLE_MAIN_USER_FIELD).' uf '; + $query .= ' on uf.field_variable="'.$k.'" '; + $query .= 'left outer join '.Database::get_main_table(TABLE_MAIN_USER_FIELD_VALUES).' ufv '; + $query .= ' on ufv.user_id = u.user_id and ufv.field_id = uf.id '; + $query .= 'where u.user_id in ('.reports_getVisibilitySQL().') '; + $query .= ' order by u.user_id '; + $queries[] = $query; + } + + + // Stored Value + $sv = array(); + foreach ($sv as $k => $v) { + if (!isset($v['sql'])) + $v['sql'] = 'FIELD'; + $sqlField = str_replace('FIELD', 'sv.sv_value', $v['sql']); + $query = 'select '.$sqlField.' as "'.$v['title'].'" '; +// $query = 'select sec_to_time(sv.sv_value) as "'.$v.'" '; + $query .= 'from '.Database::get_main_table(TABLE_MAIN_USER).' u '; + $query .= ' left outer join '.Database::get_main_database().'.stored_values sv '; + $query .= 'on sv.user_id = u.user_id and sv_key = "'.$k.'" '; + $query .= ' where u.user_id in ('.reports_getVisibilitySQL().') '; + $query .= ' group by u.user_id '; + $query .= ' order by u.user_id '; + $queries[] = $query; + } + + // first and last connection + $query = 'select min(tel.login_date) as "First connection", max(tel.logout_date) as "Latest connection" '; + $query .= 'from '.Database::get_main_table(TABLE_MAIN_USER).' u '; + $query .= 'left outer join '.Database::get_main_table(TABLE_STATISTIC_TRACK_E_LOGIN).' tel '; + $query .= ' on tel.login_user_id = u.user_id '; + $query .= ' where u.user_id in ('.reports_getVisibilitySQL().') '; + $query .= ' group by u.user_id '; + $query .= ' order by u.user_id '; + $queries[] = $query; + + // SCORM Data + $scormData = array(); + foreach (CourseManager::get_real_course_list() as $code => $details) { + $list = Database::query('select l.id as lid, l.name as lname, li.id as liid, li.title as lititle '. + ' from '.Database::get_course_table(TABLE_LP_MAIN, $details['db_name']).' l, '. + ' '.Database::get_course_table(TABLE_LP_ITEM, $details['db_name']).' li '. + ' where l.id = li.lp_id'); + while ($lpItem = Database::fetch_assoc($list)) { + $scormData[] = array('coursedb' => $details['db_name'], + 'lid' => $lpItem['lid'], + 'liid' => $lpItem['liid'], + 'target_view_count' => 1, + 'target_indicator' => 'score', + 'title' => $details['title'].'/'.$lpItem['lname'].'/'.$lpItem['lititle'].'/1/score', + 'sql' => 'FIELD'); + $scormData[] = array('coursedb' => $details['db_name'], + 'lid' => $lpItem['lid'], + 'liid' => $lpItem['liid'], + 'target_view_count' => 2, + 'target_indicator' => 'score', + 'title' => $details['title'].'/'.$lpItem['lname'].'/'.$lpItem['lititle'].'/2/score', + 'sql' => 'FIELD'); + $scormData[] = array('coursedb' => $details['db_name'], + 'lid' => $lpItem['lid'], + 'liid' => $lpItem['liid'], + 'target_view_count' => null, + 'target_indicator' => 'score', + 'title' => $details['title'].'/'.$lpItem['lname'].'/'.$lpItem['lititle'].'/all/score', + 'sql' => 'avg(FIELD)'); + } + } + + foreach($scormData as $v) { + if (!isset($v['sql'])) + $v['sql'] = 'FIELD'; + $sqlField = str_replace('FIELD', $v['target_indicator'], $v['sql']); + $query = 'select '.$sqlField.' as "'.$v['title'].'" '; + $query .= 'from '.Database::get_main_table(TABLE_MAIN_USER).' u '; + $query .= 'left outer join '.Database::get_course_table(TABLE_LP_VIEW, $details['db_name']).' lv '; + $query .= ' on u.user_id = lv.user_id and lv.lp_id = '.$v['lid']; + $query .= ' left outer join '.Database::get_course_table(TABLE_LP_ITEM_VIEW, $details['db_name']).' liv '; + $query .= ' on lv.id = liv.lp_view_id '; + if ($v['target_view_count']) + $query .= ' and liv.view_count = '.$v['target_view_count']; + $query .= ' and liv.lp_item_id = '.$v['liid'].' '; + $query .= ' where u.user_id in ('.reports_getVisibilitySQL().') '; + $query .= ' group by u.user_id '; + $query .= ' order by u.user_id '; + $queries[] = $query; + } + + return $queries; +} + diff --git a/main/reports/templates/generic.reports.php b/main/reports/templates/generic.reports.php index e37acdd708..ece965920b 100644 --- a/main/reports/templates/generic.reports.php +++ b/main/reports/templates/generic.reports.php @@ -1,17 +1,17 @@ 'SGCIB', - 'getSQL' => 'reports_template_SGCIB_getSQL', +$reports_template['Generic'] = array( + 'description' => 'Generic', + 'getSQL' => 'reports_template_Generic_getSQL', 'wizard' => ' - + This report does not need any particular settings
'); -function reports_template_SGCIB_getSQL() { +function reports_template_Generic_getSQL() { // settings diff --git a/main/reservation/m_category.php b/main/reservation/m_category.php old mode 100755 new mode 100644 diff --git a/main/reservation/m_item.php b/main/reservation/m_item.php old mode 100755 new mode 100644 diff --git a/main/reservation/m_item_origineel.php b/main/reservation/m_item_origineel.php old mode 100755 new mode 100644 diff --git a/main/reservation/m_reservation.php b/main/reservation/m_reservation.php old mode 100755 new mode 100644 diff --git a/main/reservation/mysubscriptions.php b/main/reservation/mysubscriptions.php old mode 100755 new mode 100644 diff --git a/main/reservation/rcalendar.php b/main/reservation/rcalendar.php old mode 100755 new mode 100644 diff --git a/main/reservation/reservation.php b/main/reservation/reservation.php old mode 100755 new mode 100644 diff --git a/main/reservation/rsys.php b/main/reservation/rsys.php old mode 100755 new mode 100644 diff --git a/main/reservation/subscribe.php b/main/reservation/subscribe.php old mode 100755 new mode 100644 diff --git a/main/resourcelinker/resourcelinker.inc.php b/main/resourcelinker/resourcelinker.inc.php old mode 100755 new mode 100644 diff --git a/main/resourcelinker/resourcelinker.php b/main/resourcelinker/resourcelinker.php old mode 100755 new mode 100644 diff --git a/main/search/index.php b/main/search/index.php old mode 100755 new mode 100644 diff --git a/main/search/search_suggestions.php b/main/search/search_suggestions.php old mode 100755 new mode 100644 diff --git a/main/social/index.php b/main/social/index.php old mode 100755 new mode 100644 diff --git a/main/social/message_for_group_form.inc.php b/main/social/message_for_group_form.inc.php old mode 100755 new mode 100644 diff --git a/main/social/profile_friends_and_groups.inc.php b/main/social/profile_friends_and_groups.inc.php old mode 100755 new mode 100644 diff --git a/main/survey/survey_invitation.php b/main/survey/survey_invitation.php old mode 100755 new mode 100644 diff --git a/main/template/default/auth/courses_list.php b/main/template/default/auth/courses_list.php old mode 100755 new mode 100644 diff --git a/main/tracking/course_access_details.php b/main/tracking/course_access_details.php old mode 100755 new mode 100644 diff --git a/main/tracking/personnalLog.php b/main/tracking/personnalLog.php old mode 100755 new mode 100644 diff --git a/main/tracking/toolaccess_details.php b/main/tracking/toolaccess_details.php old mode 100755 new mode 100644 diff --git a/main/tracking/userlogCSV.php b/main/tracking/userlogCSV.php old mode 100755 new mode 100644 diff --git a/main/upload/upload.document.php b/main/upload/upload.document.php old mode 100755 new mode 100644 diff --git a/main/user/class.php b/main/user/class.php old mode 100755 new mode 100644 diff --git a/main/user/subscribe_class.php b/main/user/subscribe_class.php old mode 100755 new mode 100644 diff --git a/main/user/userInfoLib.php b/main/user/userInfoLib.php old mode 100755 new mode 100644 diff --git a/main/webservices/courses_list.rest.php b/main/webservices/courses_list.rest.php old mode 100755 new mode 100644 diff --git a/main/webservices/courses_list.soap.php b/main/webservices/courses_list.soap.php old mode 100755 new mode 100644 diff --git a/main/webservices/soap_course.php b/main/webservices/soap_course.php old mode 100755 new mode 100644 diff --git a/main/webservices/user_import/import.lib.php b/main/webservices/user_import/import.lib.php old mode 100755 new mode 100644 diff --git a/main/webservices/user_info.soap.php b/main/webservices/user_info.soap.php old mode 100755 new mode 100644 diff --git a/main/webservices/webservice_report.php b/main/webservices/webservice_report.php old mode 100755 new mode 100644 diff --git a/main/wiki/diff.inc.php b/main/wiki/diff.inc.php old mode 100755 new mode 100644 diff --git a/plugin/bbb/index.php b/plugin/bbb/index.php old mode 100755 new mode 100644 diff --git a/plugin/date/index.act.php b/plugin/date/index.act.php old mode 100755 new mode 100644 diff --git a/plugin/date/index.dsp.php b/plugin/date/index.dsp.php old mode 100755 new mode 100644 diff --git a/plugin/date/index.php b/plugin/date/index.php old mode 100755 new mode 100644 diff --git a/plugin/search/client/client.conf.php b/plugin/search/client/client.conf.php old mode 100755 new mode 100644 diff --git a/plugin/search/client/filter_user.lib.php b/plugin/search/client/filter_user.lib.php old mode 100755 new mode 100644 diff --git a/plugin/search/client/searchit.php b/plugin/search/client/searchit.php old mode 100755 new mode 100644 diff --git a/plugin/search/client/www/indexer_login.php b/plugin/search/client/www/indexer_login.php old mode 100755 new mode 100644 diff --git a/plugin/search/index.php b/plugin/search/index.php old mode 100755 new mode 100644 diff --git a/plugin/search/plugin.php b/plugin/search/plugin.php old mode 100755 new mode 100644 diff --git a/plugin/search/server/www/common.inc b/plugin/search/server/www/common.inc old mode 100755 new mode 100644 diff --git a/plugin/search/server/www/config.inc b/plugin/search/server/www/config.inc old mode 100755 new mode 100644 diff --git a/plugin/search/server/www/init.inc b/plugin/search/server/www/init.inc old mode 100755 new mode 100644 diff --git a/plugin/search/server/www/search.php b/plugin/search/server/www/search.php old mode 100755 new mode 100644 diff --git a/plugin/search/server/www/search.xml.php b/plugin/search/server/www/search.xml.php old mode 100755 new mode 100644 diff --git a/plugin/search/server/www/template.inc b/plugin/search/server/www/template.inc old mode 100755 new mode 100644 diff --git a/whoisonlinesession.php b/whoisonlinesession.php old mode 100755 new mode 100644