Use __DIR__ when calling global.inc.php

This is needed for an easy migration to chamilo v2
remotes/angel/1.11.x
jmontoyaa 8 years ago
parent 3c9aa1e7b7
commit fab7a58076
  1. 2
      main/admin/access_url_add_courses_to_url.php
  2. 2
      main/admin/access_url_add_usergroup_to_url.php
  3. 2
      main/admin/access_url_add_users_to_url.php
  4. 2
      main/admin/access_url_check_user_session.php
  5. 2
      main/admin/access_url_edit.php
  6. 2
      main/admin/access_url_edit_course_category_to_url.php
  7. 2
      main/admin/access_url_edit_courses_to_url.php
  8. 2
      main/admin/access_url_edit_usergroup_to_url.php
  9. 2
      main/admin/access_url_edit_users_to_url.php
  10. 2
      main/admin/access_urls.php
  11. 2
      main/admin/add_courses_to_usergroup.php
  12. 2
      main/admin/add_sessions_to_promotion.php
  13. 2
      main/admin/add_sessions_to_usergroup.php
  14. 2
      main/admin/add_users_to_usergroup.php
  15. 2
      main/admin/archive_cleanup.php
  16. 2
      main/admin/career_dashboard.php
  17. 2
      main/admin/careers.php
  18. 8
      main/admin/cli.php
  19. 2
      main/admin/configure_extensions.php
  20. 2
      main/admin/configure_homepage.php
  21. 2
      main/admin/configure_inscription.php
  22. 2
      main/admin/configure_plugin.php
  23. 2
      main/admin/course_add.php
  24. 2
      main/admin/course_category.php
  25. 2
      main/admin/course_create_content.php
  26. 2
      main/admin/course_edit.php
  27. 2
      main/admin/course_export.php
  28. 2
      main/admin/course_import.php
  29. 2
      main/admin/course_information.php
  30. 2
      main/admin/course_intro_pdf_import.php
  31. 2
      main/admin/course_list.php
  32. 2
      main/admin/course_request_accepted.php
  33. 2
      main/admin/course_request_edit.php
  34. 2
      main/admin/course_request_rejected.php
  35. 2
      main/admin/course_request_review.php
  36. 2
      main/admin/course_user_import.php
  37. 2
      main/admin/course_user_import_by_email.php
  38. 2
      main/admin/dashboard_add_courses_to_user.php
  39. 2
      main/admin/dashboard_add_sessions_to_user.php
  40. 2
      main/admin/dashboard_add_users_to_user.php
  41. 10
      main/admin/db.php
  42. 2
      main/admin/email_tester.php
  43. 2
      main/admin/event_controller.php
  44. 2
      main/admin/event_type.php
  45. 2
      main/admin/export_certificates.php
  46. 2
      main/admin/extra_field_options.php
  47. 2
      main/admin/extra_field_workflow.php
  48. 2
      main/admin/extra_fields.php
  49. 2
      main/admin/filler.php
  50. 2
      main/admin/grade_models.php
  51. 2
      main/admin/inactive_user_list.php
  52. 2
      main/admin/index.php
  53. 2
      main/admin/languages.php
  54. 2
      main/admin/ldap_import_students.php
  55. 2
      main/admin/ldap_synchro.php
  56. 2
      main/admin/ldap_users_list.php
  57. 2
      main/admin/legal_add.php
  58. 2
      main/admin/legal_list.php
  59. 2
      main/admin/promotions.php
  60. 2
      main/admin/resource_sequence.php
  61. 2
      main/admin/settings.php
  62. 2
      main/admin/skill.php
  63. 2
      main/admin/skill_badge.php
  64. 2
      main/admin/skill_badge_create.php
  65. 2
      main/admin/skill_badge_list.php
  66. 2
      main/admin/skill_create.php
  67. 2
      main/admin/skill_edit.php
  68. 2
      main/admin/skill_level.php
  69. 2
      main/admin/skill_list.php
  70. 2
      main/admin/skill_profile.php
  71. 2
      main/admin/skills.php
  72. 2
      main/admin/skills_gradebook.php
  73. 2
      main/admin/skills_import.php
  74. 2
      main/admin/skills_profile.php
  75. 2
      main/admin/skills_wheel.php
  76. 2
      main/admin/special_exports.php
  77. 2
      main/admin/specific_fields.php
  78. 2
      main/admin/specific_fields_add.php
  79. 2
      main/admin/statistics.php
  80. 4
      main/admin/statistics/index.php
  81. 2
      main/admin/sub_language.php
  82. 2
      main/admin/sub_language_add.php
  83. 2
      main/admin/sub_language_ajax.inc.php
  84. 2
      main/admin/subscribe_user2course.php
  85. 2
      main/admin/system_announcements.php
  86. 2
      main/admin/system_status.php
  87. 2
      main/admin/teacher_time_report.php
  88. 2
      main/admin/teachers_time_by_session_report.php
  89. 2
      main/admin/update_last_login.php
  90. 2
      main/admin/update_schema.php
  91. 2
      main/admin/user_add.php
  92. 2
      main/admin/user_edit.php
  93. 2
      main/admin/user_export.php
  94. 2
      main/admin/user_import.php
  95. 2
      main/admin/user_information.php
  96. 2
      main/admin/user_list.php
  97. 2
      main/admin/user_move_stats.php
  98. 2
      main/admin/user_update_import.php
  99. 2
      main/admin/usergroup_export.php
  100. 2
      main/admin/usergroup_import.php
  101. Some files were not shown because too many files have changed in this diff Show More

@ -8,7 +8,7 @@
* @author Julio Montoya <gugli100@gmail.com>
*/
$cidReset = true;
require_once '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
$this_section=SECTION_PLATFORM_ADMIN;

@ -8,7 +8,7 @@
* @author Julio Montoya <gugli100@gmail.com>
*/
$cidReset = true;
require_once '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
$this_section = SECTION_PLATFORM_ADMIN;
api_protect_global_admin_script();

@ -8,7 +8,7 @@
* @author Julio Montoya <gugli100@gmail.com>
*/
$cidReset = true;
require_once '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
$this_section = SECTION_PLATFORM_ADMIN;
api_protect_global_admin_script();

@ -6,7 +6,7 @@
*/
/* INIT SECTION */
$cidReset = true;
require_once '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
// setting the section (for the tabs)
$this_section = SECTION_PLATFORM_ADMIN;

@ -5,7 +5,7 @@
* @author Julio Montoya <gugli100@gmail.com>
*/
$cidReset = true;
require_once '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
$this_section = SECTION_PLATFORM_ADMIN;
api_protect_global_admin_script();

@ -8,7 +8,7 @@
// resetting the course id
$cidReset = true;
require_once '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
$xajax = new xajax();
$xajax->registerFunction(array('searchCourseCategoryAjax', 'UrlManager', 'searchCourseCategoryAjax'));

@ -7,7 +7,7 @@
// resetting the course id
$cidReset = true;
require_once '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
$xajax = new xajax();
$xajax->registerFunction(

@ -7,7 +7,7 @@
// resetting the course id
$cidReset = true;
require_once '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
$xajax = new xajax();
$xajax->registerFunction(array('searchUserGroupAjax', 'UserGroup', 'searchUserGroupAjax'));

@ -7,7 +7,7 @@
// resetting the course id
$cidReset = true;
require_once '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
$xajax = new xajax();
$xajax->registerFunction(array('search_users', 'Accessurledituserstourl', 'search_users'));

@ -8,7 +8,7 @@
*/
$cidReset = true;
require_once '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
$this_section = SECTION_PLATFORM_ADMIN;
//api_protect_admin_script();

@ -7,7 +7,7 @@
$cidReset = true;
// Including some necessary files.
require_once '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
$xajax = new xajax();
$xajax->registerFunction('search');

@ -7,7 +7,7 @@
$cidReset = true;
// including some necessary files
require_once '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
$xajax = new xajax();
$xajax->registerFunction ('search_sessions');

@ -7,7 +7,7 @@
$cidReset = true;
// including some necessary files
require_once '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
$xajax = new xajax();

@ -9,7 +9,7 @@
$cidReset = true;
// including some necessary files
require_once '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
// setting the section (for the tabs)
$this_section = SECTION_PLATFORM_ADMIN;

@ -7,7 +7,7 @@
$cidReset = true;
// including some necessary files
require_once '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
// setting the section (for the tabs)
$this_section = SECTION_PLATFORM_ADMIN;

@ -7,7 +7,7 @@
*/
$cidReset = true;
require_once '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
$libpath = api_get_path(LIBRARY_PATH);
api_protect_admin_script();

@ -8,7 +8,7 @@ use ChamiloSession as Session;
*/
$cidReset = true;
require_once '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
$this_section = SECTION_PLATFORM_ADMIN;

@ -7,17 +7,17 @@
* @package chamilo.admin.cli
*/
/**
* Init section
* Init section
*/
// we are in the admin area so we do not need a course id
$cidReset = true;
// include global script
require_once '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
$this_section = SECTION_PLATFORM_ADMIN;
// make sure only logged-in admins can execute this
api_protect_admin_script();
/**
* Main code
* Main code
*/
// setting the name of the tool
$tool_name = get_lang('CommandLineInterpreter');
@ -39,6 +39,6 @@ switch ($_GET["cmd"]) {
break;
}
/**
* Footer
* Footer
*/
Display :: display_footer();

@ -8,7 +8,7 @@ use Chamilo\CoreBundle\Component\Utils\ChamiloApi;
* @package chamilo.admin
*/
$cidReset = true;
require_once '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
$this_section = SECTION_PLATFORM_ADMIN;
api_protect_admin_script();
$interbreadcrumb[] = array('url' => 'index.php', 'name' => get_lang('PlatformAdmin'));

@ -49,7 +49,7 @@ function home_tabs($file_logged_in)
}
$cidReset = true;
require_once '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
$this_section = SECTION_PLATFORM_ADMIN;
$_SESSION['this_section'] = $this_section;

@ -6,7 +6,7 @@
* @package chamilo.admin
*/
$cidReset = true;
require_once '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
api_protect_admin_script();

@ -7,7 +7,7 @@
*/
$cidReset = true;
require_once '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
// Access restrictions
api_protect_admin_script();

@ -5,7 +5,7 @@
* @package chamilo.admin
*/
$cidReset = true;
require_once '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
$this_section = SECTION_PLATFORM_ADMIN;
api_protect_admin_script();

@ -4,7 +4,7 @@
* @package chamilo.admin
*/
$cidReset = true;
require_once '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
$this_section = SECTION_PLATFORM_ADMIN;
api_protect_admin_script();

@ -6,7 +6,7 @@
* @author Bart Mollet <bart.mollet@hogent.be>
* @package chamilo.admin
*/
include ('../inc/global.inc.php');
require_once __DIR__.'/../inc/global.inc.php';
$this_section=SECTION_PLATFORM_ADMIN;
api_protect_admin_script();

@ -5,7 +5,7 @@
*/
$cidReset = true;
require_once '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
$this_section = SECTION_PLATFORM_ADMIN;
api_protect_admin_script();

@ -8,7 +8,7 @@
$cidReset = true;
require_once '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
$this_section = SECTION_PLATFORM_ADMIN;
api_protect_admin_script();

@ -156,7 +156,7 @@ function parse_csv_courses_data($file)
$cidReset = true;
require '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
$this_section = SECTION_PLATFORM_ADMIN;
api_protect_admin_script();

@ -6,7 +6,7 @@
* @package chamilo.admin
*/
$cidReset = true;
require_once '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
$this_section = SECTION_PLATFORM_ADMIN;
api_protect_admin_script();

@ -6,7 +6,7 @@
* @package chamilo.admin
*/
$cidReset = true;
require '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
$this_section = SECTION_PLATFORM_ADMIN;
api_protect_admin_script();
// temporary configuration of in which folder to upload the file in each course.

@ -7,7 +7,7 @@
* @package chamilo.admin
*/
$cidReset = true;
require_once '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
$this_section = SECTION_PLATFORM_ADMIN;
api_protect_admin_script();

@ -13,7 +13,7 @@
$cidReset = true;
require '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
$this_section = SECTION_PLATFORM_ADMIN;

@ -8,7 +8,7 @@
*/
$cidReset = true;
require_once '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
$this_section = SECTION_PLATFORM_ADMIN;
$tool_name = get_lang('CourseRequestEdit');

@ -13,7 +13,7 @@
$cidReset = true;
require '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
$this_section = SECTION_PLATFORM_ADMIN;

@ -11,7 +11,7 @@
*/
$cidReset = true;
require_once '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
$this_section = SECTION_PLATFORM_ADMIN;
api_protect_admin_script();

@ -142,7 +142,7 @@ function parse_csv_data($file)
$cidReset = true;
include '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
// Setting the section (for the tabs).
$this_section = SECTION_PLATFORM_ADMIN;

@ -143,7 +143,7 @@ function parse_csv_data($file)
$cidReset = true;
include '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
// Setting the section (for the tabs).
$this_section = SECTION_PLATFORM_ADMIN;

@ -8,7 +8,7 @@
// resetting the course id
$cidReset = true;
require_once '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
$xajax = new xajax();
$xajax->registerFunction('search_courses');

@ -8,7 +8,7 @@
// resetting the course id
$cidReset = true;
require_once '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
// create an ajax object
$xajax = new xajax();

@ -9,7 +9,7 @@
// resetting the course id
$cidReset = true;
require_once '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
$ajax_search = false;
// create an ajax object

File diff suppressed because one or more lines are too long

@ -8,7 +8,7 @@
$cidReset = true;
// Including some necessary chamilo files.
require_once '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
api_protect_admin_script();

@ -6,7 +6,7 @@
*/
$cidReset = true;
require_once '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
if (api_get_setting('activate_email_template') != 'true') {
api_not_allowed();

@ -9,7 +9,7 @@
*/
$cidReset = true;
require_once '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
$this_section = SECTION_PLATFORM_ADMIN;
api_protect_admin_script();

@ -7,7 +7,7 @@
$cidReset = true;
require_once '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
Display::display_header(null);

@ -6,7 +6,7 @@
*/
$cidReset = true;
require_once '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
$this_section = SECTION_PLATFORM_ADMIN;

@ -6,7 +6,7 @@
*/
$cidReset = true;
require_once '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
$this_section = SECTION_PLATFORM_ADMIN;

@ -7,7 +7,7 @@
$cidReset = true;
require_once '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
$extraFieldType = isset($_REQUEST['type']) ? $_REQUEST['type'] : null;

@ -11,7 +11,7 @@
$cidReset = true;
// including some necessary chamilo files
require_once '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
// setting the section (for the tabs)
$this_section = SECTION_PLATFORM_ADMIN;

@ -6,7 +6,7 @@
*/
$cidReset = true;
require_once '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
$this_section = SECTION_PLATFORM_ADMIN;

@ -10,7 +10,7 @@
* script pour effacer les user inactif depuis x temps
*/
$cidReset = true;
require_once '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
$this_section = SECTION_PLATFORM_ADMIN;
api_protect_admin_script(true);

@ -8,7 +8,7 @@
$cidReset = true;
// Including some necessary chamilo files.
require_once '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
// Setting the section (for the tabs).
$this_section = SECTION_PLATFORM_ADMIN;

@ -21,7 +21,7 @@
$cidReset = true;
// include global script
require_once '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
$this_section = SECTION_PLATFORM_ADMIN;
api_protect_admin_script();

@ -7,7 +7,7 @@
*/
// resetting the course id
$cidReset=true;
require_once('../inc/global.inc.php');
require_once __DIR__.'/../inc/global.inc.php';
// setting the section (for the tabs)
$this_section = SECTION_PLATFORM_ADMIN;

@ -10,7 +10,7 @@ exit(); //not yet functional, needs to be revised
$cidReset=true;
require('../inc/global.inc.php');
require_once __DIR__.'/../inc/global.inc.php';
$libpath = api_get_path(LIBRARY_PATH);
require_once('../auth/ldap/authldap.php');
$annee_base=date('Y');

@ -8,7 +8,7 @@
* Init
*/
$cidReset = true;
require('../inc/global.inc.php');
require_once __DIR__.'/../inc/global.inc.php';
require('../auth/ldap/authldap.php');
$this_section = SECTION_PLATFORM_ADMIN;

@ -6,7 +6,7 @@
* @package chamilo.admin
*/
$cidReset = true;
require_once '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
$this_section = SECTION_PLATFORM_ADMIN;
api_protect_admin_script();

@ -7,7 +7,7 @@
*/
$cidReset = true;
require_once '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
$this_section = SECTION_PLATFORM_ADMIN;
api_protect_admin_script();
$interbreadcrumb[] = array ("url" => 'index.php', "name" => get_lang('PlatformAdmin'));

@ -6,7 +6,7 @@
*/
$cidReset = true;
require_once '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
$this_section = SECTION_PLATFORM_ADMIN;

@ -5,7 +5,7 @@ use Chamilo\CoreBundle\Entity\Sequence;
$cidReset = true;
require_once '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
api_protect_global_admin_script();

@ -15,7 +15,7 @@ use ChamiloSession as Session;
// Resetting the course id.
$cidReset = true;
require_once '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
require_once 'settings.lib.php';
// Setting the section (for the tabs).

@ -10,7 +10,7 @@ use Chamilo\CoreBundle\Entity\Skill;
*/
$cidReset = true;
require_once '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
api_protect_admin_script();
$em = Database::getManager();
$profiles = $em->getRepository('ChamiloSkillBundle:Profile')->findAll();

@ -7,7 +7,7 @@
*/
$cidReset = true;
require_once '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
$this_section = SECTION_PLATFORM_ADMIN;

@ -11,7 +11,7 @@ use ChamiloSession as Session;
$cidReset = true;
require_once '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
if (!api_is_platform_admin() || api_get_setting('allow_skills_tool') !== 'true') {
api_not_allowed(true);

@ -11,7 +11,7 @@ use ChamiloSession as Session;
$cidReset = true;
require_once '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
if (!api_is_platform_admin() || api_get_setting('allow_skills_tool') !== 'true') {
api_not_allowed(true);

@ -11,7 +11,7 @@ use ChamiloSession as Session;
$cidReset = true;
require_once '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
$this_section = SECTION_PLATFORM_ADMIN;

@ -11,7 +11,7 @@ use ChamiloSession as Session;
$cidReset = true;
require_once '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
$this_section = SECTION_PLATFORM_ADMIN;

@ -10,7 +10,7 @@
$cidReset = true;
require_once '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
api_protect_admin_script();

@ -9,7 +9,7 @@
$cidReset = true;
require_once '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
$this_section = SECTION_PLATFORM_ADMIN;

@ -9,7 +9,7 @@
*/
$cidReset = true;
require_once '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
api_protect_admin_script();
$em = Database::getManager();

@ -6,7 +6,7 @@
*/
$cidReset = true;
require_once '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
$this_section = SECTION_PLATFORM_ADMIN;

@ -6,7 +6,7 @@
*/
$cidReset = true;
require_once '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
$this_section = SECTION_PLATFORM_ADMIN;

@ -8,7 +8,7 @@
*/
$cidReset = true;
require_once '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
/**
* Validate the imported data.

@ -8,7 +8,7 @@ use ChamiloSession as Session;
*/
$cidReset = true;
require_once '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
$this_section = SECTION_PLATFORM_ADMIN;
api_protect_admin_script();

@ -6,7 +6,7 @@
*/
$cidReset = true;
require_once '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
$this_section = SECTION_PLATFORM_ADMIN;

@ -14,7 +14,7 @@ use Chamilo\CourseBundle\Component\CourseCopy\CourseSelectForm;
// including the global file
$cidReset = true;
require_once '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
$this_section = SECTION_PLATFORM_ADMIN;
$interbreadcrumb[] = array ("url" => 'index.php', "name" => get_lang('PlatformAdmin'));

@ -9,7 +9,7 @@
$cidReset = true;
// Including some necessary chamilo files
require_once '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
// User permissions
api_protect_admin_script();

@ -8,7 +8,7 @@
// Resetting the course id.
$cidReset = true;
require_once '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
$libpath = api_get_path(LIBRARY_PATH);
require_once $libpath.'specific_fields_manager.lib.php';

@ -6,7 +6,7 @@
*/
$cidReset=true;
require_once '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
$this_section = SECTION_PLATFORM_ADMIN;
api_protect_admin_script();

@ -7,7 +7,7 @@
*/
$cidReset = true;
require_once '../../inc/global.inc.php';
require_once __DIR__.'/../../inc/global.inc.php';
api_protect_admin_script();
$interbreadcrumb[] = array('url' => '../index.php', 'name' => get_lang('PlatformAdmin'));
@ -30,7 +30,7 @@ if ($report) {
});
</script>';
}
$tool_name = get_lang('Statistics');
Display::display_header($tool_name);
echo Display::page_header($tool_name);

@ -7,7 +7,7 @@
$cidReset = true;
$this_script = 'sub_language';
require_once '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
$this_section = SECTION_PLATFORM_ADMIN;
api_protect_admin_script();

@ -6,7 +6,7 @@
* @package chamilo.admin
*/
$cidReset = true;
require_once '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
$this_section = SECTION_PLATFORM_ADMIN;
api_protect_admin_script();

@ -8,7 +8,7 @@ use \Chamilo\CoreBundle\Entity\ExtraField;
* @package chamilo.admin.sub_language
*/
$this_script = 'sub_language';
require_once '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
api_protect_admin_script();

@ -12,7 +12,7 @@
*/
$cidReset = true;
require_once '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
$this_section = SECTION_PLATFORM_ADMIN;
api_protect_admin_script();

@ -10,7 +10,7 @@
$cidReset = true;
// Including the global initialization file.
require_once '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
// Setting the section (for the tabs).
$this_section = SECTION_PLATFORM_ADMIN;

@ -6,7 +6,7 @@
*/
$cidReset = true;
require_once '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
$this_section = SECTION_PLATFORM_ADMIN;
// User permissions

@ -12,7 +12,7 @@
$cidReset = true;
// Including some necessary library files.
require_once '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
// Setting the section (for the tabs).
$this_section = SECTION_PLATFORM_ADMIN;

@ -12,7 +12,7 @@ use \Chamilo\CourseBundle\Entity\Repository\CStudentPublicationRepository;
$cidReset = true;
require_once '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
require_once api_get_path(SYS_CODE_PATH) . 'work/work.lib.php';
if (!api_is_platform_admin(true) && !api_is_teacher()) {

@ -1,7 +1,7 @@
<?php
/* For licensing terms, see /license.txt */
require_once '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
api_protect_admin_script();
$tableUser = Database::get_main_table(TABLE_MAIN_USER);

@ -3,7 +3,7 @@
$cidReset = true;
require_once '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
// Access restrictions
api_protect_admin_script(true);

@ -5,7 +5,7 @@
*/
$cidReset = true;
// Including necessary libraries.
require_once '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
$libpath = api_get_path(LIBRARY_PATH);
// Section for the tabs

@ -5,7 +5,7 @@
* @package chamilo.admin
*/
$cidReset = true;
require_once '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
$this_section = SECTION_PLATFORM_ADMIN;

@ -6,7 +6,7 @@
$cidReset = true;
require_once '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
$this_section = SECTION_PLATFORM_ADMIN;
api_protect_admin_script();

@ -6,7 +6,7 @@
*/
$cidReset = true;
require_once '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
// Set this option to true to enforce strict purification for usenames.
$purification_option_for_usernames = false;

@ -8,7 +8,7 @@
*/
$cidReset = true;
require_once '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
$this_section = SECTION_PLATFORM_ADMIN;
require_once api_get_path(SYS_CODE_PATH).'forum/forumfunction.inc.php';
require_once api_get_path(SYS_CODE_PATH).'work/work.lib.php';

@ -10,7 +10,7 @@ use ChamiloSession as Session;
*/
$cidReset = true;
require_once '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
$current_access_url_id = api_get_current_access_url_id();

@ -7,7 +7,7 @@
*/
$cidReset = true;
require_once '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
$this_section=SECTION_PLATFORM_ADMIN;
api_protect_admin_script();

@ -10,7 +10,7 @@
*/
$cidReset = true;
require_once '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
// Set this option to true to enforce strict purification for usenames.
$purification_option_for_usernames = false;

@ -6,7 +6,7 @@
*/
$cidReset = true;
require_once '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
$this_section = SECTION_PLATFORM_ADMIN;
api_protect_admin_script();

@ -74,7 +74,7 @@ function save_data($classes)
// Resetting the course id.
$cidReset = true;
include '../inc/global.inc.php';
require_once __DIR__.'/../inc/global.inc.php';
// Setting the section (for the tabs).
$this_section = SECTION_PLATFORM_ADMIN;

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

Loading…
Cancel
Save