index.php 615 B

123456789101112131415161718192021222324252627
  1. <?php
  2. /* For licensing terms, see /license.txt */
  3. /**
  4. * @package chamilo.main
  5. */
  6. //Temporal hack to redirect calls to the new web/index.php
  7. header('Location: web/index');
  8. exit;
  9. define('CHAMILO_HOMEPAGE', true);
  10. $language_file = array('courses', 'index');
  11. // Flag forcing the 'current course' reset, as we're not inside a course anymore.
  12. // Maybe we should change this into an api function? an example: CourseManager::unset();
  13. $cidReset = true;
  14. $app = require_once 'main/inc/global.inc.php';
  15. require_once 'main/chat/chat_functions.lib.php';
  16. // The section (for the tabs).
  17. $this_section = SECTION_CAMPUS;