Move main folder to public/main

pull/3064/head
Julio Montoya 5 years ago
parent c55dc0004c
commit 0ce324e599
  1. 0
      public/main/inc/lib/.htaccess
  2. 0
      public/main/inc/lib/AnnouncementEmail.php
  3. 0
      public/main/inc/lib/AnnouncementManager.php
  4. 0
      public/main/inc/lib/Compilatio.php
  5. 0
      public/main/inc/lib/CourseChatUtils.php
  6. 0
      public/main/inc/lib/CoursesAndSessionsCatalog.class.php
  7. 0
      public/main/inc/lib/ExerciseCategoryManager.php
  8. 0
      public/main/inc/lib/GamificationUtils.php
  9. 0
      public/main/inc/lib/MailTemplateManager.php
  10. 0
      public/main/inc/lib/MoodleImport.php
  11. 0
      public/main/inc/lib/ScheduledAnnouncement.php
  12. 0
      public/main/inc/lib/SequenceManager.php
  13. 0
      public/main/inc/lib/SequenceResourceManager.php
  14. 0
      public/main/inc/lib/SmsPlugin.php
  15. 0
      public/main/inc/lib/SmsPluginLibraryInterface.php
  16. 0
      public/main/inc/lib/SortableTableFromArray.php
  17. 0
      public/main/inc/lib/SortableTableFromArrayConfig.php
  18. 0
      public/main/inc/lib/SurveyTree .php
  19. 0
      public/main/inc/lib/TeacherTimeReport.php
  20. 0
      public/main/inc/lib/TicketManager.php
  21. 0
      public/main/inc/lib/UnserializeApi.php
  22. 0
      public/main/inc/lib/VideoChat.php
  23. 0
      public/main/inc/lib/access_url_edit_courses_to_url_functions.lib.php
  24. 0
      public/main/inc/lib/access_url_edit_sessions_to_url_functions.lib.php
  25. 0
      public/main/inc/lib/access_url_edit_users_to_url_functions.lib.php
  26. 0
      public/main/inc/lib/add_course.lib.inc.php
  27. 0
      public/main/inc/lib/add_courses_to_session_functions.lib.php
  28. 0
      public/main/inc/lib/agenda.lib.php
  29. 8
      public/main/inc/lib/api.lib.php
  30. 0
      public/main/inc/lib/app_view.php
  31. 0
      public/main/inc/lib/array.lib.php
  32. 0
      public/main/inc/lib/attendance.lib.php
  33. 0
      public/main/inc/lib/auth.lib.php
  34. 0
      public/main/inc/lib/baker.lib.php
  35. 0
      public/main/inc/lib/banner.lib.php
  36. 0
      public/main/inc/lib/blog.lib.php
  37. 0
      public/main/inc/lib/career.lib.php
  38. 0
      public/main/inc/lib/certificate.lib.php
  39. 0
      public/main/inc/lib/chamilo_session.class.php
  40. 0
      public/main/inc/lib/chat.lib.php
  41. 0
      public/main/inc/lib/conditional_login.class.php
  42. 0
      public/main/inc/lib/course.lib.php
  43. 0
      public/main/inc/lib/course_category.lib.php
  44. 0
      public/main/inc/lib/course_description.lib.php
  45. 0
      public/main/inc/lib/course_home.lib.php
  46. 0
      public/main/inc/lib/course_request.lib.php
  47. 0
      public/main/inc/lib/custom_pages.class.php
  48. 0
      public/main/inc/lib/dashboard.lib.php
  49. 0
      public/main/inc/lib/database.constants.inc.php
  50. 0
      public/main/inc/lib/database.lib.php
  51. 0
      public/main/inc/lib/database.mysqli.lib.php
  52. 0
      public/main/inc/lib/diagnoser.lib.php
  53. 2
      public/main/inc/lib/display.lib.php
  54. 0
      public/main/inc/lib/document.lib.php
  55. 0
      public/main/inc/lib/events.lib.php
  56. 0
      public/main/inc/lib/exercise.lib.php
  57. 0
      public/main/inc/lib/exercise_show_functions.lib.php
  58. 0
      public/main/inc/lib/export.lib.inc.php
  59. 0
      public/main/inc/lib/extra_field.lib.php
  60. 0
      public/main/inc/lib/extra_field_option.lib.php
  61. 0
      public/main/inc/lib/extra_field_value.lib.php
  62. 0
      public/main/inc/lib/fileDisplay.lib.php
  63. 0
      public/main/inc/lib/fileManage.lib.php
  64. 0
      public/main/inc/lib/fileUpload.lib.php
  65. 0
      public/main/inc/lib/fixlinks.js
  66. 0
      public/main/inc/lib/geometry.lib.php
  67. 0
      public/main/inc/lib/glossary.lib.php
  68. 0
      public/main/inc/lib/grade_model.lib.php
  69. 0
      public/main/inc/lib/gradebook.lib.php
  70. 0
      public/main/inc/lib/groupmanager.lib.php
  71. 0
      public/main/inc/lib/image.lib.php
  72. 0
      public/main/inc/lib/import.lib.php
  73. 0
      public/main/inc/lib/index.html
  74. 0
      public/main/inc/lib/internationalization.lib.php
  75. 0
      public/main/inc/lib/kses-0.2.2/AUTHORS
  76. 0
      public/main/inc/lib/kses-0.2.2/COPYING
  77. 0
      public/main/inc/lib/kses-0.2.2/ChangeLog
  78. 0
      public/main/inc/lib/kses-0.2.2/README
  79. 0
      public/main/inc/lib/kses-0.2.2/TODO
  80. 0
      public/main/inc/lib/kses-0.2.2/docs/attribute-value-checks
  81. 0
      public/main/inc/lib/kses-0.2.2/docs/hooks
  82. 0
      public/main/inc/lib/kses-0.2.2/docs/index.html
  83. 0
      public/main/inc/lib/kses-0.2.2/docs/stripping-everything
  84. 0
      public/main/inc/lib/kses-0.2.2/docs/supported-formats
  85. 0
      public/main/inc/lib/kses-0.2.2/docs/whitelisted-url-protocols
  86. 0
      public/main/inc/lib/kses-0.2.2/examples/filter.php
  87. 0
      public/main/inc/lib/kses-0.2.2/examples/index.html
  88. 0
      public/main/inc/lib/kses-0.2.2/examples/test.php
  89. 0
      public/main/inc/lib/kses-0.2.2/index.html
  90. 0
      public/main/inc/lib/kses-0.2.2/kses.php
  91. 0
      public/main/inc/lib/kses-0.2.2/kses_original.php
  92. 0
      public/main/inc/lib/kses-0.2.2/oop/index.html
  93. 0
      public/main/inc/lib/kses-0.2.2/oop/oop.kses.changelog.txt
  94. 0
      public/main/inc/lib/kses-0.2.2/oop/oop.simple.api.txt
  95. 0
      public/main/inc/lib/kses-0.2.2/oop/php4.class.kses.php
  96. 0
      public/main/inc/lib/kses-0.2.2/oop/php5.class.kses.php
  97. 0
      public/main/inc/lib/kses-0.2.2/oop/test.oop.kses.php
  98. 0
      public/main/inc/lib/legal.lib.php
  99. 0
      public/main/inc/lib/link.lib.php
  100. 0
      public/main/inc/lib/login.lib.php
  101. Some files were not shown because too many files have changed in this diff Show More

@ -731,7 +731,7 @@ function api_get_path($path = '', $configuration = [])
}
$course_folder = 'courses/';
$code_folder = 'main/';
$code_folder = 'public/main/';
$root_sys = Container::getRootDir();
$root_web = '';
// If no $root_web has been set so far *and* no custom config has been passed to the function
@ -812,13 +812,13 @@ function api_get_path($path = '', $configuration = [])
if (!array_key_exists($root_web, $paths)) {
$paths[$root_web] = [
WEB_PATH => '',
SYS_PATH => '',
SYS_PATH => 'public/',
REL_PATH => '',
WEB_COURSE_PATH => '',
SYS_COURSE_PATH => '',
REL_COURSE_PATH => '',
WEB_CODE_PATH => 'main/',
SYS_CODE_PATH => 'main/',
SYS_CODE_PATH => 'public/main/',
REL_CODE_PATH => '/main/',
SYS_LANG_PATH => 'lang/',
WEB_IMG_PATH => 'public/img/',
@ -871,7 +871,6 @@ function api_get_path($path = '', $configuration = [])
// Initialization of a table that contains common-purpose paths.
$paths[$root_web][REL_PATH] = $root_rel;
$paths[$root_web][REL_COURSE_PATH] = $root_rel.$course_folder;
$paths[$root_web][REL_CODE_PATH] = $root_rel.$code_folder;
$paths[$root_web][WEB_PATH] = $rootWebWithSlash;
$paths[$root_web][WEB_CODE_PATH] = $rootWebWithSlash.$code_folder;
@ -900,7 +899,6 @@ function api_get_path($path = '', $configuration = [])
$paths[$root_web][SYS_FONTS_PATH] = $paths[$root_web][SYS_CODE_PATH].$paths[$root_web][SYS_FONTS_PATH];
$paths[$root_web][SYS_ARCHIVE_PATH] = $paths[$root_web][SYS_PATH].$paths[$root_web][SYS_ARCHIVE_PATH];
$paths[$root_web][SYS_APP_PATH] = $paths[$root_web][SYS_PATH].$paths[$root_web][SYS_APP_PATH];
$paths[$root_web][SYS_COURSE_PATH] = $paths[$root_web][SYS_APP_PATH].$course_folder;
$paths[$root_web][SYS_UPLOAD_PATH] = $paths[$root_web][SYS_PATH].$paths[$root_web][SYS_UPLOAD_PATH];
$paths[$root_web][SYS_LANG_PATH] = $paths[$root_web][SYS_CODE_PATH].$paths[$root_web][SYS_LANG_PATH];
$paths[$root_web][SYS_HOME_PATH] = $paths[$root_web][SYS_PATH].$paths[$root_web][SYS_HOME_PATH];

@ -208,7 +208,7 @@ class Display
$moduleId = $tool;
if (api_get_setting('enable_tool_introduction') == 'true' || $tool == TOOL_COURSE_HOMEPAGE) {
$introduction_section = null;
require api_get_path(SYS_INC_PATH).'introductionSection.inc.php';
require api_get_path(SYS_CODE_PATH).'inc/introductionSection.inc.php';
return $introduction_section;
}

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save