index.php 964 B

123456789101112131415161718192021222324252627
  1. <?php
  2. /* For licensing terms, see /dokeos_license.txt */
  3. /**
  4. * This file includes lp_list_search to avoid duplication of code, it
  5. * bootstraps dokeos api enough to make lp_list_search work.
  6. */
  7. $language_file = array('admin');
  8. require_once ('../inc/global.inc.php');
  9. $this_section = SECTION_COURSES;
  10. if (extension_loaded('xapian')) {
  11. include_once (api_get_path(LIBRARY_PATH).'course.lib.php');
  12. include_once (api_get_path(LIBRARY_PATH).'debug.lib.inc.php');
  13. include_once (api_get_path(LIBRARY_PATH).'system_announcements.lib.php');
  14. include_once (api_get_path(LIBRARY_PATH).'groupmanager.lib.php');
  15. include_once (api_get_path(LIBRARY_PATH).'usermanager.lib.php');
  16. //api_block_anonymous_users(); // only users who are logged in can proceed
  17. require '../newscorm/lp_list_search.php';
  18. } else {
  19. Display::display_header(get_lang('Search'));
  20. Display::display_error_message(get_lang('SearchXapianModuleNotInstaled'));
  21. Display::display_footer();
  22. exit;
  23. }
  24. ?>